]>
Commit | Line | Data |
---|---|---|
00fab3bb | 1 | Summary: Command and library for manipulating access control lists |
2d050bfd | 2 | Summary(pl.UTF-8): Polecenie i biblioteka do manipulacji listami kontroli dostępu (ACL) |
e9cbe48f | 3 | Name: acl |
9f0f195f JB |
4 | Version: 2.2.53 |
5 | Release: 1 | |
f010e497 | 6 | License: LGPL v2+ (library), GPL v2 (utilities) |
e9cbe48f | 7 | Group: Applications/System |
9833bbc1 | 8 | Source0: http://git.savannah.gnu.org/cgit/acl.git/snapshot/%{name}-%{version}.tar.gz |
9f0f195f JB |
9 | # Source0-md5: 0c72e292be55ac60e890c00e6c561af8 |
10 | Patch0: %{name}-pl.po-update.patch | |
360c06fa | 11 | URL: http://savannah.nongnu.org/projects/acl/ |
a8d12da4 | 12 | BuildRequires: attr-devel >= 2.4.16-3 |
9f0f195f JB |
13 | BuildRequires: autoconf >= 2.50 |
14 | BuildRequires: automake >= 1:1.11 | |
15 | BuildRequires: gettext-tools >= 0.18.2 | |
16 | BuildRequires: libtool >= 2:2 | |
3cd78286 | 17 | BuildRequires: rpmbuild(macros) >= 1.402 |
9f0f195f | 18 | BuildRequires: sed >= 4.0 |
72526fc4 | 19 | Requires: attr >= 2.4.15 |
89b06cb6 | 20 | Obsoletes: libacl |
e9cbe48f AM |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
400bb84e | 23 | %define _bindir /bin |
400bb84e | 24 | |
e9cbe48f | 25 | %description |
00fab3bb JB |
26 | A command (chacl) and a library (libacl) to manipulate POSIX access |
27 | control lists under Linux. | |
e9cbe48f | 28 | |
b156a003 | 29 | %description -l pl.UTF-8 |
00fab3bb | 30 | Polecenie (chacl) i biblioteka (libacl) do manipulowania zgodnymi z |
b156a003 | 31 | POSIX listami kontroli dostępu (ACL) pod Linuksem. |
e9cbe48f AM |
32 | |
33 | %package devel | |
cd1e8792 | 34 | Summary: Header files for acl library |
2d050bfd | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki acl |
e9cbe48f | 36 | Group: Development/Libraries |
1f9d15fe | 37 | Requires: %{name} = %{version}-%{release} |
27f61b49 | 38 | Requires: attr-devel >= 2.4.16-3 |
e9cbe48f AM |
39 | |
40 | %description devel | |
cd1e8792 JB |
41 | Header files to develop software which manipulate access control |
42 | lists. | |
e9cbe48f | 43 | |
b156a003 JR |
44 | %description devel -l pl.UTF-8 |
45 | Pliki nagłówkowe potrzebne do rozwoju oprogramowania manipulującego | |
46 | listami kontroli dostępu (ACL). | |
cd1e8792 JB |
47 | |
48 | %package static | |
49 | Summary: Static acl library | |
2d050bfd | 50 | Summary(pl.UTF-8): Statyczna biblioteka acl |
cd1e8792 | 51 | Group: Development/Libraries |
1f9d15fe | 52 | Requires: %{name}-devel = %{version}-%{release} |
cd1e8792 JB |
53 | |
54 | %description static | |
55 | Static acl library. | |
56 | ||
b156a003 | 57 | %description static -l pl.UTF-8 |
cd1e8792 | 58 | Statyczna biblioteka acl. |
e9cbe48f AM |
59 | |
60 | %prep | |
00fab3bb | 61 | %setup -q |
e9cbe48f | 62 | %patch0 -p1 |
236a3a8a | 63 | |
9f0f195f JB |
64 | # prepare for gettextize |
65 | %{__sed} -i -e 's,po/Makefile\.in,,' configure.ac | |
8c0726aa JB |
66 | |
67 | %build | |
9f0f195f JB |
68 | po/update-potfiles |
69 | %{__gettextize} | |
b4a22aa2 | 70 | %{__libtoolize} |
00fab3bb | 71 | %{__aclocal} -I m4 |
f819ccf4 | 72 | %{__autoconf} |
9f0f195f JB |
73 | %{__autoheader} |
74 | %{__automake} | |
9833bbc1 | 75 | |
9f0f195f | 76 | %configure |
e9cbe48f | 77 | |
9f0f195f | 78 | %{__make} |
e9cbe48f AM |
79 | |
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
e9cbe48f | 82 | |
6d96512a | 83 | %{__make} install \ |
9f0f195f | 84 | DESTDIR=$RPM_BUILD_ROOT |
1ec62825 | 85 | |
9f0f195f JB |
86 | install -d $RPM_BUILD_ROOT/%{_lib} |
87 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libacl.so.* $RPM_BUILD_ROOT/%{_lib} | |
88 | ln -snf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libacl.so.*.*.*) \ | |
89 | $RPM_BUILD_ROOT%{_libdir}/libacl.so | |
8d23bb41 | 90 | |
9f0f195f | 91 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
5a5362e8 | 92 | |
e5197bf3 | 93 | %find_lang %{name} |
94 | ||
e9cbe48f AM |
95 | %clean |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
cd1e8792 JB |
98 | %post -p /sbin/ldconfig |
99 | %postun -p /sbin/ldconfig | |
c5185d1f | 100 | |
e5197bf3 | 101 | %files -f %{name}.lang |
e9cbe48f | 102 | %defattr(644,root,root,755) |
992f9a06 | 103 | %doc README doc/{CHANGES,TODO} |
5a5362e8 JB |
104 | %attr(755,root,root) %{_bindir}/chacl |
105 | %attr(755,root,root) %{_bindir}/getfacl | |
106 | %attr(755,root,root) %{_bindir}/setfacl | |
9f0f195f JB |
107 | %attr(755,root,root) /%{_lib}/libacl.so.*.*.* |
108 | %attr(755,root,root) %ghost /%{_lib}/libacl.so.1 | |
5a5362e8 JB |
109 | %{_mandir}/man1/chacl.1* |
110 | %{_mandir}/man1/getfacl.1* | |
111 | %{_mandir}/man1/setfacl.1* | |
112 | %{_mandir}/man5/acl.5* | |
e9cbe48f AM |
113 | |
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
992f9a06 | 116 | %doc doc/{extensions.txt,libacl.txt} |
9f0f195f JB |
117 | %attr(755,root,root) %{_libdir}/libacl.so |
118 | %{_libdir}/libacl.la | |
e9cbe48f | 119 | %{_includedir}/acl |
5a5362e8 | 120 | %{_includedir}/sys/acl.h |
9f0f195f | 121 | %{_pkgconfigdir}/libacl.pc |
5a5362e8 | 122 | %{_mandir}/man3/acl_*.3* |
cd1e8792 JB |
123 | |
124 | %files static | |
125 | %defattr(644,root,root,755) | |
9f0f195f | 126 | %{_libdir}/libacl.a |