add packaging
[platform/upstream/fribidi.git] / packaging / fribidi.spec
1 Name:           fribidi
2 Version:        0.19.4
3 Release:        1
4 Summary:        Free Implementation of BiDi Algorithm
5 License:        LGPL-2.1
6 Group:          System/Libraries
7 Url:            http://fribidi.org/
8 AutoReqProv:    on
9 Provides:       locale(ar;he)
10 Source:         fribidi-%{version}.tar.bz2
11 Source2:        baselibs.conf
12 BuildRequires:  pkg-config
13
14 %description
15 This library implements the algorithm as described in the "Unicode
16 Standard Annex #9, the Bidirectional Algorithm,
17 http://www.unicode.org/unicode/reports/tr9/". FriBidi is exhaustively
18 tested against the Bidi Reference Code and, to the best of the
19 developers' knowledge, does notcontain any conformance bugs.
20
21 The API was inspired by the document "Bi-Di languages support - BiDi
22 API proposal" by Franck Portaneri, which he wrote as a proposal for
23 adding BiDi support to Mozilla.
24
25 %package devel
26 License:        LGPL-2.1
27 Summary:        Development Files for FriBiDi
28 Group:          Development/Libraries/C and C++
29 Requires:       %{name} = %{version}
30 Requires:       pkg-config
31
32 %description devel
33 This package provides headers and manual files for FriBiDi.
34
35 %prep
36 %setup -q
37
38 %build
39 %configure --disable-static
40 %__make %{?_smp_mflags}
41
42 %check
43 %__make check
44
45 %install
46 %make_install
47
48 %post -p /sbin/ldconfig
49
50 %postun -p /sbin/ldconfig
51
52 %files
53 %defattr(-,root,root)
54 %{_bindir}/fribidi
55 %{_libdir}/libfribidi.so.*
56 %doc COPYING
57
58 %files devel
59 %defattr(-, root, root)
60 %dir %{_includedir}/fribidi
61 %{_includedir}/fribidi/*
62 %{_libdir}/libfribidi.so
63 %{_libdir}/pkgconfig/fribidi.pc
64 %doc %{_mandir}/man3/fribidi_*
65
66 %changelog