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