]> git.pld-linux.org Git - packages/libcroco.git/blame - libcroco.spec
- updated to 0.6.13
[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
b08793b7 9Version: 0.6.13
9a9ef059 10Release: 1
ccd23b2d 11License: LGPL v2+
0705cedf 12Group: Libraries
f3fe32c8 13Source0: http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/%{name}-%{version}.tar.xz
b08793b7 14# Source0-md5: c80c5a8385011a0260dce6bd0da93dce
bc12deba
JB
15BuildRequires: autoconf >= 2.64
16BuildRequires: automake >= 1:1.13
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 86
5aab7c8d
TP
87%{__rm} $RPM_BUILD_ROOT%{_libdir}/libcroco*.la
88
0705cedf
JB
89%clean
90rm -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
This page took 0.104988 seconds and 4 git commands to generate.