]> git.pld-linux.org Git - packages/libsvgtiny.git/blame - libsvgtiny.spec
- up to 0.1.1
[packages/libsvgtiny.git] / libsvgtiny.spec
CommitLineData
15dd05e4 1#
2# Conditional build:
3%bcond_without static_libs # don't build static library
85695d63 4
15dd05e4 5Summary: Implementation of SVG Tiny
6Name: libsvgtiny
0d66f584 7Version: 0.1.1
15dd05e4 8Release: 1
9License: MIT
10Group: Libraries
11Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
0d66f584
WF
12# Source0-md5: 6e3da8ecfde7749852a66195ebea0de1
13#Patch0: lib.patch
15dd05e4 14URL: http://www.netsurf-browser.org/projects/libsvgtiny/
96a97d90 15BuildRequires: gperf
0d66f584
WF
16BuildRequires: libdom-devel >= 0.1.0
17BuildRequires: libwapcaplet-devel >= 0.2.1
18BuildRequires: netsurf-buildsystem >= 1.1
15dd05e4 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Libsvgtiny is an implementation of SVG Tiny, written in C. It is
23currently in development for use with NetSurf and is intended to be
24suitable for use in other projects too.
25
26The overall idea of the library is to take some SVG as input, and
27return a list of paths and texts which can be rendered easily. The
28library does not do the actual rendering.
29
30%package devel
31Summary: libsvgtiny library headers
32Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsvgtiny
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35
36%description devel
37This is the libraries, include files and other resources you can use
38to incorporate libsvgtiny into applications.
39
40%description devel -l pl.UTF-8
41Pliki nagłówkowe pozwalające na używanie biblioteki libsvgtiny w
42swoich programach.
43
44%package static
45Summary: libsvgtiny static libraries
46Summary(pl.UTF-8): Statyczne biblioteki libsvgtiny
47Group: Development/Libraries
48Requires: %{name}-devel = %{version}-%{release}
49
50%description static
51This is package with static libsvgtiny libraries.
52
53%description static -l pl.UTF-8
54Statyczna biblioteka libsvgtiny.
55
56%prep
57%setup -q
0d66f584 58#%%patch0 -p1
15dd05e4 59
60%build
85695d63
ER
61export CC="%{__cc}"
62export CFLAGS="%{rpmcflags}"
63export LDFLAGS="%{rpmldflags}"
64
65%{__make} Q= \
66 PREFIX=%{_prefix} \
67 COMPONENT_TYPE=lib-shared
15dd05e4 68
15dd05e4 69%if %{with static_libs}
85695d63
ER
70%{__make} Q= \
71 PREFIX=%{_prefix} \
72 COMPONENT_TYPE=lib-static
15dd05e4 73%endif
74
75%install
76rm -rf $RPM_BUILD_ROOT
85695d63 77%{__make} install Q= \
420228ae 78 lib=%{_lib} \
15dd05e4 79 PREFIX=%{_prefix} \
80 COMPONENT_TYPE=lib-shared \
85695d63 81 DESTDIR=$RPM_BUILD_ROOT
15dd05e4 82
83%if %{with static_libs}
85695d63 84%{__make} install Q= \
420228ae 85 lib=%{_lib} \
15dd05e4 86 PREFIX=%{_prefix} \
87 COMPONENT_TYPE=lib-static \
85695d63 88 DESTDIR=$RPM_BUILD_ROOT
15dd05e4 89%endif
90
91%clean
92rm -rf $RPM_BUILD_ROOT
93
94%post -p /sbin/ldconfig
95%postun -p /sbin/ldconfig
96
97%files
98%defattr(644,root,root,755)
0e8c2b5f
ER
99%attr(755,root,root) %{_libdir}/libsvgtiny.so.*.*.*
100%ghost %{_libdir}/libsvgtiny.so.0
15dd05e4 101
102%files devel
103%defattr(644,root,root,755)
0e8c2b5f
ER
104%{_libdir}/libsvgtiny.so
105%{_includedir}/svgtiny.h
106%{_pkgconfigdir}/libsvgtiny.pc
15dd05e4 107
108%if %{with static_libs}
109%files static
110%defattr(644,root,root,755)
0e8c2b5f 111%{_libdir}/libsvgtiny.a
15dd05e4 112%endif
This page took 0.155435 seconds and 4 git commands to generate.