]> git.pld-linux.org Git - packages/fribidi.git/blob - fribidi.spec
- updated to 1.0.13
[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.7
10 Release:        1
11 License:        LGPL v2.1+
12 Group:          Libraries
13 Source0:        https://fribidi.org/download/%{name}-%{version}.tar.bz2
14 # Source0-md5:  6c7e7cfdd39c908f7ac619351c1c5c23
15 URL:            https://fribidi.org/
16 BuildRequires:  autoconf >= 2.64
17 BuildRequires:  automake >= 1:1.11.1
18 %{?with_glib:BuildRequires:     glib2-devel >= 1:2.4}
19 BuildRequires:  libtool >= 2:2.2
20 BuildRequires:  pkgconfig
21 %{?with_glib:Requires:  glib2 >= 1:2.4}
22 Obsoletes:      libfribidi0
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 %{?with_glib:Requires:  glib2-devel >= 1:2.4}
37 Obsoletes:      libfribidi0-devel
38
39 %description devel
40 The fribidi-devel package includes header files for the fribidi
41 package.
42
43 %description devel -l pl.UTF-8
44 Pliki programistyczne pozwalające na wykorzystywanie biblioteki
45 fribidi w swoim oprogramowaniu.
46
47 %package static
48 Summary:        Static FriBidi library
49 Summary(pl.UTF-8):      Biblioteka statyczna FriBidi
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static FriBidi library.
55
56 %description static -l pl.UTF-8
57 Biblioteka statyczna FriBidi.
58
59 %prep
60 %setup -q
61
62 %build
63 %{__libtoolize}
64 %{__aclocal}
65 %{__autoheader}
66 %{__autoconf}
67 %{__automake}
68 %configure \
69         --disable-silent-rules \
70         %{?with_static_libs:--enable-static} \
71         --with-glib%{!?with_glib:=no}
72
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %files
88 %defattr(644,root,root,755)
89 %doc AUTHORS ChangeLog NEWS README THANKS TODO
90 %attr(755,root,root) %{_bindir}/fribidi
91 %attr(755,root,root) %{_libdir}/libfribidi.so.*.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libfribidi.so.0
93
94 %files devel
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/libfribidi.so
97 %{_libdir}/libfribidi.la
98 %{_includedir}/fribidi
99 %{_pkgconfigdir}/fribidi.pc
100 %{_mandir}/man3/fribidi_*.3*
101
102 %if %{with static_libs}
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/libfribidi.a
106 %endif
This page took 0.099079 seconds and 3 git commands to generate.