]> git.pld-linux.org Git - packages/fribidi.git/blob - fribidi.spec
- updated to 0.19.6
[packages/fribidi.git] / fribidi.spec
1 #
2 # Conditional build:
3 %bcond_without  glib            # Glib usage
4 %bcond_without  static_libs     # static library
5 #
6 Summary:        GNU FriBidi - library implementing the Unicode BiDi algorithm
7 Summary(pl.UTF-8):      GNU FriBidi - biblioteka implementująca algorytm Unicode BiDi
8 Name:           fribidi
9 Version:        0.19.6
10 Release:        1
11 License:        LGPL v2.1+
12 Group:          Libraries
13 Source0:        http://fribidi.org/download/%{name}-%{version}.tar.bz2
14 # Source0-md5:  ce93d862344991173dabb609bf93ca1d
15 Patch0:         format-security.patch
16 URL:            http://fribidi.freedesktop.org/
17 BuildRequires:  autoconf >= 2.64
18 BuildRequires:  automake >= 1:1.11.1
19 %{?with_glib:BuildRequires:     glib2-devel >= 1:2.4}
20 BuildRequires:  libtool >= 2:2.2
21 BuildRequires:  pkgconfig
22 %{?with_glib:Requires:  glib2 >= 1:2.4}
23 Obsoletes:      libfribidi0
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 GNU FriBidi is a free Implementation of the Unicode BiDi algorithm.
28
29 %description -l pl.UTF-8
30 GNU FriBidi to wolnodostępna implementacja algorytmu Unicode BiDi.
31
32 %package devel
33 Summary:        Header files for FriBidi library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki FriBidi
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 %{?with_glib:Requires:  glib2-devel >= 1:2.4}
38 Obsoletes:      libfribidi0-devel
39
40 %description devel
41 The fribidi-devel package includes header files for the fribidi
42 package.
43
44 %description devel -l pl.UTF-8
45 Pliki programistyczne pozwalające na wykorzystywanie biblioteki
46 fribidi w swoim oprogramowaniu.
47
48 %package static
49 Summary:        Static FriBidi library
50 Summary(pl.UTF-8):      Biblioteka statyczna FriBidi
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static FriBidi library.
56
57 %description static -l pl.UTF-8
58 Biblioteka statyczna FriBidi.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63
64 %build
65 %{__libtoolize}
66 %{__aclocal}
67 %{__autoheader}
68 %{__autoconf}
69 %{__automake}
70 %configure \
71         --disable-silent-rules \
72         %{?with_static_libs:--enable-static} \
73         --with-glib%{!?with_glib:=no}
74
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc AUTHORS ChangeLog NEWS README THANKS TODO
92 %attr(755,root,root) %{_bindir}/fribidi
93 %attr(755,root,root) %{_libdir}/libfribidi.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libfribidi.so.0
95
96 %files devel
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libfribidi.so
99 %{_libdir}/libfribidi.la
100 %{_includedir}/fribidi
101 %{_pkgconfigdir}/fribidi.pc
102 %{_mandir}/man3/fribidi_*.3*
103
104 %if %{with static_libs}
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/libfribidi.a
108 %endif
This page took 0.033765 seconds and 3 git commands to generate.