[packages/GTLDesigner] - added update patch (update for current OpenGTL API) - finished package
qboosh
qboosh at pld-linux.org
Mon Nov 11 15:59:00 CET 2013
commit 8127a28225ab87e44a69287cfeda3f59edb62b8c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Nov 11 15:59:24 2013 +0100
- added update patch (update for current OpenGTL API)
- finished package
GTLDesigner-update.patch | 13 +++++++++++++
GTLDesigner.spec | 13 ++++++++++---
2 files changed, 23 insertions(+), 3 deletions(-)
---
diff --git a/GTLDesigner.spec b/GTLDesigner.spec
index fb0fc65..ce117ae 100644
--- a/GTLDesigner.spec
+++ b/GTLDesigner.spec
@@ -2,11 +2,12 @@ Summary: Graphics Transfomation Languages Designer
Summary(pl.UTF-8): Narzędzie do projektowania dla języków przekształceń graficznych GTL
Name: GTLDesigner
Version: 0.9.2
-Release: 0.1
+Release: 1
License: LGPL v2.1+
Group: X11/Applications/Graphics
Source0: http://download.opengtl.org/%{name}-%{version}.tar.bz2
# Source0-md5: 4a7457531e10831d4b41bc4d8a3ed1a6
+Patch0: %{name}-update.patch
URL: http://opengtl.org/
BuildRequires: QtCore-devel >= 4
BuildRequires: QtGui-devel >= 4
@@ -27,6 +28,7 @@ Narzędzie do projektowania dla języków przekształceń graficznych GTL.
%prep
%setup -q
+%patch0 -p1
%build
install -d build
@@ -41,13 +43,18 @@ rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
+%find_lang gtldesigner --with-kde
+
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%files
+%files -f gtldesigner.lang
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gtldesigner
-%{_desktopdir}/gtldesigner.desktop
+%{_datadir}/apps/gtldesigner
+%{_datadir}/config.kcfg/gtldesigner.kcfg
+%{_desktopdir}/kde4/gtldesigner.desktop
+%{_iconsdir}/hicolor/*x*/apps/gtldesigner.png
diff --git a/GTLDesigner-update.patch b/GTLDesigner-update.patch
new file mode 100644
index 0000000..fe5044b
--- /dev/null
+++ b/GTLDesigner-update.patch
@@ -0,0 +1,13 @@
+--- GTLDesigner-0.9.2/src/gtldesigner.cpp.orig 2010-02-23 17:30:57.000000000 +0100
++++ GTLDesigner-0.9.2/src/gtldesigner.cpp 2013-11-11 15:04:39.807759945 +0100
+@@ -313,8 +313,8 @@
+ inputDOD.push_back( region );
+ }
+ OpenShiva::Kernel* kernel = new OpenShiva::Kernel(4);
+- if( maxHeight != -1 ) kernel->setHint(OpenShiva::Kernel::IMAGE_HEIGHT, GTLCore::Value((float)maxHeight));
+- if( maxWidth != -1 ) kernel->setHint(OpenShiva::Kernel::IMAGE_WIDTH, GTLCore::Value((float)maxWidth));
++ if( maxHeight != -1 ) kernel->setParameter(OpenShiva::Kernel::IMAGE_HEIGHT, GTLCore::Value((float)maxHeight));
++ if( maxWidth != -1 ) kernel->setParameter(OpenShiva::Kernel::IMAGE_WIDTH, GTLCore::Value((float)maxWidth));
+ kernel->setSource(m_document->text().toAscii().data());
+ kernel->compile();
+ if(kernel->isCompiled())
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/GTLDesigner.git/commitdiff/8127a28225ab87e44a69287cfeda3f59edb62b8c
More information about the pld-cvs-commit
mailing list