[packages/qimageblitz5] - new, qimageblitz built for Qt5, packaged with "5" suffix
qboosh
qboosh at pld-linux.org
Sun May 26 18:16:48 CEST 2019
commit 4329092f6c85429b6bb9c04911e6e569e72ef650
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 26 18:17:29 2019 +0200
- new, qimageblitz built for Qt5, packaged with "5" suffix
qimageblitz5-noexecstack.patch | 8 ++++
qimageblitz5-suffix.patch | 51 +++++++++++++++++++++++
qimageblitz5.spec | 91 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 150 insertions(+)
---
diff --git a/qimageblitz5.spec b/qimageblitz5.spec
new file mode 100644
index 0000000..d2f027b
--- /dev/null
+++ b/qimageblitz5.spec
@@ -0,0 +1,91 @@
+Summary: Blitz Qt 5 image filter library
+Summary(pl.UTF-8): Biblioteka filtrów obrazu Blitz dla Qt 5
+Name: qimageblitz5
+Version: 0.0.6
+%define snap 20131029
+%define rel 1
+Release: 1.%{snap}.%{rel}
+License: BSD
+Group: X11/Libraries
+Source0: https://dev.gentoo.org/~asturm/distfiles/qimageblitz-%{version}_p%{snap}.tar.xz
+# Source0-md5: 98e14003f2a7f2a4d83442c401ab6780
+Patch0: %{name}-noexecstack.patch
+Patch1: %{name}-suffix.patch
+URL: http://sourceforge.net/projects/qimageblitz/
+BuildRequires: Qt5Core-devel >= 5
+BuildRequires: Qt5Gui-devel >= 5
+BuildRequires: Qt5Widgets-devel >= 5
+BuildRequires: cmake >= 2.6.4
+BuildRequires: qt5-build >= 5
+BuildRequires: qt5-qmake >= 5
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Blitz is a graphical effect and filter library for Qt 5 that contains
+many improvements over KDE 3.x's kdefx library including bugfixes,
+memory and speed improvements, and MMX/SSE support.
+
+%description -l pl.UTF-8
+Blitz to biblioteka efektów i filtrów graficznych dla Qt 5
+zawierająca wiele ulepszeń w stosunku do biblioteki kdefx z KDE 3.x, w
+tym poprawki błędów, poprawę wydajności (pod względem wykorzystania
+pamięci i szybkości działania) oraz obsługę MMX/SSE.
+
+%package devel
+Summary: Header files for Blitz library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Blitz
+Group: X11/Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: Qt5Gui-devel >= 5
+
+%description devel
+Header files needed for build programs that use qimageblitz.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe potrzebne do tworzenia programów z użyciem
+qimageblitz.
+
+%prep
+%setup -q -n qimageblitz-%{version}_p%{snap}
+%patch0 -p1
+%patch1 -p1
+
+%build
+install -d build
+cd build
+%cmake .. \
+ -DQT4_BUILD=OFF
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/blitztest{,5}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING Changelog README.BLITZ
+%attr(755,root,root) %{_bindir}/blitztest5
+%attr(755,root,root) %{_libdir}/libqimageblitz5.so.5.0.0
+%attr(755,root,root) %ghost %{_libdir}/libqimageblitz5.so.5
+
+%files devel
+%defattr(644,root,root,755)
+%doc README.PORTING
+%attr(755,root,root) %{_libdir}/libqimageblitz5.so
+%dir %{_includedir}/qimageblitz5
+%{_includedir}/qimageblitz5/blitzcpu.h
+%{_includedir}/qimageblitz5/qimageblitz.h
+%{_includedir}/qimageblitz5/qimageblitz_export.h
+%{_pkgconfigdir}/qimageblitz5.pc
diff --git a/qimageblitz5-noexecstack.patch b/qimageblitz5-noexecstack.patch
new file mode 100644
index 0000000..7d0012b
--- /dev/null
+++ b/qimageblitz5-noexecstack.patch
@@ -0,0 +1,8 @@
+--- a/blitz/asm_scale.S
++++ b/blitz/asm_scale.S
+@@ -815,3 +815,5 @@
+ SIZE(qimageScale_mmx_AARGBA)
+
+ #endif
++
++.section .note.GNU-stack,"",%progbits
diff --git a/qimageblitz5-suffix.patch b/qimageblitz5-suffix.patch
new file mode 100644
index 0000000..893341e
--- /dev/null
+++ b/qimageblitz5-suffix.patch
@@ -0,0 +1,51 @@
+--- qimageblitz-0.0.6_p20131029/blitz/CMakeLists.txt.orig 2017-03-15 00:31:04.000000000 +0100
++++ qimageblitz-0.0.6_p20131029/blitz/CMakeLists.txt 2019-05-26 17:56:17.684369553 +0200
+@@ -22,8 +22,12 @@
+
+ if (Qt5Core_FOUND)
+ SET(BLITZ_LIB_MAJOR_VERSION "5")
++ SET(BLITZ_NAME qimageblitz5)
++ SET(BLITZ_DEPS Qt5Gui)
+ else()
+ SET(BLITZ_LIB_MAJOR_VERSION "4")
++ SET(BLITZ_NAME qimageblitz)
++ SET(BLITZ_DEPS QtGui)
+ endif()
+ SET(BLITZ_LIB_MINOR_VERSION "0")
+ SET(BLITZ_LIB_PATCH_VERSION "0")
+@@ -62,6 +66,7 @@
+ endif (NOT CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_NAME MATCHES SunOS)
+
+ set_target_properties(qimageblitz PROPERTIES
++ OUTPUT_NAME ${BLITZ_NAME}
+ VERSION ${BLITZ_LIB_MAJOR_VERSION}.${BLITZ_LIB_MINOR_VERSION}.${BLITZ_LIB_PATCH_VERSION}
+ SOVERSION ${BLITZ_LIB_MAJOR_VERSION}
+ DEFINE_SYMBOL MAKE_QIMAGEBLITZ_LIB
+@@ -72,13 +77,13 @@
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ )
+
+-install( FILES qimageblitz.h qimageblitz_export.h blitzcpu.h DESTINATION include/qimageblitz COMPONENT Devel )
++install( FILES qimageblitz.h qimageblitz_export.h blitzcpu.h DESTINATION include/${BLITZ_NAME} COMPONENT Devel )
+
+ if(NOT WIN32)
+- configure_file("qimageblitz.pc.cmake" "${CMAKE_CURRENT_BINARY_DIR}/qimageblitz.pc"
++ configure_file("qimageblitz.pc.cmake" "${CMAKE_CURRENT_BINARY_DIR}/${BLITZ_NAME}.pc"
+ @ONLY)
+
+- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qimageblitz.pc DESTINATION
++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BLITZ_NAME}.pc DESTINATION
+ ${LIB_INSTALL_DIR}/pkgconfig)
+ endif(NOT WIN32)
+
+--- qimageblitz-0.0.6_p20131029/blitz/qimageblitz.pc.cmake.orig 2017-03-15 00:31:04.000000000 +0100
++++ qimageblitz-0.0.6_p20131029/blitz/qimageblitz.pc.cmake 2019-05-26 17:56:26.894319658 +0200
+@@ -6,6 +6,6 @@
+ Name: Blitz
+ Description: Blitz image effect and filter library
+ Version: @BLITZ_LIB_VERSION_STRING@
+-Requires: QtGui
+-Libs: -L${libdir} -lqimageblitz
++Requires: @BLITZ_DEPS@
++Libs: -L${libdir} -l at BLITZ_NAME@
+ Cflags: -I${includedir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/qimageblitz5.git/commitdiff/4329092f6c85429b6bb9c04911e6e569e72ef650
More information about the pld-cvs-commit
mailing list