This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
plasma-pk-updates/plasma-pk-updates.spec

122 lines
4.4 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
%define gitver %(echo %version | cut -d. -f5)
Name: plasma-pk-updates
Version: 0.3.2.20240314git.6c11a780
Release: 1mamba
Summary: Plasma applet for software updates using PackageKit
Group: Graphical Desktop/Applications/Administration
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://invent.kde.org/system/plasma-pk-updates
Source: https://invent.kde.org/system/plasma-pk-updates.git/master@%{gitver}/plasma-pk-updates-%{version}.tar.bz2
Patch0: plasma-pk-updates-0.3.2.20190908git-kde4libssupport.patch
Patch1: plasma-pk-updates-0.3.2.20200829git-workaround-disable-network-online-check.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libgcc
BuildRequires: libkauth-devel
BuildRequires: libkbookmarks-devel
BuildRequires: libkcodecs-devel
BuildRequires: libkcompletion-devel
BuildRequires: libkconfig-devel
BuildRequires: libkconfigwidgets-devel
BuildRequires: libkcoreaddons-devel
BuildRequires: libkcrash-devel
BuildRequires: libkdelibs4support-devel
BuildRequires: libkguiaddons-devel
BuildRequires: libki18n-devel
BuildRequires: libkiconthemes-devel
BuildRequires: libkio-devel
BuildRequires: libkitemviews-devel
BuildRequires: libkjobwidgets-devel
BuildRequires: libknotifications-devel
BuildRequires: libkparts-devel
BuildRequires: libkservice-devel
BuildRequires: libktextwidgets-devel
BuildRequires: libkunitconversion-devel
BuildRequires: libkwidgetsaddons-devel
BuildRequires: libkwindowsystem-devel
BuildRequires: libkxmlgui-devel
BuildRequires: libpackagekitqt5-devel
BuildRequires: libsolid-devel
BuildRequires: libsonnet-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: rpm-macros-kde5
BuildRequires: extra-cmake-modules
%description
Plasma applet for software updates using PackageKit.
%debug_package
%prep
%setup -q
%patch0 -p1 -R
#%patch1 -p1
# Get translations
for l in ca ca@valencia cs da de en_GB es fi fr gl he it ja lt nl nn pl pt pt_BR ru sk sv tr uk zh_CN zh_TW; do
svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/$l/messages/plasma-pk-updates po/$l
done
cat >> CMakeLists.txt << _EOF
ki18n_install(po)
_EOF
%build
%cmake_kde5 -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name}5_qt --with-qt --with-man --all-name || touch %{name}5_qt.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}5_qt.lang
%defattr(-,root,root)
%{_libdir}/qt5/qml/org/kde/plasma/PackageKit/libplasmapk_qmlplugins.so
%{_libdir}/qt5/qml/org/kde/plasma/PackageKit/qmldir
%{_datadir}/knotifications5/plasma_pk_updates.notifyrc
%{_datadir}/kservices5/plasma-applet-org.kde.plasma.pkupdates.desktop
%{_datadir}/metainfo/org.kde.plasma.pkupdates.appdata.xml
%dir %{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates
%dir %{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates/contents
%dir %{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates/contents/ui
%{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates/contents/ui/*
%dir %{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates/contents/config
%{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates/contents/config/*
%{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates/metadata.desktop
%{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates/metadata.desktop.cmake
%{_datadir}/plasma/plasmoids/org.kde.plasma.pkupdates/metadata.json
%doc LICENSE
%changelog
* Thu Mar 14 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2.20240314git.6c11a780-1mamba
- update to 0.3.2.20240314git.6c11a780
* Sat Jul 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2.20200829git-3mamba
- patched to disable network online check to workaround issue since NetworkManager 1.32
* Thu Sep 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2.20200829git-2mamba
- added translations from anonsvn.kde.org
* Sat Aug 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2.20200829git-1mamba
- update to 0.3.2.20200829git
* Sun Sep 08 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2.20190908git-1mamba
- update to 0.3.2.20190908git
* Thu Aug 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2-1mamba
- package created using the webbuild interface