]> git.pld-linux.org Git - packages/qimageblitz5.git/commitdiff
- new, qimageblitz built for Qt5, packaged with "5" suffix master auto/th/qimageblitz5-0.0.6-1.20131029.1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 26 May 2019 16:17:29 +0000 (18:17 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 26 May 2019 16:17:29 +0000 (18:17 +0200)
qimageblitz5-noexecstack.patch [new file with mode: 0644]
qimageblitz5-suffix.patch [new file with mode: 0644]
qimageblitz5.spec [new file with mode: 0644]

diff --git a/qimageblitz5-noexecstack.patch b/qimageblitz5-noexecstack.patch
new file mode 100644 (file)
index 0000000..7d0012b
--- /dev/null
@@ -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 (file)
index 0000000..893341e
--- /dev/null
@@ -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@BLITZ_NAME@
+ Cflags: -I${includedir}
diff --git a/qimageblitz5.spec b/qimageblitz5.spec
new file mode 100644 (file)
index 0000000..d2f027b
--- /dev/null
@@ -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
This page took 0.114982 seconds and 4 git commands to generate.