This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
libacl/libacl.spec

146 lines
4.0 KiB
RPMSpec

### AUTOUPDATE-OFF: 1
Name: libacl
Version: 2.2.52
Release: 2mamba
Summary: Access control list utilities
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://oss.sgi.com/projects/xfs/source.html
Source: http://download.savannah.gnu.org/releases/acl/acl-%{version}.src.tar.gz
Patch0: libacl-2.2.47-build.patch
Patch1: libacl-2.2.47-path_max.patch
Patch2: libacl-2.2.47-params.patch
Patch3: libacl-2.2.47-exitcode.patch
Patch4: libacl-2.2.47-segfault.patch
Patch5: libacl-2.2.47-multilib.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libattr-devel
## AUTOBUILDREQ-END
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: gettext
BuildRequires: gawk
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package contains the libacl.so dynamic library which contains
the POSIX 1003.1e draft standard 17 functions for manipulating access
control lists.
%package devel
Group: Development/Libraries
Summary: Libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: %{name}-static
Obsoletes: %{name}-static
%description devel
This package contains libraries and header files needed to develop
programs which make use of the access control list programming interface
defined in POSIX 1003.1e draft standard 17.
%package tools
Group: Development/Libraries
Summary: Tools for %{name}
License: GPL
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains the getfacl and setfacl utilities needed for
manipulating access control lists.
%prep
%setup -q -n acl-%{version}
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
#%patch3 -p1
#%patch4 -p1
#%patch5 -p1
#autoconf
%build
touch .census
# acl abuses libexecdir
%configure --libdir=/%{_lib} --libexecdir=%{_libdir}
%if "%{_host}" != "%{_build}"
make LIBTOOL="%{_prefix}/%{_host}/%{_bindir}/libtool --tag=CC" LIBATTR="%{_prefix}/%{_host}/lib/libattr.so"
%else
make
%endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
make install install-lib install-dev \
PKG_BIN_DIR=%{buildroot}%{_bindir} \
PKG_MAN_DIR=%{buildroot}%{_mandir} \
PKG_DOC_DIR=%{buildroot}%{_docdir}/%{name} \
PKG_LOCALE_DIR=%{buildroot}%{_datadir}/locale \
PKG_INC_DIR=%{buildroot}%{_includedir} \
PKG_DEVLIB_DIR=%{buildroot}%{_libdir} \
PKG_LIB_DIR=%{buildroot}/%{_lib}
rm -f %{buildroot}%{_libdir}/libacl.so
%if "%{_host}" == "%{_build}"
ln -sf ../../%{_lib}/libacl.so %{buildroot}%{_libdir}/libacl.so
%endif
chmod 0755 %{buildroot}/%{_lib}/libacl.so.*.*.*
rm -f %{buildroot}/%{_libdir}/libacl.a
rm -f %{buildroot}/%{_libdir}/libacl.la
rm -f %{buildroot}/%{_lib}/libacl.a
rm -f %{buildroot}/%{_lib}/libacl.la
%find_lang acl
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
#%{_libdir}/*.so.*
/%{_lib}/libacl.so.*
%doc README
%files devel
%defattr(-,root,root)
%dir %{_includedir}/acl
%{_includedir}/acl/*.h
%{_includedir}/sys/acl.h
%if "%{_host}" == "%{_build}"
%{_libdir}/libacl.so
%endif
/%{_lib}/libacl.so
%{_mandir}/man3/*.3.gz
%dir %{_docdir}/libacl
%{_docdir}/libacl/*
%files tools -f acl.lang
%defattr(-,root,root)
%{_bindir}/chacl
%{_bindir}/getfacl
%{_bindir}/setfacl
%{_mandir}/man1/chacl.1.gz
%{_mandir}/man1/getfacl.1.gz
%{_mandir}/man1/setfacl.1.gz
%{_mandir}/man5/acl.5.gz
%changelog
* Mon Jul 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.52-2mamba
- remove -static package and *.la *.a files
* Mon May 20 2013 Automatic Build System <autodist@mambasoft.it> 2.2.52-1mamba
- automatic version update by autodist
* Sun Dec 09 2012 Automatic Build System <autodist@mambasoft.it> 2.2.51-1mamba
- update to 2.2.51
* Sun Nov 30 2008 gil <puntogil@libero.it> 2.2.47-1mamba
- package created by autospec