]> git.pld-linux.org Git - SPECS.git/blob - libisocodes.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libisocodes.spec
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
3 Name:           libisocodes
4 Version:        1.2.2
5 Release:        2
6 License:        GPL v3+
7 Group:          Libraries
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)
18
19 %description
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.
24
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.
28
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
33 dostępnych tłumaczeń.
34
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.
38
39 %package devel
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
47
48 %description devel
49 Header files for libisocodes library.
50
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki libisocodes.
53
54 %package static
55 Summary:        Static libisocodes library
56 Summary(pl.UTF-8):      Statyczna biblioteka libisocodes
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59
60 %description static
61 Static libisocodes library.
62
63 %description static -l pl.UTF-8
64 Statyczna biblioteka libisocodes.
65
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}
71 BuildArch:      noarch
72
73 %description -n vala-libisocodes
74 libisocodes API for Vala language.
75
76 %description -n vala-libisocodes -l pl.UTF-8
77 API libisocodes dla języka Vala.
78
79 %prep
80 %setup -q
81
82 %build
83 %configure \
84         --disable-silent-rules
85
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 # obsoleted by pkg-config
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
96
97 %find_lang %{name}
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
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
111
112 %files devel
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
118
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/libisocodes.a
122
123 %files -n vala-libisocodes
124 %defattr(644,root,root,755)
125 %{_datadir}/vala/vapi/libisocodes.vapi
This page took 0.858795 seconds and 3 git commands to generate.