]> git.pld-linux.org Git - packages/iso-codes.git/blob - iso-codes.spec
3189d0b147a3cec5e625e36d1127fa4a430e7ab9
[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.10.0
5 Release:        2
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:  a62d3c260addaebfc71ee2a71841f6bb
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_639-5.mo
50 # exists only in bn_BD
51 %{__mv} -n $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/iso_15924.mo
52 # the rest is less complete in bn_BD than in bn
53 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/bn_BD
54
55 # not supported yet by glibc
56 %{__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}
57
58 %find_lang %{name} --all-name
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files -f %{name}.lang
64 %defattr(644,root,root,755)
65 %doc CHANGELOG*.md README.md TODO
66 %{_datadir}/iso-codes
67 %{_datadir}/xml/iso-codes
68 %{_npkgconfigdir}/iso-codes.pc
This page took 0.078116 seconds and 2 git commands to generate.