fix license and standardize the specfile

obsoletes the kdbusaddons package [release 5.9.0-4mamba;Sat Apr 25 2015]
This commit is contained in:
Davide Madrisan 2024-01-06 00:55:30 +01:00
parent 33fce78690
commit 09610db27d

View File

@ -1,7 +1,8 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: kdbusaddons
Version: 5.9.0
Release: 3mamba
Release: 4mamba
Summary: Convenience classes for DBus
Group: System/Tools
Vendor: openmamba
@ -9,7 +10,7 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.kde.org
Source: http://download.kde.org/stable/frameworks/%{majver}/kdbusaddons-%{version}.tar.xz
License: GPL
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
@ -17,6 +18,13 @@ BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: rpm-macros-kde5
BuildRequires: libQt5Gui
BuildRequires: libQt5X11Extras
BuildRequires: libQt5Core
BuildRequires: libQt5DBus
BuildRequires: libQt5Test
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -26,6 +34,8 @@ KDBusAddons provides convenience classes on top of QtDBus, as well as an API to
%package -n lib%{name}
Group: System/Libraries
Summary: Convenience classes for DBus
Obsoletes: kdbusaddons =< 5.9.0-3mamba
Provides: kdbusaddons = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}
KDBusAddons provides convenience classes on top of QtDBus, as well as an API to create KDED modules.
@ -47,14 +57,14 @@ This package contains libraries and header files for developing applications tha
%setup -q
%build
%cmake -d build
%cmake_kde5 -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name} || touch %{name}.lang
%find_lang kdbusaddons5_qt --with-qt --all-name || touch kdbusaddons5_qt.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -62,28 +72,26 @@ This package contains libraries and header files for developing applications tha
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -f %{name}.lang
%files -n lib%{name} -f kdbusaddons5_qt.lang
%defattr(-,root,root)
%{_bindir}/kquitapp5
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libKF5DBusAddons.so.*
%{_datadir}/locale/*/LC_MESSAGES/kdbusaddons5_qt.qm
%{_kde5_bindir}/kquitapp5
%{_kde5_libdir}/libKF5DBusAddons.so.*
%doc COPYING.LIB
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/KF5/KDBusAddons
%{_includedir}/KF5/KDBusAddons/*
%{_includedir}/KF5/kdbusaddons_version.h
%dir %{_libdir}/cmake/KF5DBusAddons
%{_libdir}/cmake/KF5DBusAddons/KF5DBusAddons*.cmake
%{_libdir}/libKF5DBusAddons.so
/usr/mkspecs/modules/qt_KDBusAddons.pri
%{_kde5_includedir}/KDBusAddons
%{_kde5_includedir}/kdbusaddons_version.h
%{_kde5_libdir}/cmake/KF5DBusAddons
%{_kde5_libdir}/libKF5DBusAddons.so
%{_kde5_mkspecsdir}/qt_KDBusAddons.pri
%doc README.md
%changelog
* Sat Apr 25 2015 Davide Madrisan <davide.madrisan@gmail.com> 5.9.0-4mamba
- fix license and standardize the specfile
- obsoletes the kdbusaddons package
* Sat Apr 11 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.9.0-3mamba
- automatic version update by autodist