1 |
%define name acl |
2 |
%define version 2.2.51 |
3 |
%define release %mkrel 4 |
4 |
|
5 |
%define libname_orig lib%{name} |
6 |
%define lib_major 1 |
7 |
%define libname %mklibname %{name} %{lib_major} |
8 |
%define develname %mklibname -d %{name} |
9 |
|
10 |
Name: %{name} |
11 |
Version: %{version} |
12 |
Release: %{release} |
13 |
Summary: Command for manipulating access control lists |
14 |
License: GPLv2+ and LGPLv2 |
15 |
Group: System/Kernel and hardware |
16 |
URL: http://savannah.nongnu.org/projects/acl |
17 |
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.src.tar.gz |
18 |
BuildRequires: attr-devel |
19 |
BuildRequires: libtool |
20 |
|
21 |
%description |
22 |
This package contains the getfacl and setfacl utilities needed for |
23 |
manipulating access control lists. |
24 |
|
25 |
%package -n %{libname} |
26 |
Summary: Main library for %{libname_orig} |
27 |
Group: System/Libraries |
28 |
Requires(pre): filesystem >= 2.1.9-18 |
29 |
Provides: %{libname_orig} = %{version}-%{release} |
30 |
|
31 |
%description -n %{libname} |
32 |
This package contains the %{libname_orig} dynamic library which contains |
33 |
the POSIX 1003.1e draft standard 17 functions for manipulating access |
34 |
control lists. |
35 |
|
36 |
%package -n %{develname} |
37 |
Summary: Access control list static libraries and headers |
38 |
Group: Development/C |
39 |
Requires(pre): filesystem >= 2.1.9-18 |
40 |
Requires: %{libname} = %{version}-%{release} |
41 |
Provides: acl-devel = %{version}-%{release} |
42 |
Provides: libacl-devel = %{version}-%{release} |
43 |
Obsoletes: %mklibname -d acl 0 |
44 |
Obsoletes: %mklibname -d acl 1 |
45 |
|
46 |
%description -n %{develname} |
47 |
This package contains static libraries and header files needed to develop |
48 |
programs which make use of the access control list programming interface |
49 |
defined in POSIX 1003.1e draft standard 17. |
50 |
|
51 |
You should install %{develname} if you want to develop programs |
52 |
which make use of ACLs. If you install %{develname}, you will |
53 |
also want to install %{libname}. |
54 |
|
55 |
%prep |
56 |
%setup -q |
57 |
|
58 |
%build |
59 |
%configure2_5x --sbindir=%{_bindir} |
60 |
%make |
61 |
|
62 |
%install |
63 |
rm -rf %{buildroot} |
64 |
make install DIST_ROOT=%{buildroot}/ |
65 |
make install-dev DIST_ROOT=%{buildroot}/ |
66 |
make install-lib DIST_ROOT=%{buildroot}/ |
67 |
|
68 |
find %{buildroot} -name *.la | xargs rm |
69 |
|
70 |
rm -rf %{buildroot}%{_docdir}/acl |
71 |
|
72 |
%find_lang %{name} |
73 |
|
74 |
%clean |
75 |
rm -rf %{buildroot} |
76 |
|
77 |
%files -f %{name}.lang |
78 |
%defattr(-,root,root) |
79 |
%doc doc/CHANGES.gz doc/COPYING README |
80 |
%{_bindir}/* |
81 |
%{_mandir}/man1/* |
82 |
%{_mandir}/man5/* |
83 |
|
84 |
%files -n %{libname} |
85 |
%defattr(-,root,root) |
86 |
%doc doc/COPYING |
87 |
%{_libdir}/*.so.%{lib_major} |
88 |
%{_libdir}/*.so.%{lib_major}.* |
89 |
|
90 |
%files -n %{develname} |
91 |
%defattr(-,root,root) |
92 |
%doc doc/extensions.txt doc/COPYING doc/libacl.txt |
93 |
%{_libdir}/*.so |
94 |
%{_libdir}/*.a |
95 |
%{_mandir}/man3/* |
96 |
%dir %{_includedir}/acl |
97 |
%{_includedir}/acl/libacl.h |
98 |
%{_includedir}/sys/acl.h |