source: projects/specs/trunk/lib/libc/libcap/libcap-vl.spec @ 12226

Revision 12226, 7.3 KB checked in by tomop, 5 years ago (diff)

updated 4 packages

bubblewrap-0.3.3-6

libappstream-glib-0.7.15-1

libcap-2.27-1

xdg-utils-1.1.3-1

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Summary: Library for getting and setting POSIX.1e capabilities
4Summary(ja): POSIX.1e ケーパビリティを取得・設定するためのライブラリ
5Name: libcap
6Version: 2.27
7Release: 1%{?_dist_release}
8
9License: LGPLv2
10Group: System Environment/Libraries
11
12Vendor: Project Vine
13Distribution: Vine Linux
14
15Source: https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.xz
16Source1: getpcaps.8
17
18
19# Patch0: libcap-2.16-headerfix.patch
20Patch1: %{name}-2.25-buildflags.patch
21
22BuildRoot: %{_tmppath}/%{name}-%{version}-root
23BuildRequires: libattr-devel
24BuildRequires: pam-devel
25
26%description
27libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
28draft 15 capabilities.
29
30%package devel
31Summary: Development files for libcap
32Summary(ja): libcap の開発用ファイル
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35
36%description devel
37Development files (Headers, libraries for static linking, etc) for libcap.
38
39libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
40draft 15 capabilities.
41
42Install libcap-devel if you want to develop or compile applications using
43libcap.
44
45%package static
46Summary: static library of libcap
47Summary(ja): libcap のスタティックライブラリ
48Group: Development/Libraries
49Requires: %{name}-devel = %{version}-%{release}
50
51%description static
52This package includes the static library of libpcap
53
54# compat32
55%package -n compat32-%{name}
56Summary: Library for getting and setting POSIX.1e capabilities
57Summary(ja): POSIX.1e ケーパビリティを取得・設定するためのライブラリ
58Group: System Environment/Libraries
59
60%description -n compat32-%{name}
61libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
62draft 15 capabilities.
63
64%package -n compat32-%{name}-devel
65Summary: Development files for libcap
66Summary(ja): libcap の開発用ファイル
67Group: Development/Libraries
68Requires: compat32-%{name} = %{version}-%{release}
69Requires: %{name}-devel = %{version}-%{release}
70
71%description -n compat32-%{name}-devel
72Development files (Headers, libraries for static linking, etc) for libcap.
73
74libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
75draft 15 capabilities.
76
77Install libcap-devel if you want to develop or compile applications using
78libcap.
79
80%prep
81%setup -q
82# %patch0 -p1
83%patch1 -p1
84
85%build
86# libcap can not be build with _smp_mflags:
87make PREFIX=%{_prefix} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
88     INCDIR=%{_includedir} MANDIR=%{_mandir} COPTFLAG="$RPM_OPT_FLAGS"
89
90%install
91rm -rf $RPM_BUILD_ROOT
92make install RAISE_SETFCAP=no \
93             DESTDIR=${RPM_BUILD_ROOT} \
94             LIBDIR=/%{_lib} \
95             SBINDIR=%{_sbindir} \
96             INCDIR=%{_includedir} \
97             MANDIR=%{_mandir}/ \
98             PKGCONFIGDIR=%{_libdir}/pkgconfig/ \
99             COPTFLAG="$RPM_OPT_FLAGS"
100mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man{2,3,8}
101#mv -f doc/*.2 ${RPM_BUILD_ROOT}/%{_mandir}/man2/
102mv -f doc/*.3 ${RPM_BUILD_ROOT}/%{_mandir}/man3/
103
104chmod +x $RPM_BUILD_ROOT/%{_lib}/*.so.*
105
106# need to build init.lxc.static
107mv %{buildroot}/%{_lib}/libcap.a %{buildroot}/%{_libdir}/libcap.a
108
109cp -f %{SOURCE1} %{buildroot}/%{_mandir}/man8/
110
111%clean
112rm -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)
124%license License
125%doc doc/capability.notes
126/%{_lib}/*.so.*
127%{_sbindir}/*
128%{_mandir}/man1/*
129%{_mandir}/man8/*
130/%{_lib}/security/pam_cap.so
131
132%files devel
133%defattr(-,root,root)
134%{_includedir}/*
135/%{_lib}/*.so
136%{_libdir}/pkgconfig/*
137%{_mandir}/man3/*
138
139%files static
140%defattr(-,root,root)
141%{_libdir}/*.a
142
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
155* Mon Sep 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.27-1
156- new upstream release.
157
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
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
169* Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.16-4
170- rebuild with VineSeed environment
171
172* Tue Jun 07 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.16-3
173- add BuildRequires: pam-devel
174
175* Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16-2
176- rebuilt with current VineSeed
177
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
Note: See TracBrowser for help on using the repository browser.