File qimageblitz.spec of Package qimageblitz4
#
# spec file for package qimageblitz
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define soname libqimageblitz
%define sover 4
Name: qimageblitz
Version: 0.0.6+svn1515099
Release: 0
Summary: Graphical effect and filter library for Qt
License: BSD-2-Clause
Group: System/Libraries
URL: https://websvn.kde.org/trunk/kdesupport/qimageblitz
Source0: %{name}-%{version}.tar.xz
Patch0: qimageblitz-qt5-fix-soname.patch
Patch1: remove-ansi-option.patch
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtGui)
%description
qimageblitz is a graphical effect and filter library for Qt that
contains many improvements over KDE 3.x's kdefx library including
bugfixes, memory and speed improvements, and MMX/SSE support.
%package -n %{soname}%{sover}
Summary: Graphical effect and filter library for Qt4
Group: System/Libraries
%description -n %{soname}%{sover}
libqimageblitz is a graphical effect and filter library for Qt4
that contains many improvements over KDE 3.x's kdefx library
including bugfixes, memory and speed improvements, and MMX/SSE
support.
%package -n %{soname}-devel
Summary: Development files for libqimageblitz4
Group: Development/Libraries/C and C++
Requires: %{soname}%{sover} = %{version}
%description -n %{soname}-devel
This package contains development files for libqimageblitz.
%prep
%autosetup -p1
%build
%cmake -DQT4_BUILD=ON
%make_build
%install
%cmake_install
%ldconfig_scriptlets -n %{soname}%{sover}
%files -n %{soname}%{sover}
%license COPYING
%doc Changelog README.*
%{_libdir}/%{soname}.so.%{sover}*
%files -n %{soname}-devel
%{_includedir}/qimageblitz
%{_bindir}/blitztest
%{_libdir}/%{soname}.so
%{_libdir}/pkgconfig/qimageblitz.pc
%changelog