]> git.pld-linux.org Git - packages/iso-codes.git/blob - iso-codes.spec
- updated to 4.13.0
[packages/iso-codes.git] / iso-codes.spec
1 Summary:        List of country and language names
2 Summary(pl.UTF-8):      Lista nazw krajów i języków
3 Name:           iso-codes
4 Version:        4.13.0
5 Release:        1
6 License:        LGPL v2+
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
17 BuildRequires:  xz
18 Requires:       FHS >= 2.3-16
19 Conflicts:      pkgconfig < 1:0.19
20 BuildArch:      noarch
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
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.
30
31 %prep
32 %setup -q -n %{name}-v%{version}
33
34 %build
35 %{__aclocal}
36 %{__autoconf}
37 %{__automake}
38 %configure
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 %{__make} install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 # unify
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
56
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}
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)
67 %doc CHANGELOG*.md README.md TODO
68 %{_datadir}/iso-codes
69 %{_datadir}/xml/iso-codes
70 %{_npkgconfigdir}/iso-codes.pc
This page took 0.129179 seconds and 3 git commands to generate.