File mingw64-popt.spec of Package mingw64-popt
#
# spec file for package mingw64-popt
#
# 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-popt
Version: 1.10.7
Release: 0
Summary: MinGW Windows C library for parsing command line parameters
License: MIT
Group: Development/Libraries/C and C++
Url: http://www.rpm5.org/
Source0: ftp://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/popt-%{version}.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-libintl-devel
Requires: %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch: noarch
%description
Popt is a C library for parsing command line parameters. Popt was
heavily influenced by the getopt() and getopt_long() functions, but
it improves on them by allowing more powerful argument expansion.
Popt can parse arbitrary argv[] style arrays and automatically set
variables based on command line arguments. Popt allows command line
arguments to be aliased via configuration files and includes utility
functions for parsing arbitrary strings into argv[] arrays using
shell-like rules.
%package -n mingw64-libpopt0
Summary: MinGW Windows port of the popt command line paramater parser
Group: System/Libraries
Obsoletes: mingw64-popt
Provides: mingw64-popt
%description -n mingw64-libpopt0
Popt is a C library for parsing command line parameters. Popt was
heavily influenced by the getopt() and getopt_long() functions, but
it improves on them by allowing more powerful argument expansion.
%package devel
Summary: MinGW Windows C library for parsing command line parameters
Group: Development/Libraries/C and C++
%description devel
Popt is a C library for parsing command line parameters. Popt was
heavily influenced by the getopt() and getopt_long() functions, but
it improves on them by allowing more powerful argument expansion.
Popt can parse arbitrary argv[] style arrays and automatically set
variables based on command line arguments. Popt allows command line
arguments to be aliased via configuration files and includes utility
functions for parsing arbitrary strings into argv[] arrays using
shell-like rules (import libraries and header files).
%_mingw64_debug_package
%lang_package
%prep
%setup -q -n popt-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --disable-static --enable-shared
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_makeinstall}
mkdir %{buildroot}%{_mingw64_libdir}
mv %{buildroot}%{_mingw64_prefix}/lib64/* %{buildroot}%{_mingw64_libdir}
%find_lang popt
%files -n mingw64-libpopt0
%defattr(-,root,root)
%{_mingw64_bindir}/libpopt-0.dll
%files lang -f popt.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libpopt.dll.a
%{_mingw64_includedir}/popt.h
%{_mingw64_mandir}/man3/*
%changelog