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