1 Summary: Library to access iso-codes data and translations
2 Summary(pl.UTF-8): Biblioteka dostępu do danych i tłumaczeń iso-codes
8 Source0: http://pkg-isocodes.alioth.debian.org/downloads/%{name}-%{version}.tar.xz
9 # Source0-md5: 889f6f9b7fa2289ecbc7ecd28db1bdbd
10 URL: http://pkg-isocodes.alioth.debian.org/
11 BuildRequires: gettext-tools >= 0.18
12 BuildRequires: glib2-devel >= 2.0
13 BuildRequires: libgee-devel >= 0.8
14 BuildRequires: libxml2-devel >= 2.0
15 BuildRequires: pkgconfig
16 BuildRequires: vala >= 2:0.16
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This library can be used to easily access XML data of the iso-codes
21 package. It will provide an abstraction layer to handle both the
22 version 3 and the upcoming version 4 of iso-codes. Moreover, all
23 available translations can be used as well.
25 This library makes use of the GObject introspection features, so that
26 it is accessible from a variety of programming languages, for example
27 C, Vala, Ruby, Python, Perl, Lua, JavaScript, PHP and many more.
29 %description -l pl.UTF-8
30 Ta biblioteka pozwala na łatwy dostęp do danych XML pakietu iso-codes.
31 Zapewnia warstwę abstrakcji do obsługi wersji 3, a także nadchodzącej
32 wersji 4 pakietu iso-codes. Co więcej, można używać wszystkich
35 Biblioteka wykorzystuje możliwości GObject introspection, dzięki czemu
36 jest dostępna z wielu języków programowania, jak C, Vala, Ruby,
37 Python, Perl, Lua, JavaScript, PHP i inne.
40 Summary: Header files for libisocodes library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libisocodes
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: glib2-devel >= 2.0
45 Requires: libgee-devel >= 0.8
46 Requires: libxml2-devel >= 2.0
49 Header files for libisocodes library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki libisocodes.
55 Summary: Static libisocodes library
56 Summary(pl.UTF-8): Statyczna biblioteka libisocodes
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static libisocodes library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka libisocodes.
66 %package -n vala-libisocodes
67 Summary: libisocodes API for Vala language
68 Summary(pl.UTF-8): API libisocodes dla języka Vala
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}-%{release}
73 %description -n vala-libisocodes
74 libisocodes API for Vala language.
76 %description -n vala-libisocodes -l pl.UTF-8
77 API libisocodes dla języka Vala.
84 --disable-silent-rules
89 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
94 # obsoleted by pkg-config
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc ChangeLog README
108 %attr(755,root,root) %{_libdir}/libisocodes.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libisocodes.so.1
110 %{_libdir}/girepository-1.0/libisocodes-%{version}.typelib
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libisocodes.so
115 %{_datadir}/gir-1.0/libisocodes-%{version}.gir
116 %{_includedir}/libisocodes.h
117 %{_pkgconfigdir}/libisocodes.pc
120 %defattr(644,root,root,755)
121 %{_libdir}/libisocodes.a
123 %files -n vala-libisocodes
124 %defattr(644,root,root,755)
125 %{_datadir}/vala/vapi/libisocodes.vapi