1 Summary: List of country and language names
2 Summary(pl.UTF-8): Lista nazw krajów i języków
7 Group: Applications/Text
8 #Source0Download: https://salsa.debian.org/iso-codes-team/iso-codes/tags
9 Source0: https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
10 # Source0-md5: 4695f3bcfcce23a73ed6e6436d27cbee
11 URL: https://salsa.debian.org/iso-codes-team/iso-codes
12 BuildRequires: autoconf >= 2.50
13 BuildRequires: automake
14 BuildRequires: gettext-tools
15 BuildRequires: rpmbuild(macros) >= 1.446
16 BuildRequires: tar >= 1:1.22
18 Requires: FHS >= 2.3-16
19 Conflicts: pkgconfig < 1:0.19
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This package aims to provide the list of the country and language (and
25 currency) names in one place, rather than repeated in many programs.
27 %description -l pl.UTF-8
28 Celem tego pakietu jest dostarczenie list nazw krajów i języków (oraz
29 walut) w jednym miejscu, zamiast powtarzania ich w wielu programach.
32 %setup -q -n %{name}-v%{version}
42 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
48 %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}/LC_MESSAGES/iso_3166-2.mo
49 %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}/LC_MESSAGES/iso_3166_2.mo
50 %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}/LC_MESSAGES/iso_639-5.mo
51 %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}/LC_MESSAGES/iso_639_5.mo
52 # exists only in bn_BD
53 %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/iso_15924.mo
54 # the rest is less complete in bn_BD than in bn
55 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/bn_BD
57 # not supported yet by glibc
58 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ace,ach,bar,ch,frp,gn,haw,io,jam,ki,kmr,kv,mo,na,nah,nv,pi,son,tzm,zh_Hans,zh_Hant}
60 %find_lang %{name} --all-name
63 rm -rf $RPM_BUILD_ROOT
65 %files -f %{name}.lang
66 %defattr(644,root,root,755)
67 %doc CHANGELOG*.md README.md TODO
69 %{_datadir}/xml/iso-codes
70 %{_npkgconfigdir}/iso-codes.pc