From df88dda0bfc2d22aa56b946d67d360cdd17605d8 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 13 Jan 2010 22:35:47 +0000 Subject: [PATCH] - adjust buildroot location (guidelines) - disable static libraries (guidelines) - tweak default payload attributes (guidelines) --- hesiod.spec | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/hesiod.spec b/hesiod.spec index 9d359c0..0e63cce 100644 --- a/hesiod.spec +++ b/hesiod.spec @@ -1,6 +1,6 @@ Name: hesiod Version: 3.1.0 -Release: 17%{?dist} +Release: 18%{?dist} Source: ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/hesiod-%{version}.tar.gz Patch0: hesiod-3.1.0-classes.patch Patch1: hesiod-3.1.0-env.patch @@ -11,7 +11,7 @@ Patch5: hesiod-3.1.0-perms.patch Summary: Shared libraries for querying the Hesiod naming service Group: System Environment/Libraries License: MIT -Buildroot: %{_tmppath}/hesiod-root +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf, automake, libtool %description @@ -34,6 +34,11 @@ ensure synchronize the files among multiple hosts. This package contains the header files and libraries required for building programs which use Hesiod. %changelog +* Wed Jan 13 2010 Nalin Dahyabhai - 3.1.0-15 +- adjust buildroot location (guidelines) +- disable static libraries (guidelines) +- tweak default payload attributes (guidelines) + * Tue Oct 13 2009 Nalin Dahyabhai - 3.1.0-17 - add a disttag @@ -215,11 +220,11 @@ aclocal autoconf -f -i %build -%configure +%configure --disable-static make %install -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la @@ -231,14 +236,13 @@ rm -rf $RPM_BUILD_ROOT %postun -p /sbin/ldconfig %files -%defattr(-,root,root) +%defattr(-,root,root,-) %doc README NEWS %{_libdir}/libhesiod.so.* %{_mandir}/man5/* %files devel -%defattr(-,root,root) -%{_libdir}/libhesiod.a +%defattr(-,root,root,-) %{_libdir}/libhesiod.so %{_includedir}/hesiod.h %{_mandir}/man3/*