1
# If you want to build an executable that uses static libraries,
2
# build your libraries in a separate root directory, and then run
3
# the rpmbuild using "--define 'ink_static_root /your/static/rootdir'"
5
# To avoid stripping the binaries, you can also:
6
# "--define '__spec_install_post /usr/lib/rpm/brp-compress'"
9
Summary: A Vector Drawing Application
11
# Use release "0" so that distro-released versions will override ours.
14
Group: Applications/Graphics
15
Source: %{name}-%{version}.tar.gz
16
URL: http://inkscape.sourceforge.net/
19
Vendor: The Inkscape Project
20
BuildRoot: %{_tmppath}/%{name}-%{version}-root
22
# See debian/control for a full list of requirements. Maybe someone using an
23
# rpm-based distribution would like to translate some or all of the Debian
24
# package names given in debian/control to rpm equivalent packages.
25
BuildRequires: atk-devel
26
BuildRequires: desktop-file-utils
27
BuildRequires: freetype-devel
28
BuildRequires: gc-devel
29
BuildRequires: gettext
30
BuildRequires: gtkmm24-devel
31
BuildRequires: libart_lgpl-devel >= 2.3.10
32
BuildRequires: libgnomeprintui22-devel >= 2.2.0
33
BuildRequires: gnome-vfs2-devel
34
BuildRequires: libpng-devel
35
BuildRequires: libsigc++20-devel
36
BuildRequires: libxml2-devel >= 2.4.24
37
BuildRequires: libxslt-devel
38
BuildRequires: pango-devel
39
BuildRequires: perl-XML-Parser
40
BuildRequires: pkgconfig
41
BuildRequires: python-devel
42
Requires(post): desktop-file-utils
43
Requires(postun): desktop-file-utils
49
Inkscape is an SVG-based generic vector-drawing program for Linux/Unix/Windows/Mac.
55
### Needed for snapshot releases.
56
MYCFLAGS="$RPM_OPT_FLAGS"
58
# Deal with static builds
59
if [ ! -z "%{?ink_static_root}" ]; then
60
PATH=/extra/static/bin:$PATH
61
if [ -z "$PKG_CONFIG_PATH" ]; then
62
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
64
PKG_CONFIG_PATH=%{ink_static_root}/lib/pkgconfig:$PKG_CONFIG_PATH
65
CPPFLAGS="-I%{ink_static_root}/include $CPPFLAGS"
66
LDFLAGS="-L%{ink_static_root}/lib $LDFLAGS"
68
export PATH PKG_CONFIG_PATH CPPFLAGS LDFLAGS
71
if [ ! -x configure ]; then
72
CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%{_prefix} --localstatedir=%{_localstatedir} --sysconfdir=%{_sysconfdir}
86
%defattr(-, root, root)
87
%doc AUTHORS COPYING ChangeLog NEWS README doc/keys.html
90
%{_datadir}/applications/inkscape.desktop
91
%{_datadir}/locale/*/LC_MESSAGES/inkscape.mo
93
%{_datadir}/inkscape/*
98
* Wed Nov 30 2005 Daniil Ivanov <daniil.ivanov@gmail.com>
99
- Added BuildRequires and Provides
101
* Thu Jul 7 2005 Kees Cook <kees@outflux.net>
102
- Adjusted for plugin relocation
104
* Wed Nov 24 2004 Kees Cook <kees@outflux.net>
105
- Added SMP flags so I can build faster
106
- Added static build capability
108
* Sat Jul 17 2004 Bryce W. Harrington <bryce@bryceharrington.com>
109
- Removing _libdir and TODO, updating description
111
* Thu May 01 2003 Christian Schaller <uraeus@gnome.org>
112
- Fix up the spec file for current release
114
* Mon Sep 23 2002 Dag Wieers <dag@wieers.com>
117
* Thu Sep 12 2002 Dag Wieers <dag@wieers.com>
119
- Changed SPEC to benefit from macros