]>
Commit | Line | Data |
---|---|---|
22d89475 | 1 | # |
67f0fbb0 | 2 | # Conditional build: |
94528401 | 3 | %bcond_without static_libs # don't build static library |
65ab5ae0 | 4 | |
a5eb14f1 | 5 | %define mver 0.6 |
0705cedf | 6 | Summary: A CSS2 parsing library |
5428f5f6 | 7 | Summary(pl.UTF-8): Biblioteka analizująca CSS2 |
0705cedf | 8 | Name: libcroco |
b08793b7 | 9 | Version: 0.6.13 |
9a9ef059 | 10 | Release: 1 |
ccd23b2d | 11 | License: LGPL v2+ |
0705cedf | 12 | Group: Libraries |
f3fe32c8 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/%{name}-%{version}.tar.xz |
b08793b7 | 14 | # Source0-md5: c80c5a8385011a0260dce6bd0da93dce |
bc12deba JB |
15 | BuildRequires: autoconf >= 2.64 |
16 | BuildRequires: automake >= 1:1.13 | |
a32e02b0 | 17 | BuildRequires: glib2-devel >= 1:2.12.0 |
f3fe32c8 JB |
18 | BuildRequires: gtk-doc >= 1.0 |
19 | BuildRequires: gtk-doc-automake >= 1.0 | |
a5eb14f1 | 20 | BuildRequires: libtool >= 2:2.0 |
a32e02b0 | 21 | BuildRequires: libxml2-devel >= 1:2.6.26 |
cd60c3cd | 22 | BuildRequires: pkgconfig >= 1:0.8 |
f3fe32c8 JB |
23 | BuildRequires: tar >= 1:1.22 |
24 | BuildRequires: xz | |
a32e02b0 | 25 | Requires: glib2 >= 1:2.12.0 |
26 | Requires: libxml2 >= 1:2.6.26 | |
0705cedf JB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | CSS2 parsing and manipulation library for GNOME. | |
31 | ||
9ad04c35 JR |
32 | %description -l pl.UTF-8 |
33 | Biblioteka analizująca i obrabiająca CSS2 dla GNOME. | |
0705cedf JB |
34 | |
35 | %package devel | |
36 | Summary: Header files for developing with libcroco | |
5428f5f6 | 37 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów używających libcroco |
0705cedf | 38 | Group: Development/Libraries |
b867a0df | 39 | Requires: %{name} = %{version}-%{release} |
a32e02b0 | 40 | Requires: glib2-devel >= 1:2.12.0 |
41 | Requires: libxml2-devel >= 1:2.6.26 | |
0705cedf JB |
42 | |
43 | %description devel | |
ccd23b2d MB |
44 | This package provides the necessary header files files to allow you to |
45 | develop with libcroco. | |
0705cedf | 46 | |
9ad04c35 JR |
47 | %description devel -l pl.UTF-8 |
48 | Ten pakiet dostarcza pliki nagłówkowe potrzebne do tworzenia | |
49 | oprogramowania korzystającego z libcroco. | |
0705cedf JB |
50 | |
51 | %package static | |
52 | Summary: Static version of libcroco library | |
5428f5f6 | 53 | Summary(pl.UTF-8): Statyczna wersja biblioteki libcroco |
0705cedf | 54 | Group: Development/Libraries |
f6b7fc84 | 55 | Requires: %{name}-devel = %{version}-%{release} |
0705cedf JB |
56 | |
57 | %description static | |
58 | Static version of libcroco library. | |
59 | ||
9ad04c35 | 60 | %description static -l pl.UTF-8 |
0705cedf JB |
61 | Statyczna wersja biblioteki libcroco. |
62 | ||
63 | %prep | |
64 | %setup -q | |
0705cedf JB |
65 | |
66 | %build | |
8e9f718c JB |
67 | %{__libtoolize} |
68 | %{__aclocal} | |
69 | %{__autoconf} | |
70 | %{__autoheader} | |
71 | %{__automake} | |
94528401 | 72 | %configure \ |
a5eb14f1 | 73 | --disable-silent-rules \ |
f3fe32c8 JB |
74 | %{!?with_static_libs:--disable-static} \ |
75 | --with-html-dir=%{_gtkdocdir} | |
0705cedf JB |
76 | %{__make} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
ccd23b2d | 80 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
0705cedf JB |
81 | |
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
8e9f718c | 85 | install docs/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
0705cedf | 86 | |
5aab7c8d TP |
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcroco*.la |
88 | ||
0705cedf JB |
89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS ChangeLog NEWS README TODO | |
a5eb14f1 JB |
98 | %attr(755,root,root) %{_bindir}/csslint-%{mver} |
99 | %attr(755,root,root) %{_libdir}/libcroco-%{mver}.so.*.*.* | |
100 | %attr(755,root,root) %ghost %{_libdir}/libcroco-%{mver}.so.3 | |
0705cedf JB |
101 | |
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %doc docs/usage.txt | |
a5eb14f1 JB |
105 | %attr(755,root,root) %{_bindir}/croco-%{mver}-config |
106 | %attr(755,root,root) %{_libdir}/libcroco-%{mver}.so | |
a5eb14f1 JB |
107 | %{_includedir}/libcroco-%{mver} |
108 | %{_pkgconfigdir}/libcroco-%{mver}.pc | |
0705cedf | 109 | %{_examplesdir}/%{name}-%{version} |
f3fe32c8 | 110 | %{_gtkdocdir}/libcroco |
0705cedf | 111 | |
94528401 | 112 | %if %{with static_libs} |
0705cedf JB |
113 | %files static |
114 | %defattr(644,root,root,755) | |
a5eb14f1 | 115 | %{_libdir}/libcroco-%{mver}.a |
94528401 | 116 | %endif |