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