~ubuntu-branches/ubuntu/utopic/inkscape/utopic-proposed

1.1.1 by Guido Guenther
Import upstream version 0.43
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'"
4
5
# To avoid stripping the binaries, you can also:
6
#  "--define '__spec_install_post /usr/lib/rpm/brp-compress'"
7
1 by Wolfram Quester
Import upstream version 0.38.1
8
Name:		inkscape
9
Summary:	A Vector Drawing Application
10
Version:	@VERSION@
1.1.1 by Guido Guenther
Import upstream version 0.43
11
# Use release "0" so that distro-released versions will override ours.
12
Release:	0
13
License:	GPL
1 by Wolfram Quester
Import upstream version 0.38.1
14
Group:		Applications/Graphics
1.1.1 by Guido Guenther
Import upstream version 0.43
15
Source:		%{name}-%{version}.tar.gz
1 by Wolfram Quester
Import upstream version 0.38.1
16
URL:		http://inkscape.sourceforge.net/
17
Prefix:		%{_prefix}
18
Packager:	Automatic
1.1.1 by Guido Guenther
Import upstream version 0.43
19
Vendor:		The Inkscape Project
1 by Wolfram Quester
Import upstream version 0.38.1
20
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
21
1.1.1 by Guido Guenther
Import upstream version 0.43
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.
1.1.2 by Martin Pitt
Import upstream version 0.44
25
BuildRequires:  atk-devel
26
BuildRequires:  desktop-file-utils
27
BuildRequires:  freetype-devel
1.1.8 by Kees Cook
Import upstream version 0.47~pre0
28
BuildRequires:  gc-devel >= 6.4
1.1.2 by Martin Pitt
Import upstream version 0.44
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
44
45
Provides:       perl(SpSVG)
46
Provides:       perl(SVG)
1.1.1 by Guido Guenther
Import upstream version 0.43
47
1 by Wolfram Quester
Import upstream version 0.38.1
48
%description
1.1.1 by Guido Guenther
Import upstream version 0.43
49
Inkscape is an SVG-based generic vector-drawing program for Linux/Unix/Windows/Mac.
1 by Wolfram Quester
Import upstream version 0.38.1
50
51
%prep
52
%setup
53
54
%build
55
### Needed for snapshot releases.
56
MYCFLAGS="$RPM_OPT_FLAGS"
57
1.1.1 by Guido Guenther
Import upstream version 0.43
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
63
	fi
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"
67
68
	export PATH PKG_CONFIG_PATH CPPFLAGS LDFLAGS
69
fi
70
1 by Wolfram Quester
Import upstream version 0.38.1
71
if [ ! -x configure ]; then
72
  CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%{_prefix} --localstatedir=%{_localstatedir} --sysconfdir=%{_sysconfdir}
73
else
74
  %configure 
75
fi
1.1.1 by Guido Guenther
Import upstream version 0.43
76
make %{?_smp_mflags}
1 by Wolfram Quester
Import upstream version 0.38.1
77
78
%install
79
rm -rf %{buildroot}
80
%makeinstall
81
82
%clean
83
rm -rf %{buildroot}
84
85
%files
86
%defattr(-, root, root)
1.1.1 by Guido Guenther
Import upstream version 0.43
87
%doc AUTHORS COPYING ChangeLog NEWS README doc/keys.html
1 by Wolfram Quester
Import upstream version 0.38.1
88
%{_bindir}/inkscape
89
%{_bindir}/inkview
90
%{_datadir}/applications/inkscape.desktop
91
%{_datadir}/locale/*/LC_MESSAGES/inkscape.mo
92
%{_datadir}/pixmaps/*
93
%{_datadir}/inkscape/*
1.1.1 by Guido Guenther
Import upstream version 0.43
94
%{_mandir}/*/man1/*
1 by Wolfram Quester
Import upstream version 0.38.1
95
%{_mandir}/man1/*
96
97
%changelog
1.1.2 by Martin Pitt
Import upstream version 0.44
98
* Wed Nov 30 2005 Daniil Ivanov <daniil.ivanov@gmail.com>
99
- Added BuildRequires and Provides
100
1.1.1 by Guido Guenther
Import upstream version 0.43
101
* Thu Jul  7 2005 Kees Cook <kees@outflux.net>
102
- Adjusted for plugin relocation
103
104
* Wed Nov 24 2004 Kees Cook <kees@outflux.net>
105
- Added SMP flags so I can build faster
106
- Added static build capability
107
108
* Sat Jul 17 2004 Bryce W. Harrington <bryce@bryceharrington.com>
109
- Removing _libdir and TODO, updating description
110
1 by Wolfram Quester
Import upstream version 0.38.1
111
* Thu May 01 2003 Christian Schaller <uraeus@gnome.org>
112
- Fix up the spec file for current release
113
114
* Mon Sep 23 2002 Dag Wieers <dag@wieers.com>
115
- Update to 0.2.6
116
117
* Thu Sep 12 2002 Dag Wieers <dag@wieers.com>
118
- Update to 0.2.5
119
- Changed SPEC to benefit from macros