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