X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=attr.spec;h=f5ba46295197fa96a64364f5295c449dacbc5011;hb=b87ab971620a31bee4fa628f82c64f7d88c03607;hp=fe15ff975a06f6bbbdcf90256e77016bbd50096c;hpb=cdeee571d2ad6afc6b6fd24d03e049d55f1c8313;p=packages%2Fattr.git diff --git a/attr.spec b/attr.spec index fe15ff9..f5ba462 100644 --- a/attr.spec +++ b/attr.spec @@ -1,21 +1,27 @@ Summary: Utility for managing filesystem extended attributes -Summary(pl): Narzêdzia do zarz±dzania rozszerzonymi atrybutami fs +Summary(pl): Narzêdzia do zarz±dzania rozszerzonymi atrybutami systemu plików Name: attr -Version: 2.1.1 +Version: 2.4.32 Release: 1 -License: GPL +License: LGPL v2+ (library), GPL v2+ (utilities) Group: Applications/System -Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz +Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz +# Source0-md5: 092739e9b944815aecc1f5d8379d5ea5 Patch0: %{name}-miscfix.patch +Patch1: %{name}-lt.patch +Patch2: %{name}-pl.po-update.patch URL: http://oss.sgi.com/projects/xfs/ BuildRequires: autoconf -BuildRequires: e2fsprogs-devel -BuildRequires: xfsprogs-devel >= 2.0.0 +BuildRequires: automake +BuildRequires: gettext-devel +BuildRequires: libtool +BuildRequires: sed >= 4.0 +Obsoletes: libattr BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _bindir /bin -%define _libdir /lib -%define _libexecdir /usr/lib +%define _libdir /%{_lib} +%define _libexecdir /usr/%{_lib} %description An experimental attr command to manipulate extended attributes under @@ -27,9 +33,9 @@ atrybutami pod systemem Linux. %package devel Summary: Header files and libraries to use extended attributes -Summary(pl): Pliki nag³ówkowe i biblioteki +Summary(pl): Pliki nag³ówkowe i biblioteki do korzystania z rozszerzonych atrybutów Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} %description devel Header files to develop software which manipulate extended attributes. @@ -40,45 +46,57 @@ rozszerzonymi atrybutami. %package static Summary: Static libraries for extended attributes -Summary(pl): Biblioteki statyczne attr +Summary(pl): Biblioteki statyczne do korzystania z rozszerzonych atrybutów Group: Development/Libraries -Requires: %{name}-devel = %{version} +Requires: %{name}-devel = %{version}-%{release} %description static Static libraries for extended attributes. %description static -l pl -Biblioteki statyczne attr. +Biblioteki statyczne do korzystania z rozszerzonych atrybutów. %prep -%setup -q +%setup -q %patch0 -p1 +%patch1 -p1 +#%patch2 -p1 %build -DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG +rm -f aclocal.m4 +%{__aclocal} -I m4 %{__autoconf} -%configure +%configure \ + DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ + OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT" %{__make} %install rm -rf $RPM_BUILD_ROOT -DIST_ROOT="$RPM_BUILD_ROOT" +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 -%{__make} install DIST_MANIFEST="$DIST_INSTALL" -%{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV" -%{__make} install-lib DIST_MANIFEST="$DIST_INSTALL_LIB" +%{__make} install \ + DIST_MANIFEST=$DIST_INSTALL +%{__make} install-dev \ + DIST_MANIFEST=$DIST_INSTALL_DEV +%{__make} install-lib \ + DIST_MANIFEST=$DIST_INSTALL_LIB rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3 -rm -f $RPM_BUILD_ROOT%{_mandir}/man2/{f*,lgetxattr,llistxattr,lremovexattr,lsetxattr}.2 +rm -rf $RPM_BUILD_ROOT%{_mandir}/man2 -ln -sf %{_libdir}/libattr.so.1.0.1 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so +ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \ + $RPM_BUILD_ROOT%{_libexecdir}/libattr.so + +%{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ + $RPM_BUILD_ROOT%{_libexecdir}/libattr.la echo ".so attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3 echo ".so attr_list.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3 @@ -86,34 +104,27 @@ echo ".so attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3 echo ".so attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3 echo ".so attr_set.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3 -echo ".so getxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/fgetxattr.2 -echo ".so listxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/flistxattr.2 -echo ".so removexattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/fremovexattr.2 -echo ".so setxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/fsetxattr.2 -echo ".so getxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/lgetxattr.2 -echo ".so listxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/llistxattr.2 -echo ".so removexattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/lremovexattr.2 -echo ".so setxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/lsetxattr.2 +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig -%files +%files -f %{name}.lang %defattr(644,root,root,755) -%doc doc/CHANGES +%doc README doc/CHANGES %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_libdir}/lib*.so.*.* -%{_mandir}/man[18]/* +%{_mandir}/man[158]/* %files devel %defattr(644,root,root,755) %{_libexecdir}/lib*.la %attr(755,root,root) %{_libexecdir}/lib*.so %{_includedir}/attr -%{_mandir}/man[235]/* +%{_mandir}/man3/* %files static %defattr(644,root,root,755)