]> git.pld-linux.org Git - packages/acl.git/blob - acl.spec
- added pl.po, actually enabled gettext, release 2
[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.22
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 # Source0-md5:  c448c1bee6014bc48a386c222d357873
10 Source1:        %{name}-pl.po
11 Patch0:         %{name}-miscfix.patch
12 URL:            http://oss.sgi.com/projects/xfs/
13 BuildRequires:  attr-devel >= 2.4.12
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gettext-devel
17 Requires:       attr >= 2.4.12
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
63 cp %{SOURCE1} po/pl.po
64 %{__perl} -pi -e 's/^(LINGUAS.*)/$1 pl/' po/Makefile
65
66 %build
67 rm -f aclocal.m4
68 %{__aclocal} -I m4
69 %{__autoconf}
70 %configure \
71         DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
72         OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
73
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_includedir}/acl,%{_mandir}/man3}
79
80 DIST_ROOT=$RPM_BUILD_ROOT
81 DIST_INSTALL=`pwd`/install.manifest
82 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
83 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
84 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
85
86 %{__make} install \
87         DIST_MANIFEST=$DIST_INSTALL
88 %{__make} install-dev \
89         DIST_MANIFEST=$DIST_INSTALL_DEV
90 %{__make} install-lib \
91         DIST_MANIFEST=$DIST_INSTALL_LIB
92
93 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
94 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
95 echo ".so acl_copy_ext.3"       > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
96 echo ".so acl_get_fd.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
97 echo ".so acl_get_file.3"       > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
98 echo ".so acl_from_text.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
99 echo ".so acl_from_text.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
100
101 rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
102 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libacl.so.*.*.*) \
103         $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
104
105 %find_lang %{name}
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files -f %{name}.lang
114 %defattr(644,root,root,755)
115 %doc README doc/{CHANGES,TODO}
116 %attr(755,root,root) %{_bindir}/*
117 %attr(755,root,root) %{_libdir}/lib*.so.*.*
118 %{_mandir}/man[15]/*
119
120 %files devel
121 %defattr(644,root,root,755)
122 %doc doc/{extensions.txt,libacl.txt}
123 %attr(755,root,root) %{_libexecdir}/lib*.so
124 %{_libexecdir}/lib*.la
125 %{_includedir}/acl
126 %{_includedir}/sys/*
127 %{_mandir}/man[23]/*
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libexecdir}/lib*.a
This page took 0.171021 seconds and 3 git commands to generate.