]> git.pld-linux.org Git - packages/acl.git/blob - acl.spec
e3b6171d4d92efafec813ac6e376c427a9472d06
[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.2.7
5 Release:        2
6 License:        GPL v2 (chacl utility), LGPL v2+ (library and the rest)
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.4.1
13 Requires:       attr
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _bindir         /bin
17 %define         _libdir         /lib
18 %define         _libexecdir     /usr/lib
19
20 %description
21 A command (chacl) to manipulate POSIX access control lists under
22 Linux.
23
24 %description -l pl
25 Komenda (chacl) do manipulowania zgodnymi z POSIX listami kontroli
26 dostêpu (ACL) pod Linuksem.
27
28 %package devel
29 Summary:        Header files for acl library
30 Summary(pl):    Pliki nag³ówkowe biblioteki acl
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}
33
34 %description devel
35 Header files to develop software which manipulate access control
36 lists.
37
38 %description devel -l pl
39 Pliki nag³ówkowe potrzebne do rozwoju oprogramowania manipuluj±cego
40 listami kontroli dostêpu (ACL).
41
42 %package static
43 Summary:        Static acl library
44 Summary(pl):    Statyczna biblioteka acl
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}
47
48 %description static
49 Static acl library.
50
51 %description static -l pl
52 Statyczna biblioteka acl.
53
54 %prep
55 %setup  -q
56 %patch0 -p1
57
58 %build
59 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
60 %{__autoconf}
61 %configure
62
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_includedir}/acl
68
69 DIST_ROOT="$RPM_BUILD_ROOT"
70 DIST_INSTALL=`pwd`/install.manifest
71 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
72 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
73 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
74 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
75 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
76 %{__make} install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
77
78 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
79 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
80 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
81 echo ".so acl_copy_ext.3"       > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
82 echo ".so acl_get_fd.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
83 echo ".so acl_get_file.3"       > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
84 echo ".so acl_from_text.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
85 echo ".so acl_from_text.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
86
87 rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
88 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT/lib ; echo libacl.so.*.*.*) \
89         $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
90
91 %find_lang %{name}
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files -f %{name}.lang
100 %defattr(644,root,root,755)
101 %doc README doc/{CHANGES,TODO}
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_libdir}/lib*.so.*.*
104 %{_mandir}/man[15]/*
105
106 %files devel
107 %defattr(644,root,root,755)
108 %doc doc/{extensions.txt,libacl.txt}
109 %attr(755,root,root) %{_libexecdir}/lib*.so
110 %{_libexecdir}/lib*.la
111 %{_includedir}/acl
112 %{_includedir}/sys/*
113 %{_mandir}/man[23]/*
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libexecdir}/lib*.a
This page took 0.23762 seconds and 2 git commands to generate.