[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Summary: Library for getting and setting POSIX.1e capabilities |
---|
| 4 | Summary(ja): POSIX.1e ケーパビリティを取得・設定するためのライブラリ |
---|
| 5 | Name: libcap |
---|
[12226] | 6 | Version: 2.27 |
---|
[9665] | 7 | Release: 1%{?_dist_release} |
---|
[521] | 8 | |
---|
[3487] | 9 | License: LGPLv2 |
---|
| 10 | Group: System Environment/Libraries |
---|
| 11 | |
---|
[10400] | 12 | Vendor: Project Vine |
---|
| 13 | Distribution: Vine Linux |
---|
| 14 | |
---|
[12226] | 15 | Source: https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.xz |
---|
[10400] | 16 | Source1: getpcaps.8 |
---|
[521] | 17 | |
---|
[10400] | 18 | |
---|
[9665] | 19 | # Patch0: libcap-2.16-headerfix.patch |
---|
[10400] | 20 | Patch1: %{name}-2.25-buildflags.patch |
---|
[3487] | 21 | |
---|
[521] | 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 23 | BuildRequires: libattr-devel |
---|
[4082] | 24 | BuildRequires: pam-devel |
---|
[521] | 25 | |
---|
| 26 | %description |
---|
| 27 | libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) |
---|
| 28 | draft 15 capabilities. |
---|
| 29 | |
---|
| 30 | %package devel |
---|
| 31 | Summary: Development files for libcap |
---|
[3487] | 32 | Summary(ja): libcap の開発用ファイル |
---|
[521] | 33 | Group: Development/Libraries |
---|
| 34 | Requires: %{name} = %{version}-%{release} |
---|
| 35 | |
---|
| 36 | %description devel |
---|
| 37 | Development files (Headers, libraries for static linking, etc) for libcap. |
---|
| 38 | |
---|
| 39 | libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) |
---|
| 40 | draft 15 capabilities. |
---|
| 41 | |
---|
| 42 | Install libcap-devel if you want to develop or compile applications using |
---|
| 43 | libcap. |
---|
| 44 | |
---|
[10400] | 45 | %package static |
---|
| 46 | Summary: static library of libcap |
---|
| 47 | Summary(ja): libcap のスタティックライブラリ |
---|
| 48 | Group: Development/Libraries |
---|
| 49 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 50 | |
---|
| 51 | %description static |
---|
| 52 | This package includes the static library of libpcap |
---|
| 53 | |
---|
[521] | 54 | # compat32 |
---|
| 55 | %package -n compat32-%{name} |
---|
| 56 | Summary: Library for getting and setting POSIX.1e capabilities |
---|
[3487] | 57 | Summary(ja): POSIX.1e ケーパビリティを取得・設定するためのライブラリ |
---|
[521] | 58 | Group: System Environment/Libraries |
---|
| 59 | |
---|
| 60 | %description -n compat32-%{name} |
---|
| 61 | libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) |
---|
| 62 | draft 15 capabilities. |
---|
| 63 | |
---|
| 64 | %package -n compat32-%{name}-devel |
---|
| 65 | Summary: Development files for libcap |
---|
[3487] | 66 | Summary(ja): libcap の開発用ファイル |
---|
[521] | 67 | Group: Development/Libraries |
---|
| 68 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 69 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 70 | |
---|
| 71 | %description -n compat32-%{name}-devel |
---|
| 72 | Development files (Headers, libraries for static linking, etc) for libcap. |
---|
| 73 | |
---|
| 74 | libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) |
---|
| 75 | draft 15 capabilities. |
---|
| 76 | |
---|
| 77 | Install libcap-devel if you want to develop or compile applications using |
---|
| 78 | libcap. |
---|
| 79 | |
---|
| 80 | %prep |
---|
| 81 | %setup -q |
---|
[9665] | 82 | # %patch0 -p1 |
---|
| 83 | %patch1 -p1 |
---|
[521] | 84 | |
---|
| 85 | %build |
---|
| 86 | # libcap can not be build with _smp_mflags: |
---|
| 87 | make PREFIX=%{_prefix} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \ |
---|
| 88 | INCDIR=%{_includedir} MANDIR=%{_mandir} COPTFLAG="$RPM_OPT_FLAGS" |
---|
| 89 | |
---|
| 90 | %install |
---|
| 91 | rm -rf $RPM_BUILD_ROOT |
---|
[9665] | 92 | make install RAISE_SETFCAP=no \ |
---|
| 93 | DESTDIR=${RPM_BUILD_ROOT} \ |
---|
[10400] | 94 | LIBDIR=/%{_lib} \ |
---|
| 95 | SBINDIR=%{_sbindir} \ |
---|
| 96 | INCDIR=%{_includedir} \ |
---|
| 97 | MANDIR=%{_mandir}/ \ |
---|
| 98 | PKGCONFIGDIR=%{_libdir}/pkgconfig/ \ |
---|
[9665] | 99 | COPTFLAG="$RPM_OPT_FLAGS" |
---|
[521] | 100 | mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man{2,3,8} |
---|
| 101 | #mv -f doc/*.2 ${RPM_BUILD_ROOT}/%{_mandir}/man2/ |
---|
| 102 | mv -f doc/*.3 ${RPM_BUILD_ROOT}/%{_mandir}/man3/ |
---|
| 103 | |
---|
| 104 | chmod +x $RPM_BUILD_ROOT/%{_lib}/*.so.* |
---|
| 105 | |
---|
[10400] | 106 | # need to build init.lxc.static |
---|
| 107 | mv %{buildroot}/%{_lib}/libcap.a %{buildroot}/%{_libdir}/libcap.a |
---|
| 108 | |
---|
| 109 | cp -f %{SOURCE1} %{buildroot}/%{_mandir}/man8/ |
---|
| 110 | |
---|
[521] | 111 | %clean |
---|
| 112 | rm -rf $RPM_BUILD_ROOT |
---|
| 113 | |
---|
| 114 | %post -p /sbin/ldconfig |
---|
| 115 | |
---|
| 116 | %postun -p /sbin/ldconfig |
---|
| 117 | |
---|
| 118 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 119 | |
---|
| 120 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 121 | |
---|
| 122 | %files |
---|
| 123 | %defattr(-,root,root) |
---|
[12226] | 124 | %license License |
---|
| 125 | %doc doc/capability.notes |
---|
[521] | 126 | /%{_lib}/*.so.* |
---|
| 127 | %{_sbindir}/* |
---|
[10400] | 128 | %{_mandir}/man1/* |
---|
[521] | 129 | %{_mandir}/man8/* |
---|
| 130 | /%{_lib}/security/pam_cap.so |
---|
| 131 | |
---|
| 132 | %files devel |
---|
| 133 | %defattr(-,root,root) |
---|
| 134 | %{_includedir}/* |
---|
| 135 | /%{_lib}/*.so |
---|
[10400] | 136 | %{_libdir}/pkgconfig/* |
---|
[521] | 137 | %{_mandir}/man3/* |
---|
| 138 | |
---|
[10400] | 139 | %files static |
---|
| 140 | %defattr(-,root,root) |
---|
| 141 | %{_libdir}/*.a |
---|
| 142 | |
---|
[521] | 143 | # compat32 |
---|
| 144 | %if %{build_compat32} |
---|
| 145 | %files -n compat32-%{name} |
---|
| 146 | %defattr(-,root,root) |
---|
| 147 | /%{_lib}/*.so.* |
---|
| 148 | |
---|
| 149 | %files -n compat32-%{name}-devel |
---|
| 150 | %defattr(-,root,root) |
---|
| 151 | /%{_lib}/*.so |
---|
| 152 | %endif |
---|
| 153 | |
---|
| 154 | %changelog |
---|
[12226] | 155 | * Mon Sep 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.27-1 |
---|
| 156 | - new upstream release. |
---|
| 157 | |
---|
[10400] | 158 | * Sun Jun 26 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.25-1 |
---|
| 159 | - new upstream release. |
---|
| 160 | - added Source1. |
---|
| 161 | - added libcap-static. |
---|
| 162 | |
---|
[9665] | 163 | * Thu Jul 9 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.24-1 |
---|
| 164 | - new upstream release |
---|
| 165 | - change tarfile format |
---|
| 166 | - change flags in install section |
---|
| 167 | - add patch1, drop patch0 (patch1 from fedora) |
---|
| 168 | |
---|
[8085] | 169 | * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.16-4 |
---|
| 170 | - rebuild with VineSeed environment |
---|
| 171 | |
---|
[4082] | 172 | * Tue Jun 07 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.16-3 |
---|
| 173 | - add BuildRequires: pam-devel |
---|
| 174 | |
---|
[3487] | 175 | * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16-2 |
---|
| 176 | - rebuilt with current VineSeed |
---|
| 177 | |
---|
[521] | 178 | * Wed Jul 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.16-1 |
---|
| 179 | - new upstream release |
---|
| 180 | - remove compat library (libpcap-1.10) |
---|
| 181 | |
---|
| 182 | * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.06-2 |
---|
| 183 | - added compat32 package for x86_64 arch support |
---|
| 184 | |
---|
| 185 | * Fri Jun 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.06-1 |
---|
| 186 | - source updated |
---|
| 187 | - built with libattr 2.4.41 |
---|
| 188 | |
---|
| 189 | * Mon Mar 13 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10-22vl2 |
---|
| 190 | - rebuilt |
---|
| 191 | |
---|
| 192 | * Sun Mar 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10-22vl1 |
---|
| 193 | - initial build for Vine Linux based on FC package |
---|
| 194 | |
---|
| 195 | * Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 1.10-22 |
---|
| 196 | - build with gcc-4 |
---|
| 197 | |
---|
| 198 | * Wed Feb 09 2005 Karsten Hopp <karsten@redhat.de> 1.10-21 |
---|
| 199 | - rebuilt |
---|
| 200 | |
---|
| 201 | * Tue Aug 31 2004 Phil Knirsch <pknirsch@redhat.com> 1.10-20 |
---|
| 202 | - Fix wrong typedef in userland patch (#98801) |
---|
| 203 | |
---|
| 204 | * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> |
---|
| 205 | - rebuilt |
---|
| 206 | |
---|
| 207 | * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> |
---|
| 208 | - rebuilt |
---|
| 209 | |
---|
| 210 | * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> |
---|
| 211 | - rebuilt |
---|
| 212 | |
---|
| 213 | * Tue Jan 27 2004 Karsten Hopp <karsten@redhat.de> 1.10-17 |
---|
| 214 | - use _manpath |
---|
| 215 | |
---|
| 216 | * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> |
---|
| 217 | - rebuilt |
---|
| 218 | |
---|
| 219 | * Wed Jan 22 2003 Tim Powers <timp@redhat.com> |
---|
| 220 | - rebuilt |
---|
| 221 | |
---|
| 222 | * Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 1.10-14 |
---|
| 223 | - set execute bits on library so that requires are generated. |
---|
| 224 | |
---|
| 225 | * Thu Nov 21 2002 Mike A. Harris <mharris@redhat.com> 1.10-13 |
---|
| 226 | - Removed %%name macro sillyness from package Summary, description text, etc. |
---|
| 227 | - Removed archaic Prefix: tag |
---|
| 228 | - lib64 fixes everywhere to use _lib, _libdir, etc |
---|
| 229 | - Removed deletion of RPM_BUILD_DIR from %%clean section |
---|
| 230 | - Added -q flag to setup macro |
---|
| 231 | - Severely cleaned up spec file, and removed usage of perl |
---|
| 232 | |
---|
| 233 | * Fri Jul 19 2002 Jakub Jelinek <jakub@redhat.com> 1.10-12 |
---|
| 234 | - CFLAGS was using COPTFLAG variable, not COPTFLAGS |
---|
| 235 | - build with -fpic |
---|
| 236 | - apply the IA-64 patch everywhere, use capget/capset from glibc, |
---|
| 237 | not directly as _syscall (as it is broken on IA-32 with -fpic) |
---|
| 238 | - reenable alpha |
---|
| 239 | |
---|
| 240 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
| 241 | - automated rebuild |
---|
| 242 | |
---|
| 243 | * Wed May 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-10 |
---|
| 244 | - Exclude alpha for now, apparent gcc bug. |
---|
| 245 | |
---|
| 246 | * Fri Nov 9 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-6 |
---|
| 247 | - Fix sys/capabilities.h header (#55727) |
---|
| 248 | - Move to /lib, some applications seem to be using this rather early |
---|
| 249 | (#55733) |
---|
| 250 | |
---|
| 251 | * Mon Jul 16 2001 Trond Eivind Glomsr藷?<teg@redhat.com> |
---|
| 252 | - Add post,postun scripts |
---|
| 253 | |
---|
| 254 | * Tue Jul 10 2001 Jakub Jelinek <jakub@redhat.com> |
---|
| 255 | - don't build libcap.so.1 with ld -shared, but gcc -shared |
---|
| 256 | |
---|
| 257 | * Wed Jun 20 2001 Trond Eivind Glomsr藷?<teg@redhat.com> |
---|
| 258 | - Rebuild - it was missing for alpha |
---|
| 259 | |
---|
| 260 | * Wed Jun 06 2001 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
| 261 | - add s390/s390x support |
---|
| 262 | |
---|
| 263 | * Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-1 |
---|
| 264 | - initial RPM |
---|
| 265 | - fix build on ia64 |
---|