]> git.pld-linux.org Git - packages/acl.git/blob - acl.spec
3e660d52b8d0c8cf5c0c74ad06e67f78de2b7234
[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 BuildRequires:  attr-devel >= 2.0.0
13 Requires:       attr
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
29 %description devel
30 Header files and libraries to develop software which manipulate access
31 control lists.
32
33 %description devel -l pl
34 Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
35 manipuluj±cego listami kontroli dostêpu (ACL).
36
37 %prep
38 %setup  -q
39 %patch0 -p1
40
41 %build
42 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
43 %{__autoconf}
44 %configure
45
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_includedir}/acl
51
52 DIST_ROOT="$RPM_BUILD_ROOT"
53 DIST_INSTALL=`pwd`/install.manifest
54 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
55 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
56 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
57 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
58 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
59 %{__make} install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
60
61
62 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
63 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
64 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
65 echo ".so acl_copy_ext.3"       > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
66 echo ".so acl_get_fd.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
67 echo ".so acl_get_file.3"       > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
68 echo ".so acl_from_text.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
69 echo ".so acl_from_text.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
70
71 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
72 ln -sf /lib/libacl.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libacl.so
73
74 gzip -9nf doc/CHANGES
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc doc/*.gz
85 %attr(755,root,root) %{_bindir}/*
86 %attr(755,root,root) /lib/lib*.so.*.*
87 %{_mandir}/man1/*
88
89 %files devel
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/lib*.la
92 %attr(755,root,root) %{_libdir}/lib*.so
93 %{_libdir}/lib*.a
94 %{_includedir}/acl
95 %{_includedir}/sys/*
96 %{_mandir}/man[235]/*
This page took 0.031916 seconds and 2 git commands to generate.