kalternatives/kalternatives.spec

89 lines
2.7 KiB
RPMSpec
Raw Normal View History

Name: kalternatives
Version: 0.13.20200910
Release: 2mamba
Summary: A tool to graphically manage the alternatives system of some GNU/Linux distributions
Group: Graphical Desktop/Applications/Administration
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/KDE/kalternatives
Source: https://github.com/KDE/kalternatives.git/master/kalternatives-%{version}.tar.bz2
Source1: %{name}-desktop
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libkauth-devel
BuildRequires: libkcodecs-devel
BuildRequires: libkcompletion-devel
BuildRequires: libkconfig-devel
BuildRequires: libkconfigwidgets-devel
BuildRequires: libkcoreaddons-devel
BuildRequires: libki18n-devel
BuildRequires: libkiconthemes-devel
BuildRequires: libkio-devel
BuildRequires: libkjobwidgets-devel
BuildRequires: libkservice-devel
BuildRequires: libkwidgetsaddons-devel
BuildRequires: libkwindowsystem-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
%description
Kalternatives is a little tool to graphically manage the alternatives system of some GNU/Linux distributions.
%debug_package
%prep
%setup -q
#cp %{SOURCE1} src/kalternatives.desktop
# Get translations
for l in ca ca@valencia cs da de en_GB es fi fr gl 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/kalternatives po/$l
done
cat >> CMakeLists.txt << _EOF
ki18n_install(po)
_EOF
%build
%cmake_kde5 -d build \
-DKALTERNATIVES_DISTRO=rpm_2
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name} --all-name
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/qt5/plugins/kcm_kalternatives.so
%{_datadir}/kservices5/kalternatives.desktop
%{_datadir}/kalternatives/icons/hicolor/*/actions/alternative-broken.png
%doc AUTHORS COPYING
%changelog
* Fri Jun 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13.20200910-2mamba
- fix: configure with DISTRO=rpm_2 which sets correct path /var/lib/alternatives
- added translations
* Thu Sep 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13.20200910-1mamba
- update to 0.13.20200910
* Sat May 24 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13-3mamba
- rebuilt
* Tue Apr 05 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13-2mamba
- use kdesu instead of kdesudo to launch kalternatives
* Thu Mar 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13-1mamba
- package created by autospec