b6e2796
## $Id$
b6e2796
b6e2796
%{!?release_func:%global release_func() %1%{?dist}}
b6e2796
86ad742
Summary:	This is the ASN.1 library used in GNUTLS
cvsextras 8e9f250
Name:		libtasn1
c01bde3
Version:	0.3.5
b6e2796
Release: 	%release_func 1
f4163b8
cvsextras 8e9f250
License:	LGPL
cvsextras 8e9f250
Group:		System Environment/Libraries
cvsextras 8e9f250
URL:		http://www.gnu.org/software/gnutls/download.html
b6e2796
Source0:	ftp://ftp.gnutls.org/pub/gnutls/libtasn1/%name-%version.tar.gz
b6e2796
Source1:	ftp://ftp.gnutls.org/pub/gnutls/libtasn1/%name-%version.tar.gz.sig
b6e2796
BuildRoot:	%_tmppath/%name-%version-%release-buildroot
cvsextras 8e9f250
BuildRequires:	bison
cvsextras 8e9f250
cvsextras 8e9f250
b6e2796
%package devel
b6e2796
Summary:	Files for development of applications which will use libtasn1
b6e2796
Group:		Development/Libraries
b6e2796
Requires:	%name = %version-%release
b6e2796
Requires(pre):		automake pkgconfig
b6e2796
Requires(postun):	automake pkgconfig
b6e2796
Requires(post):		/sbin/install-info
b6e2796
Requires(postun):	/sbin/install-info
b6e2796
accf307
3ae5d0c
%package tools
3ae5d0c
Summary:	Some ASN.1 tools
3ae5d0c
Group:		Applications/Text
3ae5d0c
Requires:	%name = %version-%release
3ae5d0c
3ae5d0c
cvsextras 8e9f250
%description
cvsextras 8e9f250
This is the ASN.1 library used in GNUTLS.  More up to date information can
cvsextras 8e9f250
be found at http://www.gnu.org/software/gnutls and http://www.gnutls.org
cvsextras 8e9f250
b6e2796
%description devel
b6e2796
This is the ASN.1 library used in GNUTLS.  More up to date information can
b6e2796
be found at http://www.gnu.org/software/gnutls and http://www.gnutls.org
b6e2796
3ae5d0c
This package contains files for development of applications which will
3ae5d0c
use libtasn1.
3ae5d0c
3ae5d0c
3ae5d0c
%description tools
3ae5d0c
This is the ASN.1 library used in GNUTLS.  More up to date information can
3ae5d0c
be found at http://www.gnu.org/software/gnutls and http://www.gnutls.org
3ae5d0c
3ae5d0c
This package contains tools using the libtasn library.
b6e2796
cvsextras 8e9f250
cvsextras 8e9f250
%prep
cvsextras 8e9f250
%setup -q
cvsextras 8e9f250
cvsextras 8e9f250
cvsextras 8e9f250
%build
b6e2796
%configure --disable-static
b6e2796
make %{?_smp_mflags}
cvsextras 8e9f250
cvsextras 8e9f250
cvsextras 8e9f250
%install
cvsextras 8e9f250
rm -rf "$RPM_BUILD_ROOT"
b6e2796
make DESTDIR="$RPM_BUILD_ROOT" install
b6e2796
b6e2796
rm -f $RPM_BUILD_ROOT{%_libdir/*.la,%_infodir/dir}
cvsextras 8e9f250
cvsextras 8e9f250
cvsextras 8e9f250
%check
accf307
make check
cvsextras 8e9f250
cvsextras 8e9f250
cvsextras 8e9f250
%clean
cvsextras 8e9f250
rm -rf "$RPM_BUILD_ROOT"
cvsextras 8e9f250
cvsextras 8e9f250
cvsextras 8e9f250
%post   -p /sbin/ldconfig
cvsextras 8e9f250
%postun -p /sbin/ldconfig
cvsextras 8e9f250
cvsextras 8e9f250
b6e2796
%post devel
b6e2796
/sbin/install-info --info-dir=%_infodir %_infodir/%name.info || :
b6e2796
b6e2796
%preun devel
b6e2796
test "$1" != 0 ||
b6e2796
	/sbin/install-info --info-dir=%_infodir --delete %_infodir/%name.info || :
b6e2796
b6e2796
cvsextras 8e9f250
%files
cvsextras 8e9f250
%defattr(-,root,root,-)
b6e2796
%doc doc/TODO doc/*.pdf
cvsextras 8e9f250
%doc AUTHORS COPYING* ChangeLog NEWS README THANKS
b6e2796
%_libdir/*.so.*
b6e2796
3ae5d0c
%files tools
3ae5d0c
%defattr(-,root,root,-)
3ae5d0c
%_bindir/asn1*
3ae5d0c
%_mandir/man1/asn1*
b6e2796
b6e2796
%files devel
b6e2796
%defattr(-,root,root,-)
b6e2796
%_bindir/*-config
b6e2796
%_libdir/*.so
b6e2796
%_libdir/pkgconfig/*.pc
b6e2796
%_includedir/*
b6e2796
%_datadir/aclocal/libtasn1.m4
b6e2796
%_infodir/*.info.*
b6e2796
%_mandir/man3/*asn1*
cvsextras 8e9f250
cvsextras 8e9f250
cvsextras 8e9f250
%changelog
c01bde3
* Fri Sep 15 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.3.5-1
c01bde3
- updated to 0.3.5
c01bde3
c890485
* Sat Jun  3 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.3.4-1
c890485
- updated to 0.3.4
c890485
3ae5d0c
* Sun Mar 26 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.3.2-1
3ae5d0c
- updated to 0.3.2
3ae5d0c
- added -tools subpackage
3ae5d0c
3c9351b
* Wed Mar  8 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.3.1-1
3c9351b
- updated to 0.3.1
3c9351b
b6e2796
* Mon Mar  6 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.3.0-1
b6e2796
- updated to 0.3.0
b6e2796
- removed unneeded curlies
b6e2796
- created -devel subpackage
b6e2796
d5f4bf8
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 0.2.6-3
d5f4bf8
- rebuild on all arches
d5f4bf8
f4163b8
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
f4163b8
- rebuilt
f4163b8
cvsextras 8e9f250
* Tue Nov 18 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.2.6-0.fdr.1
cvsextras 8e9f250
- updated to 0.2.6
cvsextras 8e9f250
cvsextras 8e9f250
* Mon Aug  4 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.2.5-0.fdr.1
cvsextras 8e9f250
- updated to 0.2.5
cvsextras 8e9f250
- changed license to LGPL
cvsextras 8e9f250
- rearranged %%check to reflect execution order
cvsextras 8e9f250
- minor cosmetical changes
cvsextras 8e9f250
cvsextras 8e9f250
* Tue Jun 10 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.2.4-0.fdr.1
cvsextras 8e9f250
- Initial build.