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