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