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