- Update to newer SVN
- Drop upstreamed patched - Enable WordPerfect Graphics support - Enable embedded Perl scripting - Enable Imagemagick support - Disable OpenSSL due to licensing issues
This commit is contained in:
parent
7b5ec70df2
commit
ee72d7387c
114
inkscape.spec
114
inkscape.spec
@ -1,18 +1,14 @@
|
|||||||
Name: inkscape
|
Name: inkscape
|
||||||
Version: 0.47
|
Version: 0.47
|
||||||
Release: 0.2.20080814svn%{?dist}
|
Release: 0.2.20090105svn%{?dist}
|
||||||
Summary: Vector-based drawing program using SVG
|
Summary: Vector-based drawing program using SVG
|
||||||
|
|
||||||
Group: Applications/Productivity
|
Group: Applications/Productivity
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://inkscape.sourceforge.net/
|
URL: http://inkscape.sourceforge.net/
|
||||||
#Source0: http://download.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2
|
#Source0: http://download.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2
|
||||||
Source0: %{name}-0.46+devel.tar.gz
|
Source0: %{name}.tar.gz
|
||||||
Patch0: inkscape-0.46-cxxinclude.patch
|
Patch0: inkscape-0.46+devel-uniconv.patch
|
||||||
Patch1: inkscape-0.46+devel-desktop.patch
|
|
||||||
Patch2: inkscape-0.46+devel-icons.patch
|
|
||||||
Patch5: inkscape-0.46-gtk2.13.3.patch
|
|
||||||
Patch7: inkscape-0.46+devel-uniconv.patch
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
@ -31,27 +27,30 @@ BuildRequires: pango-devel
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: lcms-devel >= 1.13
|
BuildRequires: lcms-devel >= 1.13
|
||||||
BuildRequires: cairo-devel
|
BuildRequires: cairo-devel
|
||||||
BuildRequires: openssl-devel
|
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: perl-XML-Parser
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: poppler-devel
|
BuildRequires: poppler-devel
|
||||||
BuildRequires: loudmouth-devel
|
BuildRequires: loudmouth-devel
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
BuildRequires: gsl-devel
|
BuildRequires: gsl-devel
|
||||||
|
BuildRequires: libwpg-devel
|
||||||
# Use popt-devel if Fedora 8, RHEL 6, newer or unknown,
|
|
||||||
# rely on popt otherwise
|
|
||||||
%if %{!?fedora:8}%{?fedora} < 8 || %{!?rhel:6}%{?rhel} < 6
|
|
||||||
BuildRequires: popt
|
|
||||||
%else
|
|
||||||
BuildRequires: popt-devel
|
BuildRequires: popt-devel
|
||||||
%endif
|
BuildRequires: ImageMagick-c++-devel
|
||||||
|
BuildRequires: perl(XML::Parser)
|
||||||
|
BuildRequires: perl(ExtUtils::Embed)
|
||||||
|
|
||||||
|
# Incompatible license
|
||||||
|
BuildConflicts: openssl-devel
|
||||||
|
|
||||||
|
Requires: dia
|
||||||
Requires: pstoedit
|
Requires: pstoedit
|
||||||
|
Requires: ghostscript
|
||||||
Requires: perl(Image::Magick)
|
Requires: perl(Image::Magick)
|
||||||
|
Requires: tex(latex)
|
||||||
|
Requires: tex(dvips)
|
||||||
|
Requires: transfig
|
||||||
|
Requires: gimp
|
||||||
Requires: numpy
|
Requires: numpy
|
||||||
Requires: PyXML
|
|
||||||
Requires: python-lxml
|
Requires: python-lxml
|
||||||
Requires: uniconvertor
|
Requires: uniconvertor
|
||||||
|
|
||||||
@ -59,43 +58,43 @@ Requires(post): desktop-file-utils
|
|||||||
Requires(postun): desktop-file-utils
|
Requires(postun): desktop-file-utils
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Inkscape is a vector-based drawing program, like CorelDraw® or Adobe
|
Inkscape is a vector graphics editor, with capabilities similar to
|
||||||
Illustrator® from the proprietary software world, and Sketch or Karbon14 from
|
Illustrator, CorelDraw, or Xara X, using the W3C standard Scalable Vector
|
||||||
the free software world. It is free software, distributed under the terms of
|
Graphics (SVG) file format. It is therefore a very useful tool for web
|
||||||
the Gnu General Public License, Version 2.
|
designers and as an interchange format for desktop publishing.
|
||||||
|
|
||||||
Inkscape uses W3C SVG as its native file format. It is therefore a very useful
|
Inkscape supports many advanced SVG features (markers, clones, alpha
|
||||||
tool for web designers and as an interchange format for desktop publishing.
|
blending, etc.) and great care is taken in designing a streamlined
|
||||||
|
interface. It is very easy to edit nodes, perform complex path operations,
|
||||||
It has a relatively modern display engine, giving you finely antialiased
|
trace bitmaps and much more.
|
||||||
display, alpha transparencies, vector fonts and so on. Inkscape is written in
|
|
||||||
C and C++, using the Gtk+ toolkit and optionally some Gnome libraries.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-0.46+devel
|
%setup -q -n %{name}
|
||||||
%patch0 -p1 -b .cxxinclude
|
%patch0 -p1 -b .uniconv
|
||||||
%patch1 -p1 -b .desktop
|
|
||||||
%patch2 -p1 -b .icons
|
# https://bugs.launchpad.net/inkscape/+bug/314381
|
||||||
%patch5 -p1 -b .gtk2.13.3
|
# A couple of files have executable bits set,
|
||||||
%patch7 -p1 -b .uniconv
|
# despite not being executable
|
||||||
find -type f -regex '.*\.\(cpp\|h\)' -perm +111 -exec chmod -x {} ';'
|
(find . \( -name '*.cpp' -o -name '*.h' \) -perm +111
|
||||||
find share/extensions/ -type f -regex '.*\.py' -perm +111 -exec chmod -x {} ';'
|
find share/extensions -name '*.py' -perm +111
|
||||||
|
) |xargs chmod -x
|
||||||
|
|
||||||
|
# Fix end of line encodings
|
||||||
dos2unix -k -q share/extensions/*.py
|
dos2unix -k -q share/extensions/*.py
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--disable-dependency-tracking \
|
--with-python \
|
||||||
--with-xinerama \
|
--with-perl \
|
||||||
--enable-static=no \
|
--with-gnome-vfs \
|
||||||
--with-python \
|
--with-xft \
|
||||||
--with-perl \
|
--enable-inkboard \
|
||||||
--with-gnome-vfs \
|
--enable-lcms \
|
||||||
--with-inkjar \
|
--enable-poppler-cairo \
|
||||||
--enable-inkboard \
|
--disable-dependency-tracking
|
||||||
--enable-lcms \
|
|
||||||
--enable-poppler-cairo
|
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -103,15 +102,16 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
%find_lang %{name}
|
|
||||||
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/outline2svg.*
|
desktop-file-install --vendor fedora --delete-original \
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/txt2svg.*
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
||||||
|
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
desktop-file-install --vendor fedora --delete-original \
|
# No skencil yet
|
||||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
$RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/sk2svg.sh
|
||||||
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
|
||||||
|
%find_lang %{name}
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -131,13 +131,21 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
|||||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
||||||
%doc %{_mandir}/man1/*
|
%doc %{_mandir}/man1/*
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_datadir}/%{name}/
|
%{_datadir}/%{name}
|
||||||
%{_datadir}/applications/*.desktop
|
%{_datadir}/applications/*.desktop
|
||||||
%{_datadir}/pixmaps/*
|
%{_datadir}/pixmaps/*
|
||||||
%{_mandir}/fr/man1/*
|
%{_mandir}/fr/man1/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 06 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.47-0.3.20090105svn
|
||||||
|
- Update to newer SVN
|
||||||
|
- Drop upstreamed patched
|
||||||
|
- Enable WordPerfect Graphics support
|
||||||
|
- Enable embedded Perl scripting
|
||||||
|
- Enable Imagemagick support
|
||||||
|
- Disable OpenSSL due to licensing issues
|
||||||
|
|
||||||
* Thu Aug 14 2008 Lubomir Rintel <lkundrak@v3.sk> - 0.47-0.3.20080814svn
|
* Thu Aug 14 2008 Lubomir Rintel <lkundrak@v3.sk> - 0.47-0.3.20080814svn
|
||||||
- Update to today's SVN snapshot
|
- Update to today's SVN snapshot
|
||||||
- Drop the upstreamed poppler patch
|
- Drop the upstreamed poppler patch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user