]>
Commit | Line | Data |
---|---|---|
15dd05e4 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
85695d63 | 4 | |
15dd05e4 | 5 | Summary: Implementation of SVG Tiny |
a274a010 | 6 | Summary(pl.UTF-8): Implementacja SVG Tiny |
15dd05e4 | 7 | Name: libsvgtiny |
5f6ffbcb | 8 | Version: 0.1.6 |
67941235 | 9 | Release: 1 |
15dd05e4 | 10 | License: MIT |
11 | Group: Libraries | |
12 | Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz | |
5f6ffbcb | 13 | # Source0-md5: a24aec7a319f34d28d7be6ddd3bed1cc |
15dd05e4 | 14 | URL: http://www.netsurf-browser.org/projects/libsvgtiny/ |
96a97d90 | 15 | BuildRequires: gperf |
5f6ffbcb | 16 | BuildRequires: libdom-devel >= 0.3.2 |
40317f03 | 17 | BuildRequires: libwapcaplet-devel >= 0.4.0 |
5f6ffbcb | 18 | BuildRequires: netsurf-buildsystem >= 1.6 |
a274a010 | 19 | BuildRequires: pkgconfig |
5f6ffbcb | 20 | Requires: libdom >= 0.3.2 |
6c05dd2b | 21 | Requires: libwapcaplet >= 0.4.0 |
15dd05e4 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Libsvgtiny is an implementation of SVG Tiny, written in C. It is | |
26 | currently in development for use with NetSurf and is intended to be | |
27 | suitable for use in other projects too. | |
28 | ||
29 | The overall idea of the library is to take some SVG as input, and | |
30 | return a list of paths and texts which can be rendered easily. The | |
31 | library does not do the actual rendering. | |
32 | ||
a274a010 JB |
33 | %description -l pl.UTF-8 |
34 | Libsvgtiny to implementacja SVG Tiny napisana w C. Jest obecnie | |
35 | rozwijana do wykorzystania w ramach projektu NetSurf, ale także z | |
36 | myślą o możliwości użycia w innych projektach. | |
37 | ||
38 | Ogólna idea biblioteki polega na przyjęciu SVG na wejściu i zwróceniu | |
39 | listy ścieżek oraz tekstów, które można łatwo wyrenderować. Biblioteka | |
40 | nie wykonuje samego renderowania. | |
41 | ||
15dd05e4 | 42 | %package devel |
43 | Summary: libsvgtiny library headers | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsvgtiny | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
6c05dd2b | 47 | Requires: libdom-devel >= 0.3.1 |
15dd05e4 | 48 | |
49 | %description devel | |
a274a010 JB |
50 | This package contains the include files and other resources you can |
51 | use to incorporate libsvgtiny into applications. | |
15dd05e4 | 52 | |
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe pozwalające na używanie biblioteki libsvgtiny w | |
55 | swoich programach. | |
56 | ||
57 | %package static | |
a274a010 JB |
58 | Summary: libsvgtiny static library |
59 | Summary(pl.UTF-8): Statyczna biblioteka libsvgtiny | |
15dd05e4 | 60 | Group: Development/Libraries |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
a274a010 | 64 | This is package with static libsvgtiny library. |
15dd05e4 | 65 | |
66 | %description static -l pl.UTF-8 | |
67 | Statyczna biblioteka libsvgtiny. | |
68 | ||
69 | %prep | |
70 | %setup -q | |
71 | ||
72 | %build | |
adec9c79 | 73 | export AR="%{__ar}" |
85695d63 ER |
74 | export CC="%{__cc}" |
75 | export CFLAGS="%{rpmcflags}" | |
76 | export LDFLAGS="%{rpmldflags}" | |
77 | ||
a12eaeb7 | 78 | %{__make} -j1 \ |
a274a010 | 79 | Q= \ |
85695d63 | 80 | PREFIX=%{_prefix} \ |
a274a010 | 81 | LIBDIR=%{_lib} \ |
85695d63 | 82 | COMPONENT_TYPE=lib-shared |
15dd05e4 | 83 | |
15dd05e4 | 84 | %if %{with static_libs} |
a12eaeb7 | 85 | %{__make} -j1 \ |
a274a010 | 86 | Q= \ |
85695d63 | 87 | PREFIX=%{_prefix} \ |
a274a010 | 88 | LIBDIR=%{_lib} \ |
85695d63 | 89 | COMPONENT_TYPE=lib-static |
15dd05e4 | 90 | %endif |
91 | ||
92 | %install | |
4ef996f8 JB |
93 | rm -rf $RPM_BUILD_ROOT |
94 | ||
adec9c79 WF |
95 | export AR="%{__ar}" |
96 | export CC="%{__cc}" | |
97 | export CFLAGS="%{rpmcflags}" | |
98 | export LDFLAGS="%{rpmldflags}" | |
99 | ||
a12eaeb7 | 100 | %{__make} -j1 install \ |
a274a010 | 101 | Q= \ |
15dd05e4 | 102 | PREFIX=%{_prefix} \ |
a274a010 | 103 | LIBDIR=%{_lib} \ |
15dd05e4 | 104 | COMPONENT_TYPE=lib-shared \ |
85695d63 | 105 | DESTDIR=$RPM_BUILD_ROOT |
15dd05e4 | 106 | |
107 | %if %{with static_libs} | |
a12eaeb7 | 108 | %{__make} -j1 install \ |
a274a010 | 109 | Q= \ |
15dd05e4 | 110 | PREFIX=%{_prefix} \ |
a274a010 | 111 | LIBDIR=%{_lib} \ |
15dd05e4 | 112 | COMPONENT_TYPE=lib-static \ |
85695d63 | 113 | DESTDIR=$RPM_BUILD_ROOT |
15dd05e4 | 114 | %endif |
115 | ||
116 | %clean | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %post -p /sbin/ldconfig | |
120 | %postun -p /sbin/ldconfig | |
121 | ||
122 | %files | |
123 | %defattr(644,root,root,755) | |
a274a010 | 124 | %doc README |
0e8c2b5f | 125 | %attr(755,root,root) %{_libdir}/libsvgtiny.so.*.*.* |
a274a010 | 126 | %attr(755,root,root) %ghost %{_libdir}/libsvgtiny.so.0 |
15dd05e4 | 127 | |
128 | %files devel | |
129 | %defattr(644,root,root,755) | |
a274a010 | 130 | %attr(755,root,root) %{_libdir}/libsvgtiny.so |
0e8c2b5f ER |
131 | %{_includedir}/svgtiny.h |
132 | %{_pkgconfigdir}/libsvgtiny.pc | |
15dd05e4 | 133 | |
134 | %if %{with static_libs} | |
135 | %files static | |
136 | %defattr(644,root,root,755) | |
0e8c2b5f | 137 | %{_libdir}/libsvgtiny.a |
15dd05e4 | 138 | %endif |