]> git.pld-linux.org Git - packages/acl.git/blame - acl.spec
- updated to 2.2.47
[packages/acl.git] / acl.spec
CommitLineData
00fab3bb 1Summary: Command and library for manipulating access control lists
2d050bfd 2Summary(pl.UTF-8): Polecenie i biblioteka do manipulacji listami kontroli dostępu (ACL)
e9cbe48f 3Name: acl
5a5362e8
JB
4Version: 2.2.47
5Release: 1
f010e497 6License: LGPL v2+ (library), GPL v2 (utilities)
e9cbe48f 7Group: Applications/System
11c9b8a4 8Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz
5a5362e8 9# Source0-md5: a11e4571a54a0b1ae83010d1e68a64c2
e9cbe48f 10Patch0: %{name}-miscfix.patch
f87c10ec 11Patch1: %{name}-lt.patch
5d545f2f 12Patch2: %{name}-LDFLAGS.patch
5a5362e8 13Patch3: %{name}-pl.po-update.patch
e9cbe48f 14URL: http://oss.sgi.com/projects/xfs/
a8d12da4 15BuildRequires: attr-devel >= 2.4.16-3
2e445324 16BuildRequires: autoconf
00fab3bb 17BuildRequires: automake
8c4b7856 18BuildRequires: gettext-devel
7e4efd5f 19BuildRequires: libtool
72526fc4 20Requires: attr >= 2.4.15
89b06cb6 21Obsoletes: libacl
e9cbe48f
AM
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
400bb84e 24%define _bindir /bin
ff557bb1
JK
25%define _libdir /%{_lib}
26%define _libexecdir /usr/%{_lib}
400bb84e 27
e9cbe48f 28%description
00fab3bb
JB
29A command (chacl) and a library (libacl) to manipulate POSIX access
30control lists under Linux.
e9cbe48f 31
b156a003 32%description -l pl.UTF-8
00fab3bb 33Polecenie (chacl) i biblioteka (libacl) do manipulowania zgodnymi z
b156a003 34POSIX listami kontroli dostępu (ACL) pod Linuksem.
e9cbe48f
AM
35
36%package devel
cd1e8792 37Summary: Header files for acl library
2d050bfd 38Summary(pl.UTF-8): Pliki nagłówkowe biblioteki acl
e9cbe48f 39Group: Development/Libraries
1f9d15fe 40Requires: %{name} = %{version}-%{release}
27f61b49 41Requires: attr-devel >= 2.4.16-3
e9cbe48f
AM
42
43%description devel
cd1e8792
JB
44Header files to develop software which manipulate access control
45lists.
e9cbe48f 46
b156a003
JR
47%description devel -l pl.UTF-8
48Pliki nagłówkowe potrzebne do rozwoju oprogramowania manipulującego
49listami kontroli dostępu (ACL).
cd1e8792
JB
50
51%package static
52Summary: Static acl library
2d050bfd 53Summary(pl.UTF-8): Statyczna biblioteka acl
cd1e8792 54Group: Development/Libraries
1f9d15fe 55Requires: %{name}-devel = %{version}-%{release}
cd1e8792
JB
56
57%description static
58Static acl library.
59
b156a003 60%description static -l pl.UTF-8
cd1e8792 61Statyczna biblioteka acl.
e9cbe48f
AM
62
63%prep
00fab3bb 64%setup -q
e9cbe48f 65%patch0 -p1
f87c10ec 66%patch1 -p1
5d545f2f 67%patch2 -p1
5a5362e8 68%patch3 -p1
236a3a8a 69
00fab3bb 70rm -f aclocal.m4
8c0726aa
JB
71
72%build
b4a22aa2 73%{__libtoolize}
00fab3bb 74%{__aclocal} -I m4
f819ccf4 75%{__autoconf}
00fab3bb
JB
76%configure \
77 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
236a3a8a 78 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
e9cbe48f 79
72ce03e0 80%{__make} \
b4a22aa2 81 LLDFLAGS="%{rpmldflags}" \
07892272 82 top_builddir="../"
e9cbe48f
AM
83
84%install
85rm -rf $RPM_BUILD_ROOT
8d3ab6e4 86install -d $RPM_BUILD_ROOT{%{_includedir}/acl,%{_mandir}/man3}
e9cbe48f 87
994b4915 88export DIST_ROOT=$RPM_BUILD_ROOT
1ec62825 89P=$(pwd)
1ec62825
ER
90DIST_INSTALL=$P/install.manifest
91DIST_INSTALL_DEV=$P/install-dev.manifest
92DIST_INSTALL_LIB=$P/install-lib.manifest
e9cbe48f 93
6d96512a 94%{__make} install \
b4a22aa2 95 DIST_MANIFEST=$DIST_INSTALL \
07892272 96 top_builddir="../"
8d3ab6e4 97%{__make} install-dev \
b4a22aa2 98 DIST_MANIFEST=$DIST_INSTALL_DEV \
07892272 99 top_builddir="../"
8d3ab6e4 100%{__make} install-lib \
b4a22aa2 101 DIST_MANIFEST=$DIST_INSTALL_LIB \
07892272 102 top_builddir="../"
8d3ab6e4 103
e9cbe48f
AM
104rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
105rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
8b815ad8 106echo ".so acl_copy_ext.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
3845ca70 107echo ".so acl_get_fd.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
8b815ad8 108echo ".so acl_get_file.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
109echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
110echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
e9cbe48f 111
5a5362e8
JB
112#rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
113ln -snf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libacl.so.*.*.*) \
0b4dcfa0 114 $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
27f61b49
JB
115%{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
116 $RPM_BUILD_ROOT%{_libexecdir}/libacl.la
b58b9cea 117
1ec62825
ER
118rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
119
5a5362e8
JB
120# already in /usr
121rm -f $RPM_BUILD_ROOT%{_libdir}/libacl.{so,la,a}
122
e5197bf3 123%find_lang %{name}
124
e9cbe48f
AM
125%clean
126rm -rf $RPM_BUILD_ROOT
127
cd1e8792
JB
128%post -p /sbin/ldconfig
129%postun -p /sbin/ldconfig
c5185d1f 130
e5197bf3 131%files -f %{name}.lang
e9cbe48f 132%defattr(644,root,root,755)
992f9a06 133%doc README doc/{CHANGES,TODO}
5a5362e8
JB
134%attr(755,root,root) %{_bindir}/chacl
135%attr(755,root,root) %{_bindir}/getfacl
136%attr(755,root,root) %{_bindir}/setfacl
137%attr(755,root,root) %{_libdir}/libacl.so.*.*.*
138%attr(755,root,root) %ghost %{_libdir}/libacl.so.1
139%{_mandir}/man1/chacl.1*
140%{_mandir}/man1/getfacl.1*
141%{_mandir}/man1/setfacl.1*
142%{_mandir}/man5/acl.5*
e9cbe48f
AM
143
144%files devel
145%defattr(644,root,root,755)
992f9a06 146%doc doc/{extensions.txt,libacl.txt}
8c0726aa
JB
147%attr(755,root,root) %{_libexecdir}/libacl.so
148%{_libexecdir}/libacl.la
e9cbe48f 149%{_includedir}/acl
5a5362e8
JB
150%{_includedir}/sys/acl.h
151%{_mandir}/man3/acl_*.3*
cd1e8792
JB
152
153%files static
154%defattr(644,root,root,755)
8c0726aa 155%{_libexecdir}/libacl.a
This page took 0.099867 seconds and 4 git commands to generate.