%define major 6 %define libname %mklibname tasn1_ %{major} %define develname %mklibname -d tasn1 Summary: The ASN.1 library used in GNUTLS Name: libtasn1 Version: 4.9 Release: %mkrel 1 License: LGPLv2+ Group: System/Libraries Url: http://josefsson.org/libtasn1/ Source0: http://ftp.gnu.org/gnu/libtasn1/%{name}-%{version}.tar.xz Patch0: libtasn1-3.4-rpath.patch BuildRequires: bison BuildRequires: texinfo BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Libtasn1 is an implementation of the ASN.1 standard used by GnuTLS and others. %package -n %{libname} Summary: The ASN.1 library used in GNUTLS Group: System/Libraries %description -n %{libname} Libtasn1 is an implementation of the ASN.1 standard used by GnuTLS and others. %package tools Summary: Command line ASN.1 tools Group: Text tools License: GPLv3+ %description tools Libtasn1 is an implementation of the ASN.1 standard used by GnuTLS and others. This contains the command line tools to work with ASN.1 data. %package -n %{develname} Summary: The ASN.1 development files Group: Development/Libraries Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: libtasn1_3-devel %description -n %{develname} Libtasn1 is an implementation of the ASN.1 standard used by GnuTLS and others. This contains development files and headers for %{name}. %prep %setup -q %apply_patches %build %configure2_5x --disable-static %make %install rm -rf %{buildroot} %makeinstall_std find %{buildroot} -name '*.la' -delete %clean rm -rf %{buildroot} %post -n %{develname} %_install_info %{name}.info %preun -n %{develname} %_remove_install_info %{name}.info %files tools %defattr(-,root,root) %doc NEWS README THANKS %{_bindir}/asn* %{_mandir}/man1/asn* %files -n %{libname} %defattr(-,root,root) %{_libdir}/libtasn1.so.%{major}* %files -n %{develname} %defattr(-,root,root) %doc AUTHORS ChangeLog %{_includedir}/libtasn1.h %{_libdir}/libtasn1.so %{_libdir}/pkgconfig/libtasn1.pc %{_infodir}/libtasn1.info* %{_mandir}/man3/* %changelog * Sun Oct 09 2016 onkelho 4.9-1pclos2016 - update to * Sun Jan 03 2016 bb 4.7-1pclos2016 - update * Sun Aug 15 2015 bb 4.5-1pclos2015 - update * Thu Oct 09 2014 bb 4.2-1pclos2014 - update * Thu Jan 30 2014 bb 3.4-1pclos2014 - update