[packages/attr] - updated to 2.4.48 - removed obsolete patches, cleanup

Jan Rękorajski baggins at pld-linux.org
Sat Nov 18 16:54:29 CET 2017


I'm deleting this from th-test.
Upstream removal of attr/xattr.h is just one big breakge.

On Thu, 16 Nov 2017, qboosh wrote:

> commit 8a4692db8ee22a63e498b99483ab24b695bc089f
> Author: Jakub Bogusz <qboosh at pld-linux.org>
> Date:   Thu Nov 16 19:18:51 2017 +0100
> 
>     - updated to 2.4.48
>     - removed obsolete patches, cleanup
> 
>  attr-LDFLAGS.patch | 12 --------
>  attr-lt.patch      | 15 ----------
>  attr-miscfix.patch | 15 ----------
>  attr.spec          | 87 ++++++++++++++++++++----------------------------------
>  4 files changed, 32 insertions(+), 97 deletions(-)
> ---
> diff --git a/attr.spec b/attr.spec
> index 2b7415c..fbfc44b 100644
> --- a/attr.spec
> +++ b/attr.spec
> @@ -1,27 +1,23 @@
>  Summary:	Utility for managing filesystem extended attributes
>  Summary(pl.UTF-8):	Narzędzia do zarządzania rozszerzonymi atrybutami systemu plików
>  Name:		attr
> -Version:	2.4.47
> -Release:	2
> +Version:	2.4.48
> +Release:	1
>  License:	LGPL v2+ (library), GPL v2+ (utilities)
>  Group:		Applications/System
>  Source0:	http://git.savannah.gnu.org/cgit/attr.git/snapshot/%{name}-%{version}.tar.gz
> -# Source0-md5:	4ee36c16eb7e58a1b38345d4dbbddd88
> -Patch0:		%{name}-miscfix.patch
> -Patch1:		%{name}-lt.patch
> -Patch2:		%{name}-LDFLAGS.patch
> +# Source0-md5:	728d7f7f1b6ccbe03efc8d5c76eb5891
>  URL:		http://savannah.nongnu.org/projects/attr/
> -BuildRequires:	autoconf
> -BuildRequires:	automake
> -BuildRequires:	gettext-tools
> -BuildRequires:	libtool
> +BuildRequires:	autoconf >= 2.50
> +BuildRequires:	automake >= 1:1.11
> +BuildRequires:	gettext-tools >= 0.18.2
> +BuildRequires:	libtool >= 2:2
>  BuildRequires:	rpmbuild(macros) >= 1.402
> +BuildRequires:	sed >= 4.0
>  Obsoletes:	libattr
>  BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
>  
>  %define		_bindir		/bin
> -%define		_libdir		/%{_lib}
> -%define		_libexecdir	/usr/%{_lib}
>  
>  %description
>  An experimental attr command to manipulate extended attributes under
> @@ -58,61 +54,41 @@ Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
>  
>  %prep
>  %setup -q
> -%patch0 -p1
> -%patch1 -p1
> -%patch2 -p1
> -
> -%{__rm} -f aclocal.m4
>  
>  %build
> +# prepare for gettextize
> +%{__sed} -i -e 's,po/Makefile.in,,' configure.ac
> +
> +po/update-potfiles
> +%{__gettextize}
>  %{__libtoolize}
>  %{__aclocal} -I m4
>  %{__autoconf}
> -install %{_datadir}/automake/config.* .
> -install include/install-sh .
> +%{__autoheader}
> +%{__automake}
>  
>  %configure \
> -	DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
> -	OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
> +	%{?debug:--enable-debug} \
> +	--disable-silent-rules
>  
> -%{__make} \
> -	LLDFLAGS="%{rpmldflags}"
> +%{__make}
>  
>  %install
>  rm -rf $RPM_BUILD_ROOT
> -
> -install -d $RPM_BUILD_ROOT%{_libexecdir}
> -
> -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
> +install -d $RPM_BUILD_ROOT/%{_lib}
>  
>  %{__make} install \
> -	DIST_MANIFEST=$DIST_INSTALL
> -%{__make} install-dev \
> -	DIST_MANIFEST=$DIST_INSTALL_DEV
> -%{__make} install-lib \
> -	DIST_MANIFEST=$DIST_INSTALL_LIB
> -
> -mv $RPM_BUILD_ROOT%{_libdir}/libattr.{la,a} \
> -	$RPM_BUILD_ROOT%{_libexecdir}
> +	DESTDIR=$RPM_BUILD_ROOT
>  
> -ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libattr.so.*.*.*) \
> -	$RPM_BUILD_ROOT%{_libexecdir}/libattr.so
> +%{__mv} $RPM_BUILD_ROOT%{_libdir}/libattr.so.* \
> +	$RPM_BUILD_ROOT/%{_lib}
>  
> -%{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
> -	$RPM_BUILD_ROOT%{_libexecdir}/libattr.la
> -
> -%{__rm} -r $RPM_BUILD_ROOT%{_mandir}/man2
> -
> -%find_lang %{name}
> +ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libattr.so.*.*.*) \
> +	$RPM_BUILD_ROOT%{_libdir}/libattr.so
>  
>  %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
>  
> -# already in /usr
> -%{__rm} $RPM_BUILD_ROOT%{_libdir}/libattr.so
> +%find_lang %{name}
>  
>  %clean
>  rm -rf $RPM_BUILD_ROOT
> @@ -126,20 +102,21 @@ rm -rf $RPM_BUILD_ROOT
>  %attr(755,root,root) %{_bindir}/attr
>  %attr(755,root,root) %{_bindir}/getfattr
>  %attr(755,root,root) %{_bindir}/setfattr
> -%attr(755,root,root) %{_libdir}/libattr.so.*.*.*
> -%attr(755,root,root) %ghost %{_libdir}/libattr.so.1
> +%attr(755,root,root) /%{_lib}/libattr.so.*.*.*
> +%attr(755,root,root) %ghost /%{_lib}/libattr.so.1
> +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xattr.conf
>  %{_mandir}/man1/attr.1*
>  %{_mandir}/man1/getfattr.1*
>  %{_mandir}/man1/setfattr.1*
> -%{_mandir}/man5/attr.5*
>  
>  %files devel
>  %defattr(644,root,root,755)
> -%attr(755,root,root) %{_libexecdir}/libattr.so
> -%{_libexecdir}/libattr.la
> +%attr(755,root,root) %{_libdir}/libattr.so
> +%{_libdir}/libattr.la
>  %{_includedir}/attr
> +%{_pkgconfigdir}/libattr.pc
>  %{_mandir}/man3/attr_*.3*
>  
>  %files static
>  %defattr(644,root,root,755)
> -%{_libexecdir}/libattr.a
> +%{_libdir}/libattr.a
> diff --git a/attr-LDFLAGS.patch b/attr-LDFLAGS.patch
> deleted file mode 100644
> index d1b4798..0000000
> --- a/attr-LDFLAGS.patch
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -diff -Nur attr-2.4.32/libattr/Makefile attr-2.4.32.LDFLAGS/libattr/Makefile
> ---- attr-2.4.32/libattr/Makefile	2006-06-20 08:51:25.000000000 +0200
> -+++ attr-2.4.32.LDFLAGS/libattr/Makefile	2006-08-02 03:25:39.000000000 +0200
> -@@ -4,7 +4,7 @@
> - 
> - TOPDIR = ..
> - 
> --LTLDFLAGS += -Wl,--version-script,$(TOPDIR)/exports
> -+LTLDFLAGS += -Wl,--version-script,$(TOPDIR)/exports $(LLDFLAGS)
> - include $(TOPDIR)/include/builddefs
> - 
> - LTLIBRARY = libattr.la
> diff --git a/attr-lt.patch b/attr-lt.patch
> deleted file mode 100644
> index 41906b0..0000000
> --- a/attr-lt.patch
> +++ /dev/null
> @@ -1,15 +0,0 @@
> ---- attr-2.4.20/include/buildmacros.orig	2004-10-15 15:05:17 +0000
> -+++ attr-2.4.20/include/buildmacros	2005-05-24 21:54:20 +0000
> -@@ -69,10 +69,10 @@
> - LTOBJECTS = $(OBJECTS:.o=.lo)
> - LTVERSION = $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
> - 
> --LTLINK = $(LIBTOOL) --mode=link $(CC)
> -+LTLINK = $(LIBTOOL) --mode=link --tag=CC $(CCF)
> - LTEXEC = $(LIBTOOL) --mode=execute
> - LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
> --LTCOMPILE = $(LIBTOOL) --mode=compile $(CCF)
> -+LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CCF)
> - 
> - ifeq ($(ENABLE_SHARED),yes)
> - LTLDFLAGS += -rpath $(PKG_LIB_DIR)
> diff --git a/attr-miscfix.patch b/attr-miscfix.patch
> deleted file mode 100644
> index fd77cc5..0000000
> --- a/attr-miscfix.patch
> +++ /dev/null
> @@ -1,15 +0,0 @@
> ---- attr-2.4.7/m4/manual_format.m4.orig	2003-06-25 03:51:29.000000000 +0200
> -+++ attr-2.4.7/m4/manual_format.m4	2003-08-08 21:08:12.000000000 +0200
> -@@ -6,12 +6,5 @@
> - # 
> - AC_DEFUN([AC_MANUAL_FORMAT],
> -   [ have_zipped_manpages=false
> --    for d in ${prefix}/share/man ${prefix}/man ; do
> --        if test -f $d/man1/man.1.gz
> --        then
> --            have_zipped_manpages=true
> --            break
> --        fi
> --    done
> -     AC_SUBST(have_zipped_manpages)
> -   ])
> ================================================================
> 
> ---- gitweb:
> 
> http://git.pld-linux.org/gitweb.cgi/packages/attr.git/commitdiff/8a4692db8ee22a63e498b99483ab24b695bc089f
> 
> _______________________________________________
> pld-cvs-commit mailing list
> pld-cvs-commit at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

-- 
Jan Rękorajski                    | PLD/Linux
SysAdm | baggins<at>pld-linux.org | http://www.pld-linux.org/


More information about the pld-devel-en mailing list