]>
Commit | Line | Data |
---|---|---|
ae3a1848 | 1 | Summary: List of country and language names |
cb6d5c15 | 2 | Summary(pl.UTF-8): Lista nazw krajów i języków |
ae3a1848 | 3 | Name: iso-codes |
4bc58973 JB |
4 | Version: 4.11.0 |
5 | Release: 1 | |
e66a0058 | 6 | License: LGPL v2+ |
ae3a1848 | 7 | Group: Applications/Text |
9cff5400 | 8 | #Source0Download: https://salsa.debian.org/iso-codes-team/iso-codes/tags |
002fc2d7 | 9 | Source0: https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/v%{version}/%{name}-v%{version}.tar.bz2 |
4bc58973 | 10 | # Source0-md5: c2bef0fba0d8f9d32474ae57dbebee75 |
9cff5400 | 11 | URL: https://salsa.debian.org/iso-codes-team/iso-codes |
e66a0058 | 12 | BuildRequires: autoconf >= 2.50 |
bd81866a | 13 | BuildRequires: automake |
bc299d36 | 14 | BuildRequires: gettext-tools |
e66a0058 | 15 | BuildRequires: rpmbuild(macros) >= 1.446 |
b676fb3e ŁK |
16 | BuildRequires: tar >= 1:1.22 |
17 | BuildRequires: xz | |
f3aca64e | 18 | Requires: FHS >= 2.3-16 |
b5dd71ee JB |
19 | Conflicts: pkgconfig < 1:0.19 |
20 | BuildArch: noarch | |
ae3a1848 JB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
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. | |
26 | ||
5cb027c8 JR |
27 | %description -l pl.UTF-8 |
28 | Celem tego pakietu jest dostarczenie list nazw krajów i języków (oraz | |
ae3a1848 JB |
29 | walut) w jednym miejscu, zamiast powtarzania ich w wielu programach. |
30 | ||
31 | %prep | |
002fc2d7 | 32 | %setup -q -n %{name}-v%{version} |
ae3a1848 JB |
33 | |
34 | %build | |
bd81866a JB |
35 | %{__aclocal} |
36 | %{__autoconf} | |
37 | %{__automake} | |
74261d19 | 38 | %configure |
ae3a1848 JB |
39 | %{__make} |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
74261d19 | 45 | DESTDIR=$RPM_BUILD_ROOT |
ae3a1848 | 46 | |
13d2b30e JB |
47 | # unify |
48 | %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}/LC_MESSAGES/iso_3166-2.mo | |
4bc58973 | 49 | %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}/LC_MESSAGES/iso_3166_2.mo |
13d2b30e | 50 | %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}/LC_MESSAGES/iso_639-5.mo |
4bc58973 | 51 | %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}/LC_MESSAGES/iso_639_5.mo |
e90a7ff2 JB |
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 | |
13d2b30e | 56 | |
e2d87163 | 57 | # not supported yet by glibc |
e90a7ff2 | 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} |
ae3a1848 JB |
59 | |
60 | %find_lang %{name} --all-name | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files -f %{name}.lang | |
66 | %defattr(644,root,root,755) | |
002fc2d7 | 67 | %doc CHANGELOG*.md README.md TODO |
460280d4 | 68 | %{_datadir}/iso-codes |
74261d19 | 69 | %{_datadir}/xml/iso-codes |
e66a0058 | 70 | %{_npkgconfigdir}/iso-codes.pc |