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