-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathcfbuild-libexpat.spec
More file actions
67 lines (45 loc) · 1.21 KB
/
cfbuild-libexpat.spec
File metadata and controls
67 lines (45 loc) · 1.21 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%define expat_version 2.7.5
Summary: CFEngine Build Automation -- libexpat
Name: cfbuild-libexpat
Version: %{version}
Release: 1
Source0: expat-%{expat_version}.tar.xz
License: MIT
Group: Other
Url: https://cfengine.com
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}-buildroot
AutoReqProv: no
%define prefix %{buildprefix}
%prep
mkdir -p %{_builddir}
%setup -q -n expat-%{expat_version}
CFLAGS="-fPIC -DPIC" ./configure --prefix=%{prefix} --without-examples --without-tests --without-xmlwf --enable-static=no --enable-shared=yes
%build
make
%install
rm -rf ${RPM_BUILD_ROOT}
make install DESTDIR=${RPM_BUILD_ROOT}
# Removing unused files
rm -rf ${RPM_BUILD_ROOT}%{prefix}/lib/cmake
rm -rf ${RPM_BUILD_ROOT}%{prefix}/lib/*.la
rm -rf ${RPM_BUILD_ROOT}%{prefix}/share
%clean
rm -rf $RPM_BUILD_ROOT
%package devel
Summary: CFEngine Build Automation -- libexpat -- development files
Group: Other
AutoReqProv: no
%description
CFEngine Build Automation -- libexpat
%description devel
CFEngine Build Automation -- libexpat -- development files
%files
%defattr(-,root,root)
%dir %prefix/lib
%prefix/lib/*.so*
%files devel
%defattr(-,root,root)
%prefix/include
%dir %prefix/lib
%prefix/lib/pkgconfig
%changelog