Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 4ec70fcfe0a80000d90103ac875b71d6 > files > 2

iso-codes-0.47-1mdk.src.rpm

%define name iso-codes
%define version 0.47
%define release 1mdk
%if %mdkversion >= 200600
%define pkgconfigdir %_datadir/pkgconfig
%else
%define pkgconfigdir %_libdir/pkgconfig
%endif

Summary: Mapping between ISO country codes and full names
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: System/Libraries
#gw FIXME outdated URL
Url: http://people.debian.org/~mckinstry/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: python-pyxml
BuildRequires: python
BuildArch: noarch

%description
This package aims to provide the list of the country and language (and
currency) names in one place, rather than repeated in many programs
throughout Mandrivalinux.

%prep
%setup -q

%build
./configure --prefix=%_prefix --libdir=%_libdir
%make

%install
rm -rf $RPM_BUILD_ROOT *.lang
%makeinstall_std pkgconfigdir=%pkgconfigdir
%find_lang iso_639
%find_lang iso_3166
%find_lang iso_3166_2
%find_lang iso_4217
cat iso_*.lang > iso-codes.lang

%clean
rm -rf $RPM_BUILD_ROOT

%files -f iso-codes.lang
%defattr(-,root,root)
%doc README ChangeLog TODO
%_datadir/xml/iso-codes/
%_datadir/iso-codes/
%pkgconfigdir/iso-codes.pc


%changelog
* Wed Aug 24 2005 Götz Waschk <waschk@mandriva.org> 0.47-1mdk
- New release 0.47

* Thu Apr 28 2005 Götz Waschk <waschk@mandriva.org> 0.46-3mdk
- fix pkgconfig file location

* Tue Apr 12 2005 Götz Waschk <waschk@linux-mandrake.com> 0.46-2mdk
- fix buildrequires

* Tue Apr 12 2005 Götz Waschk <waschk@linux-mandrake.com> 0.46-1mdk
- initial package