3 %bcond_without static_libs # don't build static library
5 Summary: Implementation of SVG Tiny
6 Summary(pl.UTF-8): Implementacja SVG Tiny
12 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
13 # Source0-md5: c6a543fd9ec608d6e7c3af8285f9878f
14 URL: http://www.netsurf-browser.org/projects/libsvgtiny/
16 BuildRequires: libdom-devel >= 0.3.0
17 BuildRequires: libwapcaplet-devel >= 0.3.0
18 BuildRequires: netsurf-buildsystem >= 1.5
19 BuildRequires: pkgconfig
20 Requires: libdom >= 0.3.0
21 Requires: libwapcaplet >= 0.3.0
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
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.
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.
43 Summary: libsvgtiny library headers
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsvgtiny
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 Requires: libdom-devel >= 0.1.2
50 This package contains the include files and other resources you can
51 use to incorporate libsvgtiny into applications.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe pozwalające na używanie biblioteki libsvgtiny w
58 Summary: libsvgtiny static library
59 Summary(pl.UTF-8): Statyczna biblioteka libsvgtiny
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 This is package with static libsvgtiny library.
66 %description static -l pl.UTF-8
67 Statyczna biblioteka libsvgtiny.
75 export CFLAGS="%{rpmcflags}"
76 export LDFLAGS="%{rpmldflags}"
82 COMPONENT_TYPE=lib-shared
84 %if %{with static_libs}
89 COMPONENT_TYPE=lib-static
95 export CFLAGS="%{rpmcflags}"
96 export LDFLAGS="%{rpmldflags}"
98 rm -rf $RPM_BUILD_ROOT
99 %{__make} -j1 install \
103 COMPONENT_TYPE=lib-shared \
104 DESTDIR=$RPM_BUILD_ROOT
106 %if %{with static_libs}
107 %{__make} -j1 install \
111 COMPONENT_TYPE=lib-static \
112 DESTDIR=$RPM_BUILD_ROOT
116 rm -rf $RPM_BUILD_ROOT
118 %post -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
122 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libsvgtiny.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libsvgtiny.so.0
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/libsvgtiny.so
130 %{_includedir}/svgtiny.h
131 %{_pkgconfigdir}/libsvgtiny.pc
133 %if %{with static_libs}
135 %defattr(644,root,root,755)
136 %{_libdir}/libsvgtiny.a