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