3 %bcond_without static_libs # don't build static library
6 Summary: A CSS2 parsing library
7 Summary(pl.UTF-8): Biblioteka analizująca CSS2
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/%{name}-%{version}.tar.xz
14 # Source0-md5: bc2b2bb80f14e76caed4f76aa3a01070
15 BuildRequires: autoconf >= 2.5
16 BuildRequires: automake >= 1:1.9
17 BuildRequires: glib2-devel >= 1:2.12.0
18 BuildRequires: gtk-doc >= 1.0
19 BuildRequires: gtk-doc-automake >= 1.0
20 BuildRequires: libtool >= 2:2.0
21 BuildRequires: libxml2-devel >= 1:2.6.26
22 BuildRequires: pkgconfig >= 1:0.8
23 BuildRequires: tar >= 1:1.22
25 Requires: glib2 >= 1:2.12.0
26 Requires: libxml2 >= 1:2.6.26
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 CSS2 parsing and manipulation library for GNOME.
32 %description -l pl.UTF-8
33 Biblioteka analizująca i obrabiająca CSS2 dla GNOME.
36 Summary: Header files for developing with libcroco
37 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów używających libcroco
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: glib2-devel >= 1:2.12.0
41 Requires: libxml2-devel >= 1:2.6.26
44 This package provides the necessary header files files to allow you to
45 develop with libcroco.
47 %description devel -l pl.UTF-8
48 Ten pakiet dostarcza pliki nagłówkowe potrzebne do tworzenia
49 oprogramowania korzystającego z libcroco.
52 Summary: Static version of libcroco library
53 Summary(pl.UTF-8): Statyczna wersja biblioteki libcroco
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 Static version of libcroco library.
60 %description static -l pl.UTF-8
61 Statyczna wersja biblioteki libcroco.
73 --disable-silent-rules \
74 %{!?with_static_libs:--disable-static} \
75 --with-html-dir=%{_gtkdocdir}
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83 DESTDIR=$RPM_BUILD_ROOT
85 install docs/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog NEWS README TODO
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
103 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_bindir}/croco-%{mver}-config
106 %attr(755,root,root) %{_libdir}/libcroco-%{mver}.so
107 %{_includedir}/libcroco-%{mver}
108 %{_pkgconfigdir}/libcroco-%{mver}.pc
109 %{_examplesdir}/%{name}-%{version}
110 %{_gtkdocdir}/libcroco
112 %if %{with static_libs}
114 %defattr(644,root,root,755)
115 %{_libdir}/libcroco-%{mver}.a