]> git.pld-linux.org Git - packages/libcroco.git/blame - libcroco.spec
- updated to 0.6.5
[packages/libcroco.git] / libcroco.spec
CommitLineData
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 6Summary: A CSS2 parsing library
5428f5f6 7Summary(pl.UTF-8): Biblioteka analizująca CSS2
0705cedf 8Name: libcroco
725c7d08 9Version: 0.6.5
ccd23b2d
MB
10Release: 1
11License: LGPL v2+
0705cedf 12Group: Libraries
f3fe32c8 13Source0: http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/%{name}-%{version}.tar.xz
725c7d08 14# Source0-md5: d4d6313dd1c347d8a22addb240300338
8e9f718c 15BuildRequires: autoconf >= 2.5
f3fe32c8 16BuildRequires: automake >= 1:1.9
a32e02b0 17BuildRequires: glib2-devel >= 1:2.12.0
f3fe32c8
JB
18BuildRequires: gtk-doc >= 1.0
19BuildRequires: gtk-doc-automake >= 1.0
a5eb14f1 20BuildRequires: libtool >= 2:2.0
a32e02b0 21BuildRequires: libxml2-devel >= 1:2.6.26
cd60c3cd 22BuildRequires: pkgconfig >= 1:0.8
f3fe32c8
JB
23BuildRequires: tar >= 1:1.22
24BuildRequires: xz
a32e02b0 25Requires: glib2 >= 1:2.12.0
26Requires: libxml2 >= 1:2.6.26
0705cedf
JB
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30CSS2 parsing and manipulation library for GNOME.
31
9ad04c35
JR
32%description -l pl.UTF-8
33Biblioteka analizująca i obrabiająca CSS2 dla GNOME.
0705cedf
JB
34
35%package devel
36Summary: Header files for developing with libcroco
5428f5f6 37Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów używających libcroco
0705cedf 38Group: Development/Libraries
b867a0df 39Requires: %{name} = %{version}-%{release}
a32e02b0 40Requires: glib2-devel >= 1:2.12.0
41Requires: libxml2-devel >= 1:2.6.26
0705cedf
JB
42
43%description devel
ccd23b2d
MB
44This package provides the necessary header files files to allow you to
45develop with libcroco.
0705cedf 46
9ad04c35
JR
47%description devel -l pl.UTF-8
48Ten pakiet dostarcza pliki nagłówkowe potrzebne do tworzenia
49oprogramowania korzystającego z libcroco.
0705cedf
JB
50
51%package static
52Summary: Static version of libcroco library
5428f5f6 53Summary(pl.UTF-8): Statyczna wersja biblioteki libcroco
0705cedf 54Group: Development/Libraries
f6b7fc84 55Requires: %{name}-devel = %{version}-%{release}
0705cedf
JB
56
57%description static
58Static version of libcroco library.
59
9ad04c35 60%description static -l pl.UTF-8
0705cedf
JB
61Statyczna 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
79rm -rf $RPM_BUILD_ROOT
ccd23b2d 80install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
0705cedf
JB
81
82%{__make} install \
83 DESTDIR=$RPM_BUILD_ROOT
84
8e9f718c 85install docs/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
0705cedf
JB
86
87%clean
88rm -rf $RPM_BUILD_ROOT
89
90%post -p /sbin/ldconfig
91%postun -p /sbin/ldconfig
92
93%files
94%defattr(644,root,root,755)
95%doc AUTHORS ChangeLog NEWS README TODO
a5eb14f1
JB
96%attr(755,root,root) %{_bindir}/csslint-%{mver}
97%attr(755,root,root) %{_libdir}/libcroco-%{mver}.so.*.*.*
98%attr(755,root,root) %ghost %{_libdir}/libcroco-%{mver}.so.3
0705cedf
JB
99
100%files devel
101%defattr(644,root,root,755)
102%doc docs/usage.txt
a5eb14f1
JB
103%attr(755,root,root) %{_bindir}/croco-%{mver}-config
104%attr(755,root,root) %{_libdir}/libcroco-%{mver}.so
105%{_libdir}/libcroco-%{mver}.la
106%{_includedir}/libcroco-%{mver}
107%{_pkgconfigdir}/libcroco-%{mver}.pc
0705cedf 108%{_examplesdir}/%{name}-%{version}
f3fe32c8 109%{_gtkdocdir}/libcroco
0705cedf 110
94528401 111%if %{with static_libs}
0705cedf
JB
112%files static
113%defattr(644,root,root,755)
a5eb14f1 114%{_libdir}/libcroco-%{mver}.a
94528401 115%endif
This page took 0.079308 seconds and 4 git commands to generate.