# # spec file for package alkimia # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %define soname_qt4 libalkimia %define soname_qt5 libalkimia5 %define sonum 7 Name: alkimia Version: 7.0.2 Release: 0 Summary: Library with common classes and functionality used by finance applications License: LGPL-2.1+ Group: Development/Libraries/C and C++ Url: https://kmymoney.org/ Source0: https://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz BuildRequires: doxygen BuildRequires: gmp-devel BuildRequires: libkde4-devel BuildRequires: extra-cmake-modules BuildRequires: pkgconfig(Qt5Core) >= 5.2.0 BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0 BuildRequires: pkgconfig(Qt5Test) >= 5.2.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description libalkimia is a library with common classes and functionality used by finance applications. %package -n %{soname_qt4}%{sonum} Summary: Library with common classes and functionality used by finance applications Group: System/Libraries %description -n %{soname_qt4}%{sonum} %{soname_qt4} is a library for Qt4 with common classes and functionality used by finance applications. %package -n %{soname_qt5}-%{sonum} Summary: Library with common classes and functionality used by finance applications Group: System/Libraries %description -n %{soname_qt5}-%{sonum} %{soname_qt5} is a library for Qt5 with common classes and functionality used by finance applications. %package -n %{soname_qt4}-devel Summary: Development Files for %{soname_qt4} Group: Development/Languages/C and C++ Requires: %{soname_qt4}%{sonum} = %{version} %description -n %{soname_qt4}-devel The development files for %{soname_qt4}. %package -n %{soname_qt5}-devel Summary: Development Files for %{soname_qt5} Group: Development/Languages/C and C++ Requires: %{soname_qt5}-%{sonum} = %{version} %description -n %{soname_qt5}-devel The development files for %{soname_qt5}. %prep %setup -q %build WORKDIR="$PWD" %cmake_kf5 -d build-qt5 %make_jobs cd "$WORKDIR" %cmake_kde4 -d build-qt4 -- -DBUILD_QT4=1 %make_jobs %install %kf5_makeinstall -C build-qt5 cd build-qt4 %kde4_makeinstall cd .. %post -n %{soname_qt4}%{sonum} -p /sbin/ldconfig %postun -n %{soname_qt4}%{sonum} -p /sbin/ldconfig %post -n %{soname_qt5}-%{sonum} -p /sbin/ldconfig %postun -n %{soname_qt5}-%{sonum} -p /sbin/ldconfig %files -n %{soname_qt4}-devel %defattr(-,root,root,-) %dir %{_kde4_includedir}/alkimia/ %{_kde4_includedir}/alkimia/Qt4 %{_kde4_libdir}/cmake/LibAlkimia-*/ %{_kde4_libdir}/libalkimia.so %{_libdir}/pkgconfig/libalkimia.pc %files -n %{soname_qt4}%{sonum} %defattr(-,root,root,-) %{_kde4_libdir}/libalkimia.so.%{sonum}* %files -n %{soname_qt5}-devel %defattr(-,root,root,-) %{_kf5_cmakedir}/LibAlkimia5-*/ %dir %{_includedir}/alkimia/ %{_includedir}/alkimia/Qt5 %{_kf5_libdir}/libalkimia5.so %{_libdir}/pkgconfig/libalkimia5.pc %files -n %{soname_qt5}-%{sonum} %defattr(-,root,root,-) %{_kf5_libdir}/libalkimia5.so.%{sonum}* %changelog