File mingw64-libtasn1.spec of Package mingw64-libtasn1

#
# spec file for package mingw64-libtasn1
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw64-libtasn1
Version:        4.20.0
Release:        0
Summary:        ASN.1 parsing library
License:        GPL-3.0-or-later and LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            https://www.gnu.org/software/libtasn1/
Source:         https://ftp.gnu.org/gnu/libtasn1/libtasn1-%version.tar.gz
Source2:        https://ftp.gnu.org/gnu/libtasn1/libtasn1-%version.tar.gz.sig
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
%_mingw64_package_header_debug
BuildArch:      noarch

%description
This is the ASN.1 library used in GNUTLS. More up to date information
can be found at http://www.gnu.org/software/gnutls and http://www.gnutls.org

%package -n mingw64-libtasn1-6
Summary:        ASN.1 parsing library
Group:          System/Libraries

%description -n mingw64-libtasn1-6
This is the ASN.1 library used in GNUTLS. More up to date information
can be found at http://www.gnu.org/software/gnutls and http://www.gnutls.org

%package tools
Summary:        ASN.1 parsing library (tools)
Group:          Development/Libraries

%description tools
This is the ASN.1 library used in GNUTLS.

%package devel
Summary:        ASN.1 parsing library (development files)
Group:          Development/Libraries/C and C++

%description devel
This is the ASN.1 library used in GNUTLS.

%_mingw64_debug_package

%prep
%setup -q -n libtasn1-%{version}

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_mingw64_infodir}
rm %{buildroot}%{_mingw64_libdir}/libtasn1-.def

%files -n mingw64-libtasn1-6
%{_mingw64_bindir}/libtasn1-6.dll

%files tools
%{_mingw64_bindir}/asn1Parser.exe
%{_mingw64_bindir}/asn1Coding.exe
%{_mingw64_bindir}/asn1Decoding.exe
%{_mingw64_mandir}/man1/asn1Parser.1*
%{_mingw64_mandir}/man1/asn1Coding.1*
%{_mingw64_mandir}/man1/asn1Decoding.1*

%files devel
%{_mingw64_libdir}/libtasn1.dll.a
%{_mingw64_libdir}/pkgconfig/libtasn1.pc
%{_mingw64_includedir}/libtasn1.h
%{_mingw64_mandir}/man3/asn1*.3*

%changelog
openSUSE Build Service is sponsored by