1 | %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
2 | |
---|
3 | Summary: An alternate posix capabilities library |
---|
4 | Name: libcap-ng |
---|
5 | Version: 0.6.6 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: LGPLv2+ |
---|
8 | Group: System Environment/Libraries |
---|
9 | URL: http://people.redhat.com/sgrubb/libcap-ng |
---|
10 | Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
12 | BuildRequires: kernel-headers >= 2.6.11 |
---|
13 | BuildRequires: libattr-devel |
---|
14 | |
---|
15 | Vendor: Project Vine |
---|
16 | Distribution: Vine Linux |
---|
17 | |
---|
18 | %description |
---|
19 | Libcap-ng is a library that makes using posix capabilities easier |
---|
20 | |
---|
21 | %package devel |
---|
22 | Summary: Header files for libcap-ng library |
---|
23 | License: LGPLv2+ |
---|
24 | Group: Development/Libraries |
---|
25 | Requires: kernel-headers >= 2.6.11 |
---|
26 | Requires: %{name} = %{version}-%{release} |
---|
27 | Requires: pkgconfig |
---|
28 | |
---|
29 | %description devel |
---|
30 | The libcap-ng-devel package contains the files needed for developing |
---|
31 | applications that need to use the libcap-ng library. |
---|
32 | |
---|
33 | %package python |
---|
34 | Summary: Python bindings for libcap-ng library |
---|
35 | License: LGPLv2+ |
---|
36 | Group: Development/Libraries |
---|
37 | BuildRequires: python-devel swig |
---|
38 | Requires: %{name} = %{version}-%{release} |
---|
39 | |
---|
40 | %description python |
---|
41 | The libcap-ng-python package contains the bindings so that libcap-ng |
---|
42 | and can be used by python applications. |
---|
43 | |
---|
44 | %package utils |
---|
45 | Summary: Utilities for analysing and setting file capabilities |
---|
46 | License: GPLv2+ |
---|
47 | Group: Development/Libraries |
---|
48 | Requires: %{name} = %{version}-%{release} |
---|
49 | |
---|
50 | %description utils |
---|
51 | The libcap-ng-utils package contains applications to analyse the |
---|
52 | posix capabilities of all the program running on a system. It also |
---|
53 | lets you set the file system based capabilities. |
---|
54 | |
---|
55 | %prep |
---|
56 | %setup -q |
---|
57 | |
---|
58 | %build |
---|
59 | %configure --libdir=/%{_lib} |
---|
60 | make %{?_smp_mflags} |
---|
61 | |
---|
62 | %install |
---|
63 | rm -rf $RPM_BUILD_ROOT |
---|
64 | make DESTDIR="${RPM_BUILD_ROOT}" install |
---|
65 | |
---|
66 | # Move the symlink |
---|
67 | rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}.so |
---|
68 | mkdir -p $RPM_BUILD_ROOT%{_libdir} |
---|
69 | VLIBNAME=$(ls $RPM_BUILD_ROOT/%{_lib}/%{name}.so.*.*.*) |
---|
70 | LIBNAME=$(basename $VLIBNAME) |
---|
71 | ln -s ../../%{_lib}/$LIBNAME $RPM_BUILD_ROOT%{_libdir}/%{name}.so |
---|
72 | |
---|
73 | # Move the pkgconfig file |
---|
74 | mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir} |
---|
75 | |
---|
76 | # Remove a couple things so they don't get picked up |
---|
77 | rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.la |
---|
78 | rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.a |
---|
79 | rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.a |
---|
80 | rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.la |
---|
81 | |
---|
82 | %check |
---|
83 | make check |
---|
84 | |
---|
85 | %clean |
---|
86 | rm -rf $RPM_BUILD_ROOT |
---|
87 | |
---|
88 | %post -p /sbin/ldconfig |
---|
89 | |
---|
90 | %postun -p /sbin/ldconfig |
---|
91 | |
---|
92 | |
---|
93 | %files |
---|
94 | %defattr(-,root,root,-) |
---|
95 | %doc COPYING.LIB |
---|
96 | %attr(0755,root,root) /%{_lib}/libcap-ng.so.* |
---|
97 | |
---|
98 | %files devel |
---|
99 | %defattr(-,root,root,-) |
---|
100 | %attr(0644,root,root) %{_mandir}/man3/* |
---|
101 | %attr(0644,root,root) %{_includedir}/cap-ng.h |
---|
102 | %attr(0755,root,root) %{_libdir}/libcap-ng.so |
---|
103 | %attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4 |
---|
104 | %{_libdir}/pkgconfig/libcap-ng.pc |
---|
105 | |
---|
106 | %files python |
---|
107 | %defattr(-,root,root,-) |
---|
108 | %attr(755,root,root) /%{_libdir}/python?.?/site-packages/_capng.so |
---|
109 | %{python_sitearch}/capng.py* |
---|
110 | |
---|
111 | %files utils |
---|
112 | %defattr(-,root,root,-) |
---|
113 | %doc COPYING |
---|
114 | %attr(0755,root,root) %{_bindir}/* |
---|
115 | %attr(0644,root,root) %{_mandir}/man8/* |
---|
116 | |
---|
117 | %changelog |
---|
118 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.6-1 |
---|
119 | - initial build for Vine Linux |
---|
120 | |
---|
121 | |
---|
122 | * Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> 0.6.6-1 |
---|
123 | - New upstream release |
---|
124 | |
---|
125 | * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2 |
---|
126 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
127 | |
---|
128 | * Wed Nov 03 2010 Steve Grubb <sgrubb@redhat.com> 0.6.5-1 |
---|
129 | - New upstream release fixing 2.6.36 kernel header issue |
---|
130 | |
---|
131 | * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.4-4 |
---|
132 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
133 | |
---|
134 | * Thu Jun 17 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-3 |
---|
135 | - Only open regular files in filecap |
---|
136 | |
---|
137 | * Mon May 24 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-2 |
---|
138 | - In utils subpackage added a requires statement. |
---|
139 | |
---|
140 | * Thu May 06 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-1 |
---|
141 | - New upstream release fixing multi-threading issue |
---|
142 | |
---|
143 | * Wed Apr 28 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-2 |
---|
144 | - filecap shows full capabilities if a file has any |
---|
145 | |
---|
146 | * Thu Mar 11 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-1 |
---|
147 | - New upstream release |
---|
148 | |
---|
149 | * Tue Feb 16 2010 Steve Grubb <sgrubb@redhat.com> 0.6.2-4 |
---|
150 | - Use global macro and require pkgconfig for devel subpackage |
---|
151 | |
---|
152 | * Fri Oct 09 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-3 |
---|
153 | - Apply patch to retain setpcap only if clearing bounding set |
---|
154 | |
---|
155 | * Sat Oct 03 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-2 |
---|
156 | - Apply patch correcting pscap and netcap acct detection |
---|
157 | |
---|
158 | * Mon Sep 28 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-1 |
---|
159 | - New upstream release |
---|
160 | |
---|
161 | * Sun Jul 26 2009 Steve Grubb <sgrubb@redhat.com> 0.6.1-1 |
---|
162 | - New upstream release |
---|
163 | |
---|
164 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2 |
---|
165 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
166 | |
---|
167 | * Mon Jun 29 2009 Steve Grubb <sgrubb@redhat.com> 0.6-1 |
---|
168 | - New upstream release |
---|
169 | |
---|
170 | * Sun Jun 21 2009 Steve Grubb <sgrubb@redhat.com> 0.5.1-1 |
---|
171 | - New upstream release |
---|
172 | |
---|
173 | * Fri Jun 19 2009 Steve Grubb <sgrubb@redhat.com> 0.5-1 |
---|
174 | - New upstream release |
---|
175 | |
---|
176 | * Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.2-1 |
---|
177 | - New upstream release |
---|
178 | |
---|
179 | * Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.1-1 |
---|
180 | - Initial build. |
---|
181 | |
---|