2006-12-19 00:15:07 +01:00
|
|
|
#
|
2011-06-16 09:04:00 +02:00
|
|
|
# spec file for package attr
|
2006-12-19 00:15:07 +01:00
|
|
|
#
|
2013-02-01 13:04:53 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:07 +01:00
|
|
|
#
|
2008-11-02 15:33:13 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:15:07 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-02-01 13:04:53 +01:00
|
|
|
|
2006-12-19 00:15:07 +01:00
|
|
|
Name: attr
|
2011-09-21 16:57:47 +02:00
|
|
|
%define lname libattr1
|
2007-10-26 20:09:10 +02:00
|
|
|
Summary: Commands for Manipulating Extended Attributes
|
2013-02-01 13:04:53 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2011-12-20 21:06:21 +01:00
|
|
|
Group: System/Filesystems
|
2011-04-19 22:52:31 +02:00
|
|
|
Version: 2.4.46
|
2011-12-20 21:06:21 +01:00
|
|
|
Release: 0
|
2009-08-01 11:23:34 +02:00
|
|
|
Source: %{name}-%{version}.src.tar.gz
|
2006-12-19 00:15:07 +01:00
|
|
|
Source1: xattr.conf
|
2009-12-18 12:37:36 +01:00
|
|
|
Source2: baselibs.conf
|
2006-12-19 00:15:07 +01:00
|
|
|
Patch0: builddefs.in.diff
|
2013-02-03 14:41:31 +01:00
|
|
|
Patch1: config-guess-sub-update.patch
|
|
|
|
Patch2: attr-syscalls.patch
|
2009-08-01 11:23:34 +02:00
|
|
|
Url: http://download.savannah.gnu.org/releases-noredirect/attr/
|
2006-12-19 00:15:07 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-12-20 21:06:21 +01:00
|
|
|
BuildRequires: autoconf
|
2013-02-03 14:41:31 +01:00
|
|
|
BuildRequires: automake
|
2006-12-19 00:15:07 +01:00
|
|
|
Conflicts: xfsdump < 2.0.0
|
|
|
|
|
|
|
|
%description
|
|
|
|
A set of tools for manipulating extended attributes on file system
|
|
|
|
objects, in particular getfattr(1) and setfattr(1). An attr(1) command
|
|
|
|
is also provided, which is largely compatible with the SGI IRIX tool of
|
|
|
|
the same name.
|
|
|
|
|
2011-09-21 16:57:47 +02:00
|
|
|
%package -n %lname
|
2006-12-19 00:15:07 +01:00
|
|
|
Summary: A dynamic library for filesystem extended attribute support
|
2011-12-20 21:06:21 +01:00
|
|
|
Group: System/Libraries
|
2008-11-02 15:33:13 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libattr-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2011-09-21 16:57:47 +02:00
|
|
|
Obsoletes: libattr < %version-%release
|
|
|
|
Provides: libattr = %version-%release
|
2006-12-19 00:15:07 +01:00
|
|
|
|
2011-09-21 16:57:47 +02:00
|
|
|
%description -n %lname
|
2009-06-18 16:55:44 +02:00
|
|
|
This package contains the libattr.so dynamic library, which contains
|
|
|
|
the extended attribute library functions.
|
2006-12-19 00:15:07 +01:00
|
|
|
|
|
|
|
%package -n libattr-devel
|
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: attr-devel
|
|
|
|
Obsoletes: attr-devel
|
2008-11-02 15:33:13 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libattr-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2013-02-01 13:04:53 +01:00
|
|
|
Requires: %lname = %version
|
|
|
|
Requires: glibc-devel
|
2006-12-19 00:15:07 +01:00
|
|
|
|
|
|
|
%description -n libattr-devel
|
|
|
|
This package contains the libraries and header files needed to develop
|
|
|
|
programs which make use of extended attributes. For Linux programs, the
|
|
|
|
documented system call API is the recommended interface, but an SGI
|
|
|
|
IRIX compatibility interface is also provided.
|
|
|
|
|
2011-10-14 17:11:09 +02:00
|
|
|
%package -n libattr-devel-static
|
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libattr-devel:%{_libdir}/libattr.a
|
|
|
|
Requires: libattr-devel = %version
|
|
|
|
|
|
|
|
%description -n libattr-devel-static
|
2011-10-14 17:12:38 +02:00
|
|
|
This package contains the static library of libattr which is needed to develop
|
|
|
|
statically linked programs which make use of extended attributes.
|
2011-10-14 17:11:09 +02:00
|
|
|
|
2006-12-19 00:15:07 +01:00
|
|
|
%prep
|
2009-10-27 16:23:45 +01:00
|
|
|
%setup -q
|
2006-12-19 00:15:07 +01:00
|
|
|
%patch0 -p1
|
2013-02-03 14:41:31 +01:00
|
|
|
%patch1
|
|
|
|
%patch2
|
2006-12-19 00:15:07 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export OPTIMIZER="$RPM_OPT_FLAGS -fPIC"
|
|
|
|
export DEBUG=-DNDEBUG
|
2013-02-03 14:41:31 +01:00
|
|
|
ln -sf /usr/share/automake-1.12/config.guess .
|
|
|
|
ln -sf /usr/share/automake-1.12/config.sub .
|
2006-12-19 00:15:07 +01:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" \
|
2009-10-27 16:23:45 +01:00
|
|
|
%configure \
|
2006-12-19 00:15:07 +01:00
|
|
|
--prefix=/ \
|
|
|
|
--exec-prefix=/ \
|
|
|
|
--sbindir=/bin \
|
|
|
|
--libdir=/%{_lib} \
|
2009-10-27 16:23:45 +01:00
|
|
|
--libexecdir=/%{_libdir} \
|
|
|
|
--with-pic
|
2010-07-20 20:20:05 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2006-12-19 00:15:07 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
DIST_ROOT="$RPM_BUILD_ROOT"
|
|
|
|
DIST_INSTALL=`pwd`/install.manifest
|
|
|
|
DIST_INSTALL_DEV=`pwd`/install-dev.manifest
|
|
|
|
DIST_INSTALL_LIB=`pwd`/install-lib.manifest
|
|
|
|
export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
|
|
|
|
/usr/bin/make install DIST_MANIFEST="$DIST_INSTALL"
|
|
|
|
/usr/bin/make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
|
|
|
|
/usr/bin/make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
|
|
|
|
ln -sf /%{_lib}/$(readlink $RPM_BUILD_ROOT/%{_lib}/libattr.so) \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/libattr.so
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libattr.{a,la,so}
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man2/*xattr.2*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libattr.la
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}
|
|
|
|
install -m 644 %_sourcedir/xattr.conf $RPM_BUILD_ROOT/%{_sysconfdir}
|
2011-05-18 11:36:17 +02:00
|
|
|
chmod 755 $RPM_BUILD_ROOT/%{_lib}/libattr.so.1*
|
2006-12-19 00:15:07 +01:00
|
|
|
%find_lang %name
|
|
|
|
|
2011-09-21 16:57:47 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2006-12-19 00:15:07 +01:00
|
|
|
|
2011-09-21 16:57:47 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2006-12-19 00:15:07 +01:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%dir %attr(755,root,root) /usr/share/doc/packages/attr
|
|
|
|
%doc %attr(644,root,root) /usr/share/doc/packages/attr/README
|
|
|
|
%doc %attr(644,root,root) /usr/share/doc/packages/attr/CHANGES.gz
|
|
|
|
%doc %attr(644,root,root) /usr/share/doc/packages/attr/COPYING
|
|
|
|
%doc %attr(644,root,root) /usr/share/doc/packages/attr/PORTING
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man1/attr.1.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man1/getfattr.1.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man1/setfattr.1.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man5/attr.5.gz
|
|
|
|
%attr(755,root,root) %{_bindir}/attr
|
|
|
|
%attr(755,root,root) %{_bindir}/getfattr
|
|
|
|
%attr(755,root,root) %{_bindir}/setfattr
|
|
|
|
|
|
|
|
%files -n libattr-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(755,root,root) %{_includedir}/attr
|
|
|
|
%attr(644,root,root) %{_includedir}/attr/attributes.h
|
|
|
|
%attr(644,root,root) %{_includedir}/attr/error_context.h
|
|
|
|
%attr(644,root,root) %{_includedir}/attr/libattr.h
|
|
|
|
%attr(644,root,root) %{_includedir}/attr/xattr.h
|
|
|
|
%attr(755,root,root) %{_libdir}/libattr.so
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_get.3.gz*
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_list.3.gz*
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_multi.3.gz*
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_remove.3.gz*
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_set.3.gz*
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_getf.3.gz*
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_listf.3.gz*
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_multif.3.gz*
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_removef.3.gz*
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/attr_setf.3.gz*
|
|
|
|
|
2011-10-14 17:11:09 +02:00
|
|
|
%files -n libattr-devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libattr.a
|
|
|
|
|
2011-09-21 16:57:47 +02:00
|
|
|
%files -n %lname
|
2007-04-26 00:58:50 +02:00
|
|
|
%defattr (-,root,root)
|
2006-12-19 00:15:07 +01:00
|
|
|
/%{_lib}/libattr.so.1*
|
|
|
|
%config %{_sysconfdir}/xattr.conf
|
2008-04-10 13:06:58 +02:00
|
|
|
|
2007-04-26 00:58:50 +02:00
|
|
|
%changelog
|