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