]> git.pld-linux.org Git - packages/liblangtag.git/blob - liblangtag.spec
- initial from fc
[packages/liblangtag.git] / liblangtag.spec
1 Summary:        An interface library to access tags for identifying languages
2 Name:           liblangtag
3 Version:        0.4.0
4 Release:        1
5 License:        LGPLv3+
6 Group:          Libraries
7 URL:            http://tagoh.bitbucket.org/liblangtag/
8 Source0:        https://bitbucket.org/tagoh/liblangtag/downloads/%{name}-%{version}.tar.bz2
9 # Source0-md5:  54e578c91b1b68e69c72be22adcb2195
10 Patch0:         0001-Fix-build-issues-with-MSVC.patch
11 Patch1:         %{name}-Werror.patch
12 BuildRequires:  gtk-doc
13 BuildRequires:  libtool
14 BuildRequires:  libxml2-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 %{name} is an interface library to access tags for identifying
19 languages.
20
21 Features:
22 - several subtag registry database supports:
23   - language
24   - extlang
25   - script
26   - region
27   - variant
28   - extension
29   - grandfathered
30   - redundant
31 - handling of the language tags
32   - parser
33   - matching
34   - canonicalizing
35
36 %package devel
37 Summary:        Development files for %{name}
38 Group:          Development/Libraries
39 Requires:       %{name}%{?_isa} = %{version}-%{release}
40
41 %description devel
42 The %{name}-devel package contains libraries and header files for
43 developing applications that use %{name}.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48 %patch1 -p1
49
50 %build
51 %configure \
52         --disable-static \
53         --enable-shared \
54         --disable-introspection \
55
56 %{__make} V=1 \
57         LD_LIBRARY_PATH=`pwd`/liblangtag/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.la
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
72
73 %files
74 %defattr(644,root,root,755)
75 %doc AUTHORS COPYING NEWS README
76 %attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
77 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.1
78 %dir %{_libdir}/%{name}
79 %attr(755,root,root) %{_libdir}/%{name}/liblangtag-ext-ldml-t.so
80 %attr(755,root,root) %{_libdir}/%{name}/liblangtag-ext-ldml-u.so
81 %{_datadir}/%{name}
82
83 %files devel
84 %defattr(644,root,root,755)
85 %doc docs/html/*
86 %attr(755,root,root)  %{_libdir}/%{name}.so
87 %{_includedir}/%{name}
88 %{_pkgconfigdir}/%{name}.pc
This page took 0.105002 seconds and 3 git commands to generate.