-
Notifications
You must be signed in to change notification settings - Fork 183
/
cppunit.spec
35 lines (30 loc) · 1.14 KB
/
cppunit.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
### RPM external cppunit 1.15.x
%define tag 78e64f0edb4f3271a6ddbcdf9cba05138597bfca
%define branch master
%define github_user git/libreoffice
Source: git+https://anongit.freedesktop.org/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
#Source: git://anongit.freedesktop.org/git/libreoffice/%{n}.git?=master/%{n}-%{realversion}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
BuildRequires: gmake autotools
Patch1: cppunit-1.14-defaulted-function-deleted
%prep
%setup -n %{n}-%{realversion}
%patch1 -p1
%build
# Update to detect aarch64 and ppc64le
./autogen.sh
./configure --prefix=%i --disable-static
make %makeprocesses
%install
make install
# We remove pkg-config files for two reasons:
# * it's actually not required (macosx does not even have it).
# * rpm 4.8 adds a dependency on the system /usr/bin/pkg-config
# on linux.
# In the case at some point we build a package that can be build
# only via pkg-config we have to think on how to ship our own
# version.
rm -rf %i/lib/pkgconfig
# Remove unneded files
rm -rf %i/lib/*.{l,}a
# Read documentation online
%define drop_files %i/share