Hello community, here is the log from the commit of package qactus for openSUSE:Factory checked in at 2018-12-04 20:54:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/qactus (Old) and /work/SRC/openSUSE:Factory/.qactus.new.19453 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "qactus" Tue Dec 4 20:54:46 2018 rev:5 rq:653515 version:1.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/qactus/qactus.changes 2018-11-26 10:37:26.740526637 +0100 +++ /work/SRC/openSUSE:Factory/.qactus.new.19453/qactus.changes 2018-12-04 20:54:46.328823308 +0100 @@ -1,0 +2,8 @@ +Sat Dec 1 22:34:34 UTC 2018 - Javier Llorente <[email protected]> + +- Update 1.0.1 + * Switch from QMake to CMake, rpm spec rewritten (Thanks Neal + Gompa!) + * Minor bugfixes + +------------------------------------------------------------------- Old: ---- qactus-1.0.0.tar.bz2 New: ---- qactus-1.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ qactus.spec ++++++ --- /var/tmp/diff_new_pack.XT3dC9/_old 2018-12-04 20:54:46.716822876 +0100 +++ /var/tmp/diff_new_pack.XT3dC9/_new 2018-12-04 20:54:46.716822876 +0100 @@ -2,6 +2,7 @@ # spec file for package qactus # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 Neal Gompa <[email protected]>. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,40 +17,61 @@ # +%global libmajor 1 +%global libprefix libqobs +%global libname %{libprefix}%{libmajor} +%global devname %{libprefix}-devel + Name: qactus -Version: 1.0.0 +Version: 1.0.1 Release: 0 Summary: A GUI client for OBS License: GPL-2.0-only OR GPL-3.0-only Group: Development/Tools/Building -Url: http://www.javierllorente.com/ -Source: %{name}-%{version}.tar.bz2 +URL: https://github.com/javierllorente/qactus +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +BuildRequires: cmake >= 3.5 +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5Gui) +BuildRequires: cmake(Qt5Network) +BuildRequires: cmake(Qt5Widgets) +# Needed to ensure Qt5Keychain can be used properly BuildRequires: hicolor-icon-theme -BuildRequires: qtkeychain-qt5-devel +BuildRequires: pkgconfig BuildRequires: update-desktop-files -BuildRequires: pkgconfig(Qt5Core) -BuildRequires: pkgconfig(Qt5Gui) -BuildRequires: pkgconfig(Qt5Network) -BuildRequires: pkgconfig(Qt5Widgets) -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: cmake(Qt5DBus) +BuildRequires: cmake(Qt5Keychain) +Requires: %{libname}%{?_isa} = %{version}-%{release} %description -A Qt5-based Open Build Service (OBS) client featuring a browser, request management and more +A Qt-based Open Build Service (OBS) client featuring a browser, request management and more + +%package -n %{libname} +Summary: A Qt-based OBS library +Group: System/Libraries + +%description -n %{libname} +A library for interacting with the Open Build Service (OBS) + +%package -n %{devname} +Summary: Development files for %{libprefix} +Group: Development/Libraries/C and C++ +Requires: %{libname}%{?_isa} = %{version}-%{release} + +%description -n %{devname} +This package contains the development files for %{libprefix}, a Qt-based +Open Build Service (OBS) library %prep -%setup -q -n %{name} +%setup -q %build -cat > .qmake.cache <<EOF -PREFIX=%{_prefix} -QMAKE_CXXFLAGS_RELEASE += "%{optflags}" -EOF -qmake-qt5 -make %{?_smp_mflags} +%cmake +%make_build %install -make INSTALL_ROOT=%{buildroot} install -rm %{buildroot}%{_libdir}/libqobs.so +%make_install -C build + %suse_update_desktop_file %{name} %post @@ -58,13 +80,24 @@ %postun %desktop_database_postun +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + %files -%defattr(-,root,root) %doc README.md -%license COPYING +%license COPYING gpl-*.txt %{_bindir}/%{name} -%{_libdir}/libqobs.so.* %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/128x128/apps/%{name}.png +%files -n %{libname} +%license COPYING gpl-*.txt +%{_libdir}/%{libprefix}.so.%{libmajor} +%{_libdir}/%{libprefix}.so.%{libmajor}.* + +%files -n %{devname} +%{_libdir}/%{libprefix}.so +%{_libdir}/pkgconfig/%{libprefix}.pc +%{_includedir}/qobs + %changelog
