-diff -urN aaa/attr-2.4.7/configure.in attr-2.4.7/configure.in
---- aaa/attr-2.4.7/configure.in 2003-06-25 03:51:28.000000000 +0200
-+++ attr-2.4.7/configure.in 2003-08-06 01:17:02.000000000 +0200
-@@ -14,7 +14,6 @@
-
- AC_PACKAGE_GLOBALS(attr)
- AC_PACKAGE_UTILITIES(attr)
--AC_MANUAL_FORMAT
-
- AC_C_CONST
- AC_TYPE_MODE_T
+--- 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)
+ ])
+--- attr-2.4.7/m4/package_utilies.m4.orig 2003-06-25 03:51:29.000000000 +0200
++++ attr-2.4.7/m4/package_utilies.m4 2003-08-08 21:08:29.000000000 +0200
+@@ -17,9 +17,7 @@
+ # MSGFMT MSGMERGE RPM
+ #
+ AC_DEFUN([AC_PACKAGE_UTILITIES],
+- [ if test -z "$CC"; then
+- AC_PROG_CC
+- fi
++ [ AC_PROG_CC
+ cc="$CC"
+ AC_SUBST(cc)
+ AC_PACKAGE_NEED_UTILITY($1, "$cc", cc, [C compiler])
Patch0: %{name}-miscfix.patch
URL: http://oss.sgi.com/projects/xfs/
BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: e2fsprogs-devel
BuildRequires: xfsprogs-devel >= 2.0.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Biblioteki statyczne attr.
%prep
-%setup -q
+%setup -q
%patch0 -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}"
%{__make}
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
-ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT/lib ; echo libattr.so.*.*.*) \
+ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \
$RPM_BUILD_ROOT%{_libexecdir}/libattr.so
echo ".so attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3