2018-01-31 10:13:53 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-25 11:17:34 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-01-31 10:13:53 +01:00
|
|
|
#
|
|
|
|
|
2018-10-25 11:17:34 +02:00
|
|
|
|
2018-01-31 10:13:53 +01:00
|
|
|
%define soname_qt4 libalkimia
|
|
|
|
%define soname_qt5 libalkimia5
|
|
|
|
%define sonum 7
|
|
|
|
Name: alkimia
|
2018-04-14 11:17:17 +02:00
|
|
|
Version: 7.0.2
|
2018-01-31 10:13:53 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library with common classes and functionality used by finance applications
|
2018-10-25 11:17:34 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2018-01-31 10:13:53 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-10-25 11:17:34 +02:00
|
|
|
URL: https://kmymoney.org/
|
2018-04-14 12:04:44 +02:00
|
|
|
Source0: https://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz
|
2018-01-31 10:13:53 +01:00
|
|
|
BuildRequires: doxygen
|
2018-10-25 11:17:34 +02:00
|
|
|
BuildRequires: extra-cmake-modules
|
2018-01-31 10:13:53 +01:00
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: libkde4-devel
|
2018-10-25 11:17:34 +02:00
|
|
|
BuildRequires: pkgconfig
|
2018-01-31 10:13:53 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
|
|
|
|
|
|
|
|
%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
|
2018-10-25 11:17:34 +02:00
|
|
|
%license COPYING.LIB
|
2018-01-31 10:13:53 +01:00
|
|
|
%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}
|
2018-10-25 11:17:34 +02:00
|
|
|
%license COPYING.LIB
|
|
|
|
%doc README.md
|
2018-01-31 10:13:53 +01:00
|
|
|
%{_kde4_libdir}/libalkimia.so.%{sonum}*
|
|
|
|
|
|
|
|
%files -n %{soname_qt5}-devel
|
2018-10-25 11:17:34 +02:00
|
|
|
%license COPYING.LIB
|
2018-01-31 10:13:53 +01:00
|
|
|
%dir %{_includedir}/alkimia/
|
|
|
|
%{_includedir}/alkimia/Qt5
|
2018-10-25 11:17:34 +02:00
|
|
|
%{_kf5_cmakedir}/LibAlkimia5-*/
|
2018-01-31 10:13:53 +01:00
|
|
|
%{_kf5_libdir}/libalkimia5.so
|
|
|
|
%{_libdir}/pkgconfig/libalkimia5.pc
|
|
|
|
|
|
|
|
%files -n %{soname_qt5}-%{sonum}
|
2018-10-25 11:17:34 +02:00
|
|
|
%license COPYING.LIB
|
|
|
|
%doc README.md
|
2018-01-31 10:13:53 +01:00
|
|
|
%{_kf5_libdir}/libalkimia5.so.%{sonum}*
|
|
|
|
|
|
|
|
%changelog
|