3 %bcond_without static_libs # don't build static library
5 Summary: Implementation of SVG Tiny
11 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
12 # Source0-md5: b1da875a8cfa4e005bb74c6aac62baf1
13 URL: http://www.netsurf-browser.org/projects/libsvgtiny/
14 BuildRequires: libdom-devel >= 0.0.1
15 BuildRequires: libwapcaplet-devel >= 0.2.0
16 BuildRequires: netsurf-buildsystem
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Libsvgtiny is an implementation of SVG Tiny, written in C. It is
21 currently in development for use with NetSurf and is intended to be
22 suitable for use in other projects too.
24 The overall idea of the library is to take some SVG as input, and
25 return a list of paths and texts which can be rendered easily. The
26 library does not do the actual rendering.
29 Summary: libsvgtiny library headers
30 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsvgtiny
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
35 This is the libraries, include files and other resources you can use
36 to incorporate libsvgtiny into applications.
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe pozwalające na używanie biblioteki libsvgtiny w
43 Summary: libsvgtiny static libraries
44 Summary(pl.UTF-8): Statyczne biblioteki libsvgtiny
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 This is package with static libsvgtiny libraries.
51 %description static -l pl.UTF-8
52 Statyczna biblioteka libsvgtiny.
59 LDFLAGS="%{rpmldflags}"
63 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q='' \
65 %if %{with static_libs}
66 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static Q='' \
71 rm -rf $RPM_BUILD_ROOT
74 DESTDIR=$RPM_BUILD_ROOT \
76 COMPONENT_TYPE=lib-shared \
79 %if %{with static_libs}
81 DESTDIR=$RPM_BUILD_ROOT \
83 COMPONENT_TYPE=lib-static \
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/lib*.so
103 %if %{with static_libs}
105 %defattr(644,root,root,755)