]> git.pld-linux.org Git - packages/liblangtag.git/blame - liblangtag.spec
- completed build and dependencies
[packages/liblangtag.git] / liblangtag.spec
CommitLineData
8b8b33e8
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library build
4%bcond_without tests # "make check" call
5#
ead1d07e 6Summary: An interface library to access tags for identifying languages
4e604934 7Summary(pl.UTF-8): Biblioteka interfejsu dostępu do znaczników identyfikujących języki
ead1d07e
AM
8Name: liblangtag
9Version: 0.4.0
10Release: 1
3e23b46d 11License: LGPL v3+
ead1d07e 12Group: Libraries
ead1d07e
AM
13Source0: https://bitbucket.org/tagoh/liblangtag/downloads/%{name}-%{version}.tar.bz2
14# Source0-md5: 54e578c91b1b68e69c72be22adcb2195
15Patch0: 0001-Fix-build-issues-with-MSVC.patch
16Patch1: %{name}-Werror.patch
4e604934 17URL: http://tagoh.bitbucket.org/liblangtag/
8b8b33e8
JB
18%{?with_tests:BuildRequires: check-devel >= 0.9.4}
19BuildRequires: glib2-devel >= 2.0
20BuildRequires: gobject-introspection-devel >= 1.30.0
21BuildRequires: gtk-doc >= 1.0
22BuildRequires: libxml2-devel >= 2.1.0
23BuildRequires: pkgconfig
ead1d07e
AM
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
4e604934 27liblangtag is an interface library to access tags for identifying
ead1d07e
AM
28languages.
29
30Features:
31- several subtag registry database supports:
32 - language
33 - extlang
34 - script
35 - region
36 - variant
37 - extension
38 - grandfathered
39 - redundant
40- handling of the language tags
41 - parser
42 - matching
43 - canonicalizing
44
4e604934
JB
45%description -l pl.UTF-8
46liblangtag to biblioteka interfejsu dostępu do znaczników
47identyfikujących języki.
48
49Możliwości:
50- baza danych rejestru podznaczników obsługująca:
51 - język
52 - extlang
53 - pismo
54 - region
55 - wariant
56 - rozszerzenie
57 - dziedziczenie
58 - nadmiarowość
59- obsługa znaczników języków:
60 - analiza
61 - dopasowywanie
62 - sprowadzanie do postaci kanonicznej
63
ead1d07e 64%package devel
4e604934
JB
65Summary: Development files for liblangtag
66Summary(pl.UTF-8): Pliki programistyczne biblioteki liblangtag
ead1d07e 67Group: Development/Libraries
3e23b46d 68Requires: %{name} = %{version}-%{release}
8b8b33e8 69Requires: glib2-devel >= 2.0
ead1d07e
AM
70
71%description devel
4e604934
JB
72This package contains the header files for developing applications
73that use liblangtag.
74
75%description devel -l pl.UTF-8
76Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
77wykorzystujących bibliotekę liblangtag.
ead1d07e 78
8b8b33e8
JB
79%package static
80Summary: Static liblangtag library
81Summary(pl.UTF-8): Statyczna biblioteka liblangtag
82Group: Development/Libraries
83Requires: %{name}-devel = %{version}-%{release}
84
85%description static
86Static liblangtag library.
87
88%description static -l pl.UTF-8
89Statyczna biblioteka liblangtag.
90
ead1d07e
AM
91%prep
92%setup -q
93%patch0 -p1
94%patch1 -p1
95
96%build
8b8b33e8 97# NOTE: introspection build is broken as of 0.4.0
ead1d07e 98%configure \
4e604934 99 --disable-introspection \
3e23b46d 100 --disable-silent-rules \
8b8b33e8
JB
101 %{!?with_static_libs:--disable-static} \
102 %{!?with_tests:--disable-test} \
103 --with-html-dir=%{_gtkdocdir}
ead1d07e 104
8b8b33e8
JB
105%{__make}
106# LD_LIBRARY_PATH=`pwd`/liblangtag/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
107
108%{?with_tests:%{__make} check}
ead1d07e
AM
109
110%install
111rm -rf $RPM_BUILD_ROOT
112
113%{__make} install \
114 DESTDIR=$RPM_BUILD_ROOT
115
4e604934 116%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
8b8b33e8 117%{?with_static_libs:%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a}
ead1d07e
AM
118
119%clean
120rm -rf $RPM_BUILD_ROOT
121
3e23b46d
AM
122%post -p /sbin/ldconfig
123%postun -p /sbin/ldconfig
ead1d07e
AM
124
125%files
126%defattr(644,root,root,755)
8b8b33e8 127%doc AUTHORS ChangeLog NEWS README
4e604934
JB
128%attr(755,root,root) %{_libdir}/liblangtag.so.*.*.*
129%attr(755,root,root) %ghost %{_libdir}/liblangtag.so.1
ead1d07e
AM
130%dir %{_libdir}/%{name}
131%attr(755,root,root) %{_libdir}/%{name}/liblangtag-ext-ldml-t.so
132%attr(755,root,root) %{_libdir}/%{name}/liblangtag-ext-ldml-u.so
133%{_datadir}/%{name}
134
135%files devel
136%defattr(644,root,root,755)
4e604934
JB
137%attr(755,root,root) %{_libdir}/liblangtag.so
138%{_includedir}/liblangtag
139%{_pkgconfigdir}/liblangtag.pc
8b8b33e8
JB
140%{_gtkdocdir}/liblangtag
141
142%if %{with static_libs}
143%files static
144%defattr(644,root,root,755)
145%{_libdir}/liblangtag.a
146%endif
This page took 0.082253 seconds and 4 git commands to generate.