From 0461710289cd076d0ed248e12216504616b3bcbc Mon Sep 17 00:00:00 2001 From: kloczek Date: Tue, 6 Aug 2002 03:16:25 +0000 Subject: [PATCH] - added DESTDIR patch, - cleanups. Changed files: barcode.spec -> 1.2 --- barcode.spec | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/barcode.spec b/barcode.spec index 9cfadf8..6f09d6f 100644 --- a/barcode.spec +++ b/barcode.spec @@ -1,15 +1,15 @@ -%define prefix /usr -%define sysconfdir /etc - Summary: GNU barcode Name: barcode Version: 0.98 Release: 1 License: GPL -Group: Applications/Graphics -Source0: ftp://ar.linux.it/pub/barcode/%{name}-%{ver}.tar.gz +Group: Applications/Graphics +Source0: ftp://ar.linux.it/pub/barcode/%{name}-%{version}.tar.gz +Patch0: %{name}-DESTDIR.patch +URL: http://gnu.systemy.it/software/barcode/ +BuildRequires: autoconf +BuildRequires: automake BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -URL: http://gnu.systemy.it/software/barcode %description This is GNU-barcode. The package is meant to solve most needs in @@ -36,34 +36,32 @@ development. %prep %setup -q - -%ifarch alpha - ARCH_FLAGS="--host=alpha-redhat-linux" -%endif - -CFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix} --sysconfdir=%{sysconfdir} +%patch0 -p1 %build +aclocal +autoconf +%configure %{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) - -%doc COPYING ChangeLog INSTALL README TODO doc/*.html doc/*.pdf doc/*.ps - -%attr(0755,root,root) %{_bindir}/barcode -%attr(0644,root,root) %{_infodir}/barcode.info* -%attr(0644,root,root) %{_mandir}/man1/barcode.1* +%doc ChangeLog README TODO +%attr(755,root,root) %{_bindir}/barcode +%{_infodir}/barcode.info* +%{_mandir}/man1/barcode.1* %files devel %defattr(644,root,root,755) -%attr(0644,root,root) %{_includedir}/barcode.h -%attr(0644,root,root) %{_libdir}/libbarcode.a -%attr(0644,root,root) %{_mandir}/man3/barcode.3* +%{_includedir}/* +%{_libdir}/lib*.a +%{_mandir}/man3/* -- 2.43.0