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