- properly require install-info (patch by Ville Skyttä)
- standard buildroot and use dist tag - add COPYING and README to doc
This commit is contained in:
parent
fa6168a922
commit
1bccd5c76f
28
gnutls.spec
28
gnutls.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A TLS protocol implementation.
|
Summary: A TLS protocol implementation
|
||||||
Name: gnutls
|
Name: gnutls
|
||||||
Version: 1.4.5
|
Version: 1.4.5
|
||||||
Release: 1
|
Release: 2%{?dist}
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
BuildRequires: libgcrypt-devel >= 1.2.2, gettext
|
BuildRequires: libgcrypt-devel >= 1.2.2, gettext
|
||||||
@ -16,19 +16,21 @@ Source0: %{name}-%{version}-nosrp.tar.bz2
|
|||||||
Source1: libgnutls-config
|
Source1: libgnutls-config
|
||||||
Patch0: gnutls-1.4.0-nosrp.patch
|
Patch0: gnutls-1.4.0-nosrp.patch
|
||||||
Patch1: gnutls-1.4.1-enable-psk.patch
|
Patch1: gnutls-1.4.1-enable-psk.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: libgcrypt >= 1.2.2
|
Requires: libgcrypt >= 1.2.2
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for the %{name} package.
|
Summary: Development files for the %{name} package
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: libgcrypt-devel
|
Requires: libgcrypt-devel
|
||||||
Requires: zlib-devel
|
Requires: zlib-devel
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
Requires(post): /sbin/install-info
|
||||||
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%package utils
|
%package utils
|
||||||
Summary: Command line tools for TLS protocol.
|
Summary: Command line tools for TLS protocol
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
@ -89,20 +91,21 @@ rm -fr $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
if [ -f %{_infodir}/gnutls.info.gz ]; then
|
if [ -f %{_infodir}/gnutls.info.gz ]; then
|
||||||
/sbin/install-info %{_infodir}/gnutls.info.gz %{_infodir}/dir
|
/sbin/install-info %{_infodir}/gnutls.info.gz %{_infodir}/dir || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun devel
|
%preun devel
|
||||||
if [ $1 = 0 -a -f %{_infodir}/gnutls.info.gz ]; then
|
if [ $1 = 0 -a -f %{_infodir}/gnutls.info.gz ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/gnutls.info.gz %{_infodir}/dir
|
/sbin/install-info --delete %{_infodir}/gnutls.info.gz %{_infodir}/dir || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
%doc COPYING COPYING.LIB README AUTHORS
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/libgnutls*-config
|
%{_bindir}/libgnutls*-config
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
@ -113,13 +116,18 @@ fi
|
|||||||
%{_infodir}/gnutls*
|
%{_infodir}/gnutls*
|
||||||
|
|
||||||
%files utils
|
%files utils
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/certtool
|
%{_bindir}/certtool
|
||||||
%{_bindir}/psktool
|
%{_bindir}/psktool
|
||||||
%{_bindir}/gnutls*
|
%{_bindir}/gnutls*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 10 2007 Tomas Mraz <tmraz@redhat.com> 1.4.5-2
|
||||||
|
- properly require install-info (patch by Ville Skyttä)
|
||||||
|
- standard buildroot and use dist tag
|
||||||
|
- add COPYING and README to doc
|
||||||
|
|
||||||
* Wed Feb 7 2007 Tomas Mraz <tmraz@redhat.com> 1.4.5-1
|
* Wed Feb 7 2007 Tomas Mraz <tmraz@redhat.com> 1.4.5-1
|
||||||
- new upstream version
|
- new upstream version
|
||||||
- drop libtermcap-devel from buildrequires
|
- drop libtermcap-devel from buildrequires
|
||||||
|
Loading…
Reference in New Issue
Block a user