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: b4dd1cb5a36228604b6cf0f8c87fd6f8
14 Patch0: no-Werror.patch
15 URL: http://www.netsurf-browser.org/projects/libsvgtiny/
17 BuildRequires: libdom-devel >= 0.1.2
18 BuildRequires: libwapcaplet-devel >= 0.2.2
19 BuildRequires: netsurf-buildsystem >= 1.3
20 BuildRequires: pkgconfig
21 Requires: libdom >= 0.1.2
22 Requires: libwapcaplet >= 0.2.2
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
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.
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.
44 Summary: libsvgtiny library headers
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsvgtiny
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: libdom-devel >= 0.1.2
51 This package contains the include files and other resources you can
52 use to incorporate libsvgtiny into applications.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe pozwalające na używanie biblioteki libsvgtiny w
59 Summary: libsvgtiny static library
60 Summary(pl.UTF-8): Statyczna biblioteka libsvgtiny
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 This is package with static libsvgtiny library.
67 %description static -l pl.UTF-8
68 Statyczna biblioteka libsvgtiny.
76 export CFLAGS="%{rpmcflags}"
77 export LDFLAGS="%{rpmldflags}"
83 COMPONENT_TYPE=lib-shared
85 %if %{with static_libs}
90 COMPONENT_TYPE=lib-static
94 rm -rf $RPM_BUILD_ROOT
95 %{__make} -j1 install \
99 COMPONENT_TYPE=lib-shared \
100 DESTDIR=$RPM_BUILD_ROOT
102 %if %{with static_libs}
103 %{__make} -j1 install \
107 COMPONENT_TYPE=lib-static \
108 DESTDIR=$RPM_BUILD_ROOT
112 rm -rf $RPM_BUILD_ROOT
114 %post -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
118 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libsvgtiny.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libsvgtiny.so.0
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libsvgtiny.so
126 %{_includedir}/svgtiny.h
127 %{_pkgconfigdir}/libsvgtiny.pc
129 %if %{with static_libs}
131 %defattr(644,root,root,755)
132 %{_libdir}/libsvgtiny.a