]> git.pld-linux.org Git - packages/attr.git/blobdiff - attr.spec
- update gettext BR
[packages/attr.git] / attr.spec
index 71aadf4530c1977fe86f66ad88e8133c39e11c16..6024391cd8765ce71d9be89ff84f3bae955cbd40 100644 (file)
--- a/attr.spec
+++ b/attr.spec
@@ -1,20 +1,21 @@
 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.39
-Release:       2
+Version:       2.4.47
+Release:       1
 License:       LGPL v2+ (library), GPL v2+ (utilities)
 Group:         Applications/System
-Source0:       ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz
-# Source0-md5: 6015feba42b18307de90bb6be9909f7d
+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
-URL:           http://oss.sgi.com/projects/xfs/
+URL:           http://savannah.nongnu.org/projects/attr/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
 BuildRequires: libtool
+BuildRequires: rpmbuild(macros) >= 1.402
 Obsoletes:     libattr
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -61,12 +62,15 @@ Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
 %patch1 -p1
 %patch2 -p1
 
-rm -f aclocal.m4
+%{__rm} -f aclocal.m4
 
 %build
 %{__libtoolize}
 %{__aclocal} -I m4
 %{__autoconf}
+install %{_datadir}/automake/config.* .
+install include/install-sh .
+
 %configure \
        DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
        OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
@@ -77,6 +81,8 @@ rm -f aclocal.m4
 %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
@@ -90,25 +96,23 @@ export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
 %{__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 -rf $RPM_BUILD_ROOT%{_mandir}/man2
+mv $RPM_BUILD_ROOT%{_libdir}/libattr.{la,a} \
+       $RPM_BUILD_ROOT%{_libexecdir}
 
-ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \
-        $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
+ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/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
-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
+%{__rm} -r $RPM_BUILD_ROOT%{_mandir}/man2
 
 %find_lang %{name}
 
-rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
+
+# already in /usr
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libattr.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -119,16 +123,22 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc README doc/CHANGES
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/libattr.so.*.*
-%{_mandir}/man[158]/*
+%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
+%{_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
 %{_includedir}/attr
-%{_mandir}/man3/*
+%{_mandir}/man3/attr_*.3*
 
 %files static
 %defattr(644,root,root,755)
This page took 0.06896 seconds and 4 git commands to generate.