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