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
14 URL: http://www.netsurf-browser.org/projects/libsvgtiny/
15 BuildRequires: libdom-devel >= 0.0.1
16 BuildRequires: libwapcaplet-devel >= 0.2.0
17 BuildRequires: netsurf-buildsystem
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Libsvgtiny is an implementation of SVG Tiny, written in C. It is
22 currently in development for use with NetSurf and is intended to be
23 suitable for use in other projects too.
25 The overall idea of the library is to take some SVG as input, and
26 return a list of paths and texts which can be rendered easily. The
27 library does not do the actual rendering.
30 Summary: libsvgtiny library headers
31 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsvgtiny
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 This is the libraries, include files and other resources you can use
37 to incorporate libsvgtiny into applications.
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe pozwalające na używanie biblioteki libsvgtiny w
44 Summary: libsvgtiny static libraries
45 Summary(pl.UTF-8): Statyczne biblioteki libsvgtiny
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{version}-%{release}
50 This is package with static libsvgtiny libraries.
52 %description static -l pl.UTF-8
53 Statyczna biblioteka libsvgtiny.
61 export CFLAGS="%{rpmcflags}"
62 export LDFLAGS="%{rpmldflags}"
66 COMPONENT_TYPE=lib-shared
68 %if %{with static_libs}
71 COMPONENT_TYPE=lib-static
75 rm -rf $RPM_BUILD_ROOT
76 %{__make} install Q= \
79 COMPONENT_TYPE=lib-shared \
80 DESTDIR=$RPM_BUILD_ROOT
82 %if %{with static_libs}
83 %{__make} install Q= \
86 COMPONENT_TYPE=lib-static \
87 DESTDIR=$RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/lib*.so
106 %if %{with static_libs}
108 %defattr(644,root,root,755)