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: 6e3da8ecfde7749852a66195ebea0de1
14 URL: http://www.netsurf-browser.org/projects/libsvgtiny/
16 BuildRequires: libdom-devel >= 0.1.0
17 BuildRequires: libwapcaplet-devel >= 0.2.1
18 BuildRequires: netsurf-buildsystem >= 1.1
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Libsvgtiny is an implementation of SVG Tiny, written in C. It is
23 currently in development for use with NetSurf and is intended to be
24 suitable for use in other projects too.
26 The overall idea of the library is to take some SVG as input, and
27 return a list of paths and texts which can be rendered easily. The
28 library does not do the actual rendering.
31 Summary: libsvgtiny library headers
32 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsvgtiny
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
37 This is the libraries, include files and other resources you can use
38 to incorporate libsvgtiny into applications.
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe pozwalające na używanie biblioteki libsvgtiny w
45 Summary: libsvgtiny static libraries
46 Summary(pl.UTF-8): Statyczne biblioteki libsvgtiny
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}-%{release}
51 This is package with static libsvgtiny libraries.
53 %description static -l pl.UTF-8
54 Statyczna biblioteka libsvgtiny.
62 export CFLAGS="%{rpmcflags}"
63 export LDFLAGS="%{rpmldflags}"
67 COMPONENT_TYPE=lib-shared
69 %if %{with static_libs}
72 COMPONENT_TYPE=lib-static
76 rm -rf $RPM_BUILD_ROOT
77 %{__make} install Q= \
80 COMPONENT_TYPE=lib-shared \
81 DESTDIR=$RPM_BUILD_ROOT
83 %if %{with static_libs}
84 %{__make} install Q= \
87 COMPONENT_TYPE=lib-static \
88 DESTDIR=$RPM_BUILD_ROOT
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libsvgtiny.so.*.*.*
100 %ghost %{_libdir}/libsvgtiny.so.0
103 %defattr(644,root,root,755)
104 %{_libdir}/libsvgtiny.so
105 %{_includedir}/svgtiny.h
106 %{_pkgconfigdir}/libsvgtiny.pc
108 %if %{with static_libs}
110 %defattr(644,root,root,755)
111 %{_libdir}/libsvgtiny.a