]> git.pld-linux.org Git - packages/acl.git/blob - acl.spec
- updated to 2.2.28 (licensing clarifications)
[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.28
5 Release:        1
6 License:        LGPL v2+ (library), GPL v2 (utilities)
7 Group:          Applications/System
8 Source0:        ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
9 # Source0-md5:  69ba4f7e2bb87d20aedd15249f8747eb
10 Patch0:         %{name}-miscfix.patch
11 URL:            http://oss.sgi.com/projects/xfs/
12 BuildRequires:  attr-devel >= 2.4.16-3
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  gettext-devel
16 BuildRequires:  sed >= 4.0
17 Requires:       attr >= 2.4.15
18 Obsoletes:      libacl
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _bindir         /bin
22 %define         _libdir         /%{_lib}
23 %define         _libexecdir     /usr/%{_lib}
24
25 %description
26 A command (chacl) and a library (libacl) to manipulate POSIX access
27 control lists under Linux.
28
29 %description -l pl
30 Polecenie (chacl) i biblioteka (libacl) do manipulowania zgodnymi z
31 POSIX listami kontroli dostêpu (ACL) pod Linuksem.
32
33 %package devel
34 Summary:        Header files for acl library
35 Summary(pl):    Pliki nag³ówkowe biblioteki acl
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       attr-devel >= 2.4.16-3
39
40 %description devel
41 Header files to develop software which manipulate access control
42 lists.
43
44 %description devel -l pl
45 Pliki nag³ówkowe potrzebne do rozwoju oprogramowania manipuluj±cego
46 listami kontroli dostêpu (ACL).
47
48 %package static
49 Summary:        Static acl library
50 Summary(pl):    Statyczna biblioteka acl
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static acl library.
56
57 %description static -l pl
58 Statyczna biblioteka acl.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63
64 %build
65 rm -f aclocal.m4
66 %{__aclocal} -I m4
67 %{__autoconf}
68 %configure \
69         DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
70         OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_includedir}/acl,%{_mandir}/man3}
77
78 DIST_ROOT=$RPM_BUILD_ROOT
79 DIST_INSTALL=`pwd`/install.manifest
80 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
81 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
82 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
83
84 %{__make} install \
85         DIST_MANIFEST=$DIST_INSTALL
86 %{__make} install-dev \
87         DIST_MANIFEST=$DIST_INSTALL_DEV
88 %{__make} install-lib \
89         DIST_MANIFEST=$DIST_INSTALL_LIB
90
91 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
92 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
93 echo ".so acl_copy_ext.3"       > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
94 echo ".so acl_get_fd.3"         > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
95 echo ".so acl_get_file.3"       > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
96 echo ".so acl_from_text.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
97 echo ".so acl_from_text.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
98
99 rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
100 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libacl.so.*.*.*) \
101         $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
102 %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
103         $RPM_BUILD_ROOT%{_libexecdir}/libacl.la
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.088846 seconds and 4 git commands to generate.