]> git.pld-linux.org Git - packages/libsvgtiny.git/blame - libsvgtiny.spec
- updated to 0.1.4
[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
a274a010 6Summary(pl.UTF-8): Implementacja SVG Tiny
15dd05e4 7Name: libsvgtiny
adec9c79 8Version: 0.1.4
67941235 9Release: 1
15dd05e4 10License: MIT
11Group: Libraries
12Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
adec9c79 13# Source0-md5: c6a543fd9ec608d6e7c3af8285f9878f
15dd05e4 14URL: http://www.netsurf-browser.org/projects/libsvgtiny/
96a97d90 15BuildRequires: gperf
adec9c79
WF
16BuildRequires: libdom-devel >= 0.3.0
17BuildRequires: libwapcaplet-devel >= 0.3.0
18BuildRequires: netsurf-buildsystem >= 1.5
a274a010 19BuildRequires: pkgconfig
adec9c79
WF
20Requires: libdom >= 0.3.0
21Requires: libwapcaplet >= 0.3.0
15dd05e4 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Libsvgtiny is an implementation of SVG Tiny, written in C. It is
26currently in development for use with NetSurf and is intended to be
27suitable for use in other projects too.
28
29The overall idea of the library is to take some SVG as input, and
30return a list of paths and texts which can be rendered easily. The
31library does not do the actual rendering.
32
a274a010
JB
33%description -l pl.UTF-8
34Libsvgtiny to implementacja SVG Tiny napisana w C. Jest obecnie
35rozwijana do wykorzystania w ramach projektu NetSurf, ale także z
36myślą o możliwości użycia w innych projektach.
37
38Ogólna idea biblioteki polega na przyjęciu SVG na wejściu i zwróceniu
39listy ścieżek oraz tekstów, które można łatwo wyrenderować. Biblioteka
40nie wykonuje samego renderowania.
41
15dd05e4 42%package devel
43Summary: libsvgtiny library headers
44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsvgtiny
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
ff8fa3ac 47Requires: libdom-devel >= 0.1.2
15dd05e4 48
49%description devel
a274a010
JB
50This package contains the include files and other resources you can
51use to incorporate libsvgtiny into applications.
15dd05e4 52
53%description devel -l pl.UTF-8
54Pliki nagłówkowe pozwalające na używanie biblioteki libsvgtiny w
55swoich programach.
56
57%package static
a274a010
JB
58Summary: libsvgtiny static library
59Summary(pl.UTF-8): Statyczna biblioteka libsvgtiny
15dd05e4 60Group: Development/Libraries
61Requires: %{name}-devel = %{version}-%{release}
62
63%description static
a274a010 64This is package with static libsvgtiny library.
15dd05e4 65
66%description static -l pl.UTF-8
67Statyczna biblioteka libsvgtiny.
68
69%prep
70%setup -q
71
72%build
adec9c79 73export AR="%{__ar}"
85695d63
ER
74export CC="%{__cc}"
75export CFLAGS="%{rpmcflags}"
76export LDFLAGS="%{rpmldflags}"
77
a12eaeb7 78%{__make} -j1 \
a274a010 79 Q= \
85695d63 80 PREFIX=%{_prefix} \
a274a010 81 LIBDIR=%{_lib} \
85695d63 82 COMPONENT_TYPE=lib-shared
15dd05e4 83
15dd05e4 84%if %{with static_libs}
a12eaeb7 85%{__make} -j1 \
a274a010 86 Q= \
85695d63 87 PREFIX=%{_prefix} \
a274a010 88 LIBDIR=%{_lib} \
85695d63 89 COMPONENT_TYPE=lib-static
15dd05e4 90%endif
91
92%install
adec9c79
WF
93export AR="%{__ar}"
94export CC="%{__cc}"
95export CFLAGS="%{rpmcflags}"
96export LDFLAGS="%{rpmldflags}"
97
15dd05e4 98rm -rf $RPM_BUILD_ROOT
a12eaeb7 99%{__make} -j1 install \
a274a010 100 Q= \
15dd05e4 101 PREFIX=%{_prefix} \
a274a010 102 LIBDIR=%{_lib} \
15dd05e4 103 COMPONENT_TYPE=lib-shared \
85695d63 104 DESTDIR=$RPM_BUILD_ROOT
15dd05e4 105
106%if %{with static_libs}
a12eaeb7 107%{__make} -j1 install \
a274a010 108 Q= \
15dd05e4 109 PREFIX=%{_prefix} \
a274a010 110 LIBDIR=%{_lib} \
15dd05e4 111 COMPONENT_TYPE=lib-static \
85695d63 112 DESTDIR=$RPM_BUILD_ROOT
15dd05e4 113%endif
114
115%clean
116rm -rf $RPM_BUILD_ROOT
117
118%post -p /sbin/ldconfig
119%postun -p /sbin/ldconfig
120
121%files
122%defattr(644,root,root,755)
a274a010 123%doc README
0e8c2b5f 124%attr(755,root,root) %{_libdir}/libsvgtiny.so.*.*.*
a274a010 125%attr(755,root,root) %ghost %{_libdir}/libsvgtiny.so.0
15dd05e4 126
127%files devel
128%defattr(644,root,root,755)
a274a010 129%attr(755,root,root) %{_libdir}/libsvgtiny.so
0e8c2b5f
ER
130%{_includedir}/svgtiny.h
131%{_pkgconfigdir}/libsvgtiny.pc
15dd05e4 132
133%if %{with static_libs}
134%files static
135%defattr(644,root,root,755)
0e8c2b5f 136%{_libdir}/libsvgtiny.a
15dd05e4 137%endif
This page took 0.08591 seconds and 4 git commands to generate.