]> git.pld-linux.org Git - packages/acl.git/blob - acl.spec
- run ldconfig in %%post(un)
[packages/acl.git] / acl.spec
1 Summary:        Command for manipulating access control lists
2 Summary(pl):    Komenda do manipulacji listami kontroli dostêpu (ACL)
3 Name:           acl
4 Version:        1.1.3
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Group(de):      Applikationen/System
9 Group(pl):      Aplikacje/System
10 Source0:        ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
11 Patch0:         %{name}-miscfix.patch
12 URL:            http://oss.sgi.com/projects/xfs/
13 BuildRequires:  autoconf
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 A command (chacl) to manipulate POSIX access control lists under
18 Linux.
19
20 %description -l pl
21 Komenda (chacl) do manipulowania zgodnymi z POSIX listami kontroli
22 dostêpu (ACL) pod Linuksem.
23
24 %package devel
25 Summary:        Header files and libraries to manipulate acls
26 Summary(pl):    Pliki nag³ówkowe i biblioteki do manipulacji ACL-ami
27 Group:          Development/Libraries
28 Group(de):      Entwicklung/Libraries
29 Group(es):      Desarrollo/Bibliotecas
30 Group(fr):      Development/Librairies
31 Group(pl):      Programowanie/Biblioteki
32 Group(pt_BR):   Desenvolvimento/Bibliotecas
33 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
34 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
35
36 %description devel
37 Header files and libraries to develop software which manipulate access
38 control lists.
39
40 %description -l pl devel
41 Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
42 manipuluj±cego listami kontroli dostêpu (ACL).
43
44 %prep
45 %setup  -q
46 %patch0 -p1
47
48 %build
49 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
50 autoconf
51 %configure
52
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{_includedir}/acl
58
59 DIST_ROOT="$RPM_BUILD_ROOT"
60 DIST_INSTALL=`pwd`/install.manifest
61 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
62 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV 
63 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
64 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
65
66 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
67 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
68 echo ".so man3/acl_copy_ext.3"  > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
69 echo ".so man3/acl_get_fd.3"    > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
70 echo ".so man3/acl_get_file.3"  > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
71 echo ".so man3/acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
72 echo ".so man3/acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
73
74 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
75 ln -sf /lib/libacl.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libacl.so
76
77 gzip -9nf doc/CHANGES
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
84
85 %files
86 %defattr(644,root,root,755)
87 %doc doc/*.gz
88 %attr(755,root,root) /bin/*
89 %attr(755,root,root) %{_bindir}/*
90 %attr(755,root,root) /lib/lib*.so.*.*
91 %{_mandir}/man1/*
92
93 %files devel
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_libdir}/lib*.la
96 %attr(755,root,root) %{_libdir}/lib*.so
97 %{_libdir}/lib*.a
98 %{_includedir}/acl
99 %{_includedir}/sys/*
100 %{_mandir}/man[235]/*
This page took 0.037976 seconds and 3 git commands to generate.