]>
Commit | Line | Data |
---|---|---|
8b8b33e8 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library build | |
a278ab14 | 4 | %bcond_without introspection # GObject interface |
8b8b33e8 | 5 | %bcond_without tests # "make check" call |
039c606d | 6 | |
ead1d07e | 7 | Summary: An interface library to access tags for identifying languages |
4e604934 | 8 | Summary(pl.UTF-8): Biblioteka interfejsu dostępu do znaczników identyfikujących języki |
ead1d07e | 9 | Name: liblangtag |
47a15b48 JB |
10 | Version: 0.6.2 |
11 | Release: 1 | |
3e23b46d | 12 | License: LGPL v3+ |
ead1d07e | 13 | Group: Libraries |
ead1d07e | 14 | Source0: https://bitbucket.org/tagoh/liblangtag/downloads/%{name}-%{version}.tar.bz2 |
47a15b48 | 15 | # Source0-md5: 284f120247323a35122ab32b4b359c45 |
4e604934 | 16 | URL: http://tagoh.bitbucket.org/liblangtag/ |
691fcb98 JB |
17 | BuildRequires: autoconf >= 2.62 |
18 | BuildRequires: automake >= 1:1.11 | |
8b8b33e8 | 19 | %{?with_tests:BuildRequires: check-devel >= 0.9.4} |
a278ab14 | 20 | %{?with_introspection:BuildRequires: glib2-devel >= 2.0} |
8b8b33e8 | 21 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
4067b778 | 22 | BuildRequires: gtk-doc >= 1.14 |
691fcb98 | 23 | BuildRequires: libtool >= 2:2.2 |
8b8b33e8 JB |
24 | BuildRequires: libxml2-devel >= 2.1.0 |
25 | BuildRequires: pkgconfig | |
ead1d07e AM |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
4e604934 | 29 | liblangtag is an interface library to access tags for identifying |
ead1d07e AM |
30 | languages. |
31 | ||
32 | Features: | |
33 | - several subtag registry database supports: | |
34 | - language | |
35 | - extlang | |
36 | - script | |
37 | - region | |
38 | - variant | |
39 | - extension | |
40 | - grandfathered | |
41 | - redundant | |
42 | - handling of the language tags | |
43 | - parser | |
44 | - matching | |
45 | - canonicalizing | |
46 | ||
4e604934 JB |
47 | %description -l pl.UTF-8 |
48 | liblangtag to biblioteka interfejsu dostępu do znaczników | |
49 | identyfikujących języki. | |
50 | ||
51 | Możliwości: | |
52 | - baza danych rejestru podznaczników obsługująca: | |
53 | - język | |
54 | - extlang | |
55 | - pismo | |
56 | - region | |
57 | - wariant | |
58 | - rozszerzenie | |
59 | - dziedziczenie | |
60 | - nadmiarowość | |
61 | - obsługa znaczników języków: | |
62 | - analiza | |
63 | - dopasowywanie | |
64 | - sprowadzanie do postaci kanonicznej | |
65 | ||
ead1d07e | 66 | %package devel |
4e604934 JB |
67 | Summary: Development files for liblangtag |
68 | Summary(pl.UTF-8): Pliki programistyczne biblioteki liblangtag | |
ead1d07e | 69 | Group: Development/Libraries |
3e23b46d | 70 | Requires: %{name} = %{version}-%{release} |
6fc2cbcb | 71 | Requires: libxml2-devel >= 2.1.0 |
ead1d07e AM |
72 | |
73 | %description devel | |
4e604934 JB |
74 | This package contains the header files for developing applications |
75 | that use liblangtag. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
79 | wykorzystujących bibliotekę liblangtag. | |
ead1d07e | 80 | |
8b8b33e8 JB |
81 | %package static |
82 | Summary: Static liblangtag library | |
83 | Summary(pl.UTF-8): Statyczna biblioteka liblangtag | |
84 | Group: Development/Libraries | |
85 | Requires: %{name}-devel = %{version}-%{release} | |
86 | ||
87 | %description static | |
88 | Static liblangtag library. | |
89 | ||
90 | %description static -l pl.UTF-8 | |
91 | Statyczna biblioteka liblangtag. | |
92 | ||
a278ab14 JB |
93 | %package gobject |
94 | Summary: GObject based interface to liblangtag | |
95 | Summary(pl.UTF-8): Interfejs GObject do biblioteki liblangtag | |
96 | Group: Libraries | |
97 | Requires: %{name} = %{version}-%{release} | |
98 | ||
99 | %description gobject | |
100 | GObject based interface to liblangtag. | |
101 | ||
102 | %description gobject -l pl.UTF-8 | |
103 | Interfejs GObject do biblioteki liblangtag. | |
104 | ||
105 | %package gobject-devel | |
106 | Summary: Header files for liblangtag-gobject library | |
107 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liblangtag-gobject | |
108 | Group: Development/Libraries | |
109 | Requires: %{name}-devel = %{version}-%{release} | |
110 | Requires: %{name}-gobject = %{version}-%{release} | |
111 | Requires: glib2-devel >= 2.0 | |
112 | ||
113 | %description gobject-devel | |
114 | Header files for liblangtag-gobject library. | |
115 | ||
116 | %description gobject-devel -l pl.UTF-8 | |
117 | Pliki nagłówkowe biblioteki liblangtag-gobject. | |
118 | ||
119 | %package gobject-static | |
120 | Summary: Static liblangtag-gobject library | |
121 | Summary(pl.UTF-8): Statyczna biblioteka liblangtag-gobject | |
122 | Group: Development/Libraries | |
123 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
124 | ||
125 | %description gobject-static | |
126 | Static liblangtag-gobject library. | |
127 | ||
128 | %description gobject-static -l pl.UTF-8 | |
129 | Statyczna biblioteka liblangtag-gobject. | |
130 | ||
6fc2cbcb JB |
131 | %package apidocs |
132 | Summary: API documentation for liblangtag library | |
133 | Summary(pl.UTF-8): Dokumentacja API biblioteki liblangtag | |
134 | Group: Documentation | |
135 | Conflicts: liblangtag-devel < 0.5.8 | |
039c606d ER |
136 | %if "%{_rpmversion}" >= "5" |
137 | BuildArch: noarch | |
138 | %endif | |
6fc2cbcb JB |
139 | |
140 | %description apidocs | |
141 | API documentation for liblangtag library. | |
142 | ||
143 | %description apidocs -l pl.UTF-8 | |
144 | Dokumentacja API biblioteki liblangtag. | |
145 | ||
ead1d07e AM |
146 | %prep |
147 | %setup -q | |
ead1d07e AM |
148 | |
149 | %build | |
691fcb98 JB |
150 | %{__libtoolize} |
151 | %{__aclocal} -I m4macros | |
152 | %{__autoconf} | |
153 | %{__autoheader} | |
154 | %{__automake} | |
ead1d07e | 155 | %configure \ |
a278ab14 | 156 | %{!?with_introspection:--disable-introspection} \ |
3e23b46d | 157 | --disable-silent-rules \ |
efb34cf4 | 158 | %{?with_static_libs:--enable-static} \ |
8b8b33e8 JB |
159 | %{!?with_tests:--disable-test} \ |
160 | --with-html-dir=%{_gtkdocdir} | |
ead1d07e | 161 | |
8b8b33e8 | 162 | %{__make} |
8b8b33e8 JB |
163 | |
164 | %{?with_tests:%{__make} check} | |
ead1d07e AM |
165 | |
166 | %install | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
169 | %{__make} install \ | |
170 | DESTDIR=$RPM_BUILD_ROOT | |
171 | ||
4e604934 | 172 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
8b8b33e8 | 173 | %{?with_static_libs:%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a} |
ead1d07e AM |
174 | |
175 | %clean | |
176 | rm -rf $RPM_BUILD_ROOT | |
177 | ||
3e23b46d AM |
178 | %post -p /sbin/ldconfig |
179 | %postun -p /sbin/ldconfig | |
ead1d07e | 180 | |
a278ab14 JB |
181 | %post gobject -p /sbin/ldconfig |
182 | %postun gobject -p /sbin/ldconfig | |
183 | ||
ead1d07e AM |
184 | %files |
185 | %defattr(644,root,root,755) | |
8b8b33e8 | 186 | %doc AUTHORS ChangeLog NEWS README |
4e604934 JB |
187 | %attr(755,root,root) %{_libdir}/liblangtag.so.*.*.* |
188 | %attr(755,root,root) %ghost %{_libdir}/liblangtag.so.1 | |
ead1d07e AM |
189 | %dir %{_libdir}/%{name} |
190 | %attr(755,root,root) %{_libdir}/%{name}/liblangtag-ext-ldml-t.so | |
191 | %attr(755,root,root) %{_libdir}/%{name}/liblangtag-ext-ldml-u.so | |
192 | %{_datadir}/%{name} | |
193 | ||
194 | %files devel | |
195 | %defattr(644,root,root,755) | |
4e604934 | 196 | %attr(755,root,root) %{_libdir}/liblangtag.so |
a278ab14 JB |
197 | %dir %{_includedir}/liblangtag |
198 | %{_includedir}/liblangtag/langtag.h | |
8467de64 | 199 | %{_includedir}/liblangtag/lt-config.h |
a278ab14 JB |
200 | %{_includedir}/liblangtag/lt-database.h |
201 | %{_includedir}/liblangtag/lt-error.h | |
202 | %{_includedir}/liblangtag/lt-ext-module.h | |
203 | %{_includedir}/liblangtag/lt-ext-module-data.h | |
204 | %{_includedir}/liblangtag/lt-extension.h | |
205 | %{_includedir}/liblangtag/lt-extlang-db.h | |
206 | %{_includedir}/liblangtag/lt-extlang.h | |
207 | %{_includedir}/liblangtag/lt-grandfathered.h | |
208 | %{_includedir}/liblangtag/lt-grandfathered-db.h | |
209 | %{_includedir}/liblangtag/lt-iter.h | |
210 | %{_includedir}/liblangtag/lt-lang.h | |
211 | %{_includedir}/liblangtag/lt-lang-db.h | |
212 | %{_includedir}/liblangtag/lt-list.h | |
213 | %{_includedir}/liblangtag/lt-macros.h | |
6fc2cbcb | 214 | %{_includedir}/liblangtag/lt-messages.h |
a278ab14 JB |
215 | %{_includedir}/liblangtag/lt-redundant.h |
216 | %{_includedir}/liblangtag/lt-redundant-db.h | |
217 | %{_includedir}/liblangtag/lt-region.h | |
218 | %{_includedir}/liblangtag/lt-region-db.h | |
f99af031 | 219 | %{_includedir}/liblangtag/lt-relation-db.h |
a278ab14 JB |
220 | %{_includedir}/liblangtag/lt-script.h |
221 | %{_includedir}/liblangtag/lt-script-db.h | |
222 | %{_includedir}/liblangtag/lt-string.h | |
223 | %{_includedir}/liblangtag/lt-tag.h | |
6fc2cbcb | 224 | %{_includedir}/liblangtag/lt-utils.h |
a278ab14 JB |
225 | %{_includedir}/liblangtag/lt-variant.h |
226 | %{_includedir}/liblangtag/lt-variant-db.h | |
6fc2cbcb | 227 | %{_includedir}/liblangtag/lt-xml.h |
4e604934 | 228 | %{_pkgconfigdir}/liblangtag.pc |
8b8b33e8 JB |
229 | |
230 | %if %{with static_libs} | |
231 | %files static | |
232 | %defattr(644,root,root,755) | |
233 | %{_libdir}/liblangtag.a | |
234 | %endif | |
a278ab14 JB |
235 | |
236 | %if %{with introspection} | |
237 | %files gobject | |
238 | %defattr(644,root,root,755) | |
239 | %attr(755,root,root) %{_libdir}/liblangtag-gobject.so.*.*.* | |
240 | %attr(755,root,root) %ghost %{_libdir}/liblangtag-gobject.so.0 | |
f99af031 | 241 | %{_libdir}/girepository-1.0/LangTag-0.6.typelib |
a278ab14 JB |
242 | |
243 | %files gobject-devel | |
244 | %defattr(644,root,root,755) | |
245 | %attr(755,root,root) %{_libdir}/liblangtag-gobject.so | |
246 | %{_includedir}/liblangtag/lt-gobject.h | |
f99af031 | 247 | %{_datadir}/gir-1.0/LangTag-0.6.gir |
a278ab14 JB |
248 | %{_pkgconfigdir}/liblangtag-gobject.pc |
249 | ||
250 | %if %{with static_libs} | |
251 | %files gobject-static | |
252 | %defattr(644,root,root,755) | |
253 | %{_libdir}/liblangtag-gobject.a | |
254 | %endif | |
255 | %endif | |
6fc2cbcb JB |
256 | |
257 | %files apidocs | |
258 | %defattr(644,root,root,755) | |
259 | %{_gtkdocdir}/liblangtag |