File mingw64-asn1c.spec of Package mingw64-asn1c
#
# spec file for package mingw64-asn1c
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define realname asn1c
Name: mingw64-%{realname}
Version: 0.0.0.git1453704546.08068b2
Release: 0
Summary: ASN.1 Compiler
License: BSD-2-Clause
Group: System/Libraries
Url: http://lionet.info/asn1c/
Source: %{realname}-%{version}.tar.xz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
#%%{_mingw64_package_header_debug}
#%%{_mingw64_debug_package}
%description
Compiles ASN.1 data structures into C source structures that can be
simply marshalled to/unmarshalled from: BER, DER, CER, BASIC-XER,
CXER, EXTENDED-XER, PER.
%prep
%setup -q -n %{realname}-%{version}
%build
autoreconf -fiv
%{_mingw64_configure}
%{_mingw64_make} %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
# remove duplicates
rm -rf %{buildroot}/%{_mingw64_datadir}/doc/asn1c
%files
%defattr (-,root,root)
%doc BUGS LICENSE ChangeLog FAQ README.md TODO doc/asn1c-quick.pdf doc/asn1c-usage.pdf
%{_mingw64_bindir}/*
%{_mingw64_datadir}/asn1c
%{_mingw64_mandir}/man1/*
%changelog