- replaced *-config scripts with calls to pkg-config to solve multilib
conflicts
This commit is contained in:
parent
5090376db7
commit
1a646a75bb
23
gnutls.spec
23
gnutls.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A TLS protocol implementation.
|
Summary: A TLS protocol implementation.
|
||||||
Name: gnutls
|
Name: gnutls
|
||||||
Version: 1.2.9
|
Version: 1.2.9
|
||||||
Release: 1
|
Release: 2
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
BuildPrereq: libgcrypt-devel >= 1.2.2
|
BuildPrereq: libgcrypt-devel >= 1.2.2
|
||||||
@ -12,6 +12,7 @@ URL: http://www.gnutls.org/
|
|||||||
#Source1: ftp://ftp.gnutls.org/pub/gnutls/devel/%{name}-%{version}.tar.gz.sig
|
#Source1: ftp://ftp.gnutls.org/pub/gnutls/devel/%{name}-%{version}.tar.gz.sig
|
||||||
# XXX patent tainted SRP code removed.
|
# XXX patent tainted SRP code removed.
|
||||||
Source0: %{name}-%{version}-nosrp.tar.bz2
|
Source0: %{name}-%{version}-nosrp.tar.bz2
|
||||||
|
Source1: libgnutls-config
|
||||||
Patch0: gnutls-1.2.9-nosrp.patch
|
Patch0: gnutls-1.2.9-nosrp.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
BuildRoot: %{_tmppath}/%{name}-root
|
||||||
Requires: libgcrypt >= 1.2.2
|
Requires: libgcrypt >= 1.2.2
|
||||||
@ -62,12 +63,14 @@ make
|
|||||||
%install
|
%install
|
||||||
rm -fr $RPM_BUILD_ROOT
|
rm -fr $RPM_BUILD_ROOT
|
||||||
%makeinstall
|
%makeinstall
|
||||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/srptool
|
rm -f $RPM_BUILD_ROOT%{_bindir}/srptool
|
||||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/gnutls-srpcrypt
|
rm -f $RPM_BUILD_ROOT%{_bindir}/gnutls-srpcrypt
|
||||||
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/srptool.1
|
cp -f %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/libgnutls-config
|
||||||
rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/*srp*
|
cp -f %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/libgnutls-extra-config
|
||||||
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/srptool.1
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*srp*
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
@ -95,7 +98,7 @@ fi
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/libgnutls*
|
%{_bindir}/libgnutls*-config
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
@ -111,6 +114,10 @@ fi
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 9 2005 Tomas Mraz <tmraz@redhat.com> 1.2.9-2
|
||||||
|
- replaced *-config scripts with calls to pkg-config to
|
||||||
|
solve multilib conflicts
|
||||||
|
|
||||||
* Wed Nov 23 2005 Tomas Mraz <tmraz@redhat.com> 1.2.9-1
|
* Wed Nov 23 2005 Tomas Mraz <tmraz@redhat.com> 1.2.9-1
|
||||||
- upgrade to newest upstream
|
- upgrade to newest upstream
|
||||||
- removed .la files (#172635)
|
- removed .la files (#172635)
|
||||||
|
91
libgnutls-config
Executable file
91
libgnutls-config
Executable file
@ -0,0 +1,91 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
prefix=/usr
|
||||||
|
exec_prefix=/usr
|
||||||
|
exec_prefix_set=no
|
||||||
|
|
||||||
|
name=`basename $0`
|
||||||
|
name=${name#lib}
|
||||||
|
name=${name%-config}
|
||||||
|
|
||||||
|
libs=`pkg-config --libs $name`
|
||||||
|
cflags=`pkg-config --cflags $name`
|
||||||
|
version=`pkg-config --modversion $name`
|
||||||
|
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
|
||||||
|
echo Usage: lib$name-config [OPTIONS]
|
||||||
|
cat <<EOF
|
||||||
|
Options:
|
||||||
|
[--prefix[=DIR]]
|
||||||
|
[--exec-prefix[=DIR]]
|
||||||
|
[--version]
|
||||||
|
[--libs]
|
||||||
|
[--cflags]
|
||||||
|
EOF
|
||||||
|
exit $1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
usage 1 1>&2
|
||||||
|
fi
|
||||||
|
|
||||||
|
while test $# -gt 0; do
|
||||||
|
case "$1" in
|
||||||
|
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||||
|
*) optarg= ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
--prefix=*)
|
||||||
|
prefix=$optarg
|
||||||
|
if test $exec_prefix_set = no ; then
|
||||||
|
exec_prefix=$optarg
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
--prefix)
|
||||||
|
echo_prefix=yes
|
||||||
|
;;
|
||||||
|
--exec-prefix=*)
|
||||||
|
exec_prefix=$optarg
|
||||||
|
exec_prefix_set=yes
|
||||||
|
;;
|
||||||
|
--exec-prefix)
|
||||||
|
echo_exec_prefix=yes
|
||||||
|
;;
|
||||||
|
--version)
|
||||||
|
echo $version
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
--cflags)
|
||||||
|
echo_cflags=yes
|
||||||
|
;;
|
||||||
|
--libs)
|
||||||
|
echo_libs=yes
|
||||||
|
;;
|
||||||
|
--help)
|
||||||
|
usage 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage 1 1>&2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if test "$echo_prefix" = "yes"; then
|
||||||
|
echo $prefix
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_exec_prefix" = "yes"; then
|
||||||
|
echo $exec_prefix
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_cflags" = "yes"; then
|
||||||
|
echo $cflags
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$echo_libs" = "yes"; then
|
||||||
|
echo $libs
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user