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