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
|
|
|
#
|
2018-03-20 15:44:14 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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
|
|
|
|
2011-09-21 16:57:47 +02:00
|
|
|
%define lname libattr1
|
2018-08-24 06:44:15 +02:00
|
|
|
Name: attr
|
|
|
|
Version: 2.4.48
|
|
|
|
Release: 0
|
2007-10-26 20:09:10 +02:00
|
|
|
Summary: Commands for Manipulating Extended Attributes
|
2018-03-20 15:44:14 +01:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2011-12-20 21:06:21 +01:00
|
|
|
Group: System/Filesystems
|
2018-08-24 06:44:15 +02:00
|
|
|
URL: https://savannah.nongnu.org/projects/attr/
|
|
|
|
Source: https://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}.tar.gz
|
|
|
|
Source2: https://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}.tar.gz.sig
|
|
|
|
Source3: %{name}.keyring
|
|
|
|
Source99: baselibs.conf
|
|
|
|
Patch0: 0001-attr-2.4.48-test-suite-perl.patch
|
|
|
|
BuildRequires: pkgconfig
|
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.
|
|
|
|
|
2018-08-24 06:44:15 +02:00
|
|
|
%package -n %{lname}
|
2006-12-19 00:15:07 +01:00
|
|
|
Summary: A dynamic library for filesystem extended attribute support
|
2018-03-20 15:44:14 +01:00
|
|
|
Group: System/Libraries
|
2018-08-24 06:44:15 +02:00
|
|
|
Obsoletes: libattr < %{version}-%{release}
|
|
|
|
Provides: libattr = %{version}-%{release}
|
|
|
|
|
|
|
|
%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
|
2018-08-26 10:55:27 +02:00
|
|
|
Summary: Header files for libattr
|
2006-12-19 00:15:07 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-08-24 06:44:15 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2013-02-01 13:04:53 +01:00
|
|
|
Requires: glibc-devel
|
2018-08-24 06:44:15 +02:00
|
|
|
Provides: attr-devel = %{version}-%{release}
|
|
|
|
Obsoletes: attr-devel < %{version}-%{release}
|
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.
|
|
|
|
|
2018-09-06 05:30:14 +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
|
|
|
|
This package contains the static library of libattr which is needed to develop
|
|
|
|
statically linked programs which make use of extended attributes.
|
|
|
|
|
2006-12-19 00:15:07 +01:00
|
|
|
%prep
|
2009-10-27 16:23:45 +01:00
|
|
|
%setup -q
|
2018-08-24 06:44:15 +02:00
|
|
|
%patch0 -p1
|
2006-12-19 00:15:07 +01:00
|
|
|
|
|
|
|
%build
|
2018-08-24 06:44:15 +02:00
|
|
|
%configure \
|
2018-09-06 05:30:14 +02:00
|
|
|
--enable-static \
|
2018-08-24 06:44:15 +02:00
|
|
|
--disable-silent-rules
|
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:15:07 +01:00
|
|
|
|
|
|
|
%install
|
2018-08-24 06:44:15 +02:00
|
|
|
%make_install
|
|
|
|
# remove libtool archives
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
# handle docs on our own
|
|
|
|
rm -rf %{buildroot}/%{_datadir}/doc/%{name}
|
|
|
|
%find_lang %{name}
|
2006-12-19 00:15:07 +01:00
|
|
|
|
2018-08-24 06:44:15 +02:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
2006-12-19 00:15:07 +01:00
|
|
|
|
2018-08-24 06:44:15 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2006-12-19 00:15:07 +01:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2018-08-24 06:44:15 +02:00
|
|
|
%license doc/COPYING*
|
|
|
|
%doc doc/CHANGES doc/PORTING
|
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
|
|
%{_bindir}/attr
|
|
|
|
%{_bindir}/getfattr
|
|
|
|
%{_bindir}/setfattr
|
2006-12-19 00:15:07 +01:00
|
|
|
|
|
|
|
%files -n libattr-devel
|
2018-08-24 06:44:15 +02:00
|
|
|
%{_includedir}/attr/
|
|
|
|
%{_libdir}/pkgconfig/libattr.pc
|
|
|
|
%{_libdir}/libattr.so
|
|
|
|
%{_mandir}/man3/*.3%{?ext_man}
|
|
|
|
|
2018-09-06 05:30:14 +02:00
|
|
|
%files -n libattr-devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libattr.a
|
|
|
|
|
2018-08-24 06:44:15 +02:00
|
|
|
%files -n %{lname}
|
|
|
|
%license doc/COPYING*
|
|
|
|
%{_libdir}/libattr.so.1*
|
2006-12-19 00:15:07 +01:00
|
|
|
%config %{_sysconfdir}/xattr.conf
|
2008-04-10 13:06:58 +02:00
|
|
|
|
2007-04-26 00:58:50 +02:00
|
|
|
%changelog
|