X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=attr.spec;h=c667ff9a2f8e9b0f5d1151a86db818b59f5bda5c;hb=7454402ae2a9c40429c853012a457a0541f1a65b;hp=8b463507b8b346d7a17ec6a9b97f71ede6283b9b;hpb=7f85f0bd470e0a8c4b7a9e78482c9f36070d00a0;p=packages%2Fattr.git diff --git a/attr.spec b/attr.spec index 8b46350..c667ff9 100644 --- a/attr.spec +++ b/attr.spec @@ -1,95 +1,127 @@ 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: 1.1.3 +Version: 2.4.15 Release: 1 +# most part is on LGPL v2.1, but the rest enforces GPL License: GPL Group: Applications/System -Group(de): Applikationen/System -Group(pl): Aplikacje/System Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz +# Source0-md5: b785ec1b5b351b6ffcf0c31b12d87692 +Source1: %{name}-pl.po Patch0: %{name}-miscfix.patch URL: http://oss.sgi.com/projects/xfs/ BuildRequires: autoconf -BuildRequires: e2fsprogs-devel -BuildRequires: xfsprogs-devel +BuildRequires: automake +BuildRequires: gettext-devel +BuildRequires: xfsprogs-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _bindir /bin +%define _libdir /%{_lib} +%define _libexecdir /usr/%{_lib} %description -An *experimental* command (attr) to manipulate extended attributes -under Linux. +An experimental attr command to manipulate extended attributes under +Linux. %description -l pl -*Eksperymentalna* komenda (attr) to zarz±dzania rozszerzonymi +Eksperymentalna wersja polecenia attr to zarz±dzania rozszerzonymi 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 -Group(de): Entwicklung/Libraries -Group(fr): Development/Librairies -Group(pl): Programowanie/Biblioteki +Requires: %{name} = %{version} %description devel -Header files and libraries to develop software which manipulate -extended attributes. +Header files to develop software which manipulate extended attributes. -%description -l pl devel -Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania -manipuluj±cego rozszerzonymi atrybutami. +%description devel -l pl +Pliki nag³ówkowe potrzebne do tworzenia oprogramowania manipuluj±cego +rozszerzonymi atrybutami. + +%package static +Summary: Static libraries for extended attributes +Summary(pl): Biblioteki statyczne do korzystania z rozszerzonych atrybutów +Group: Development/Libraries +Requires: %{name}-devel = %{version} + +%description static +Static libraries for extended attributes. + +%description static -l pl +Biblioteki statyczne do korzystania z rozszerzonych atrybutów. %prep -%setup -q +%setup -q %patch0 -p1 +chmod -Rf u+w . +cp %{SOURCE1} po/pl.po +%{__perl} -pi -e 's/^(LINGUAS.*)/$1 pl/' po/Makefile %build -DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG -autoconf -%configure +rm -f aclocal.m4 +%{__aclocal} -I m4 +%{__autoconf} +%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 -export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV -%{__make} install DIST_MANIFEST="$DIST_INSTALL" -%{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV" +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 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 -rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so -ln -sf /lib/libattr.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libattr.so +ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \ + $RPM_BUILD_ROOT%{_libexecdir}/libattr.so -echo ".so man3/attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3 -echo ".so man3/attr_list.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3 -echo ".so man3/attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3 -echo ".so man3/attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3 -echo ".so man3/attr_set.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3 +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 -gzip -9nf doc/CHANGES +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%files +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files -f %{name}.lang %defattr(644,root,root,755) -%doc doc/*.gz +%doc README doc/CHANGES %attr(755,root,root) %{_bindir}/* -%attr(755,root,root) /lib/lib*.so.*.* -%{_mandir}/man[18]/* +%attr(755,root,root) %{_libdir}/lib*.so.*.* +%{_mandir}/man[158]/* %files devel %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/lib*.la -%attr(755,root,root) %{_libdir}/lib*.so -%{_libdir}/lib*.a +%{_libexecdir}/lib*.la +%attr(755,root,root) %{_libexecdir}/lib*.so %{_includedir}/attr -%{_mandir}/man[23]/* +%{_mandir}/man3/* + +%files static +%defattr(644,root,root,755) +%{_libexecdir}/lib*.a