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