rebuilt with libtk 8.6 and python-Pillow-devel [release 0.6.17-3mamba;Fri Sep 26 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 17:52:03 +01:00
parent 8082f833d9
commit 858a55f46d
2 changed files with 36 additions and 6 deletions

View File

@ -0,0 +1,22 @@
--- skencil-0.6.17/Pax/paxmodule.c.orig 2014-09-26 22:52:15.875429070 +0200
+++ skencil-0.6.17/Pax/paxmodule.c 2014-09-26 22:51:29.252433084 +0200
@@ -9,7 +9,7 @@
8.4 and earlier versions. Once Tcl releases before 8.4 don't need to
be supported anymore, this should go. */
#define USE_COMPAT_CONST
-
+#define USE_INTERP_RESULT
#include <tcl.h>
#include <tk.h>
--- skencil-0.6.17/Pax/paxtkinter.c.orig 2014-09-26 22:55:23.146412948 +0200
+++ skencil-0.6.17/Pax/paxtkinter.c 2014-09-26 22:55:59.533409815 +0200
@@ -108,7 +108,7 @@
8.4 and earlier versions. Once Tcl releases before 8.4 don't need to
be supported anymore, this should go. */
#define USE_COMPAT_CONST
-
+#define USE_INTERP_RESULT 1
#include <tcl.h>
#include <tk.h>

View File

@ -1,6 +1,6 @@
Name: skencil
Version: 0.6.17
Release: 2mamba
Release: 3mamba
Summary: An interactive vector drawing appliction
Group: Graphical Desktop/Applications/Graphics
Vendor: openmamba
@ -8,22 +8,26 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.skencil.org
Source: http://kent.dl.sourceforge.net/sourceforge/sketch/skencil-%{version}.tar.gz
Patch0: skencil-0.6.17-libtcl-8.6.patch
License: LGPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libtcl
BuildRequires: libtk
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libtcl-devel
BuildRequires: libtk-devel
## AUTOBUILDREQ-END
BuildRequires: python-Imaging >= 1.1.6
BuildRequires: python-Pillow
%description
Skencil is a Free Software interactive vector drawing appliction. Known to run on GNU/Linux and other UNIX-compatible systems, it is a flexible and powerful tool for illustrations, diagrams and other purposes.
%prep
%setup -q
%patch0 -p1
TKVER=`pkg-config --modversion tk | cut -d. -f1-2`
sed -i "s|8\.4|${TKVER}|" setup.py
%build
./setup.py configure
@ -33,7 +37,8 @@ BLDSHARED='gcc -shared' ./setup.py build
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
--dest-dir="%{buildroot}" \
--prefix=%{_prefix}
--prefix=%{_prefix} \
--tk-flags="`pkg-config --libs tk`"
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -48,9 +53,12 @@ BLDSHARED='gcc -shared' ./setup.py build
%{_bindir}/skshow
%dir %{_libdir}/skencil-%{version}
%{_libdir}/skencil-%{version}/*
%doc BUGS COPYING CREDITS NEWS README TODO
%doc COPYING CREDITS BUGS NEWS README TODO
%changelog
* Fri Sep 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.17-3mamba
- rebuilt with libtk 8.6 and python-Pillow-devel
* Wed Dec 10 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.17-2mamba
- specfile updated