Cleanup and modernise spec
This commit is contained in:
parent
c50e649d66
commit
97576be0cd
79
hesiod.spec
79
hesiod.spec
|
@ -1,11 +1,10 @@
|
||||||
Name: hesiod
|
Name: hesiod
|
||||||
Version: 3.2.1
|
Version: 3.2.1
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
Source: ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/hesiod-%{version}.tar.gz
|
|
||||||
Summary: Shared libraries for querying the Hesiod naming service
|
|
||||||
Group: System Environment/Libraries
|
|
||||||
License: MIT
|
License: MIT
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Summary: Shared libraries for querying the Hesiod naming service
|
||||||
|
|
||||||
|
Source: ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/hesiod-%{version}.tar.gz
|
||||||
BuildRequires: autoconf, automake, libtool, libidn-devel
|
BuildRequires: autoconf, automake, libtool, libidn-devel
|
||||||
Obsoletes: hesinfo < 3.2
|
Obsoletes: hesinfo < 3.2
|
||||||
|
|
||||||
|
@ -17,7 +16,6 @@ files, among others.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development libraries and headers for Hesiod
|
Summary: Development libraries and headers for Hesiod
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: hesiod = %{version}-%{release}
|
Requires: hesiod = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
|
@ -28,7 +26,41 @@ distribute information which might otherwise kept in the /etc/passwd,
|
||||||
ensure the files are synchronized among multiple hosts. This package contains
|
ensure the files are synchronized among multiple hosts. This package contains
|
||||||
the header files and libraries required for building programs which use Hesiod.
|
the header files and libraries required for building programs which use Hesiod.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
autoreconf -vif
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
# Remove libtool archives and static libs
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%doc README NEWS
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_libdir}/libhesiod.so.*
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
%{_mandir}/man5/*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_libdir}/libhesiod.so
|
||||||
|
%{_libdir}/pkgconfig/*
|
||||||
|
%{_includedir}/hesiod.h
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 2 2018 Peter Robinson <pbrobinson@fedoraproject.org> 3.2.1-11
|
||||||
|
- Cleanup and modernise spec
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-10
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-10
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
@ -253,38 +285,3 @@ the header files and libraries required for building programs which use Hesiod.
|
||||||
no longer use a separate libnss_hesiod.so
|
no longer use a separate libnss_hesiod.so
|
||||||
- changed requires: caching-nameserver to nscd
|
- changed requires: caching-nameserver to nscd
|
||||||
- added post-install script snippet to activate nscd on install
|
- added post-install script snippet to activate nscd on install
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q
|
|
||||||
libtoolize -f -i
|
|
||||||
aclocal
|
|
||||||
automake -f -a
|
|
||||||
autoconf -f -i
|
|
||||||
|
|
||||||
%build
|
|
||||||
%configure --disable-static
|
|
||||||
make
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README NEWS COPYING
|
|
||||||
%{_bindir}/*
|
|
||||||
%{_libdir}/libhesiod.so.*
|
|
||||||
%{_mandir}/man1/*
|
|
||||||
%{_mandir}/man5/*
|
|
||||||
|
|
||||||
%files devel
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/libhesiod.so
|
|
||||||
%{_libdir}/pkgconfig/*
|
|
||||||
%{_includedir}/hesiod.h
|
|
||||||
%{_mandir}/man3/*
|
|
||||||
|
|
Loading…
Reference in New Issue