File mingw64-iso-codes.spec of Package mingw64-iso-codes
#
# spec file for package mingw64-iso-codes
#
# 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-iso-codes
Version: 3.22
Release: 0
Summary: ISO Code Lists and Translations
License: LGPL-2.1-or-later
Group: Development/Libraries
Url: http://alioth.debian.org/projects/pkg-isocodes/
Source0: ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes/iso-codes-%{version}.tar.bz2
#!BuildIgnore: post-build-checks
BuildRequires: gettext-runtime
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: python
BuildRequires: python-xml
Requires: %{name}-lang = %{version}
BuildArch: noarch
%_mingw64_package_header_debug
%description
This package provides the ISO-639 language code list, the ISO-3166
territory code list, ISO-3166-2 subterritory lists, and all their
translations in gettext .po form.
%package devel
Summary: ISO Code Lists and Translations
Group: Development/Libraries
%description devel
This package provides the ISO-639 language code list, the ISO-3166
territory code list, ISO-3166-2 subterritory lists, and all their
translations in gettext .po form.
%lang_package
%prep
%setup -q -n iso-codes-%{version}
%build
%{_mingw64_configure}
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%find_lang iso_639 iso-codes.lang
%find_lang iso_639_3 iso-codes.lang
%find_lang iso_3166 iso-codes.lang
%find_lang iso_3166_2 iso-codes.lang
%find_lang iso_4217 iso-codes.lang
%find_lang iso_15924 iso-codes.lang
%files
%defattr(-,root,root)
#%{_mingw64_datadir}/iso-codes/iso_639.tab
%{_mingw64_datadir}/xml/iso-codes/iso_639.xml
%{_mingw64_datadir}/xml/iso-codes/iso_639_3.xml
%{_mingw64_datadir}/xml/iso-codes/iso_3166.xml
%{_mingw64_datadir}/xml/iso-codes/iso_3166_2.xml
%{_mingw64_datadir}/xml/iso-codes/iso_4217.xml
%{_mingw64_datadir}/xml/iso-codes/iso_15924.xml
%files lang -f iso-codes.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%{_mingw64_datadir}/pkgconfig/iso-codes.pc
%changelog