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