From 05912fa8452c64415c55580feefc29bf0cbcfe60 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 00:29:25 +0100 Subject: [PATCH] use kdesu instead of kdesudo to launch kalternatives [release 0.13-2mamba;Tue Apr 05 2011] --- README.md | 2 ++ kalternatives-desktop | 40 +++++++++++++++++++++++++++++++ kalternatives.spec | 55 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 kalternatives-desktop create mode 100644 kalternatives.spec diff --git a/README.md b/README.md index 9ee8aa4..5dee185 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # kalternatives +Kalternatives is a little tool to graphically manage the alternatives system of some GNU/Linux distributions. + diff --git a/kalternatives-desktop b/kalternatives-desktop new file mode 100644 index 0000000..efa266c --- /dev/null +++ b/kalternatives-desktop @@ -0,0 +1,40 @@ +[Desktop Entry] +Exec=/opt/kde/lib/kde4/libexec/kdesu kcmshell4 kalternatives +Icon=configure +Type=Service +X-KDE-ServiceTypes=KCModule +X-DocPath=kdm/index.html#configuring-kdm + +X-KDE-Library=kcm_kalternatives +X-KDE-ParentApp=kcontrol + +X-KDE-ModuleType=Library +X-KDE-RootOnly=true +#X-KDE-HasReadOnlyMode=true +X-KDE-System-Settings-Parent-Category=system-administration + +Name=Alternatives Configuration +Name[es]=Configuración de alternativas +Name[et]=Alternatiivide seadistamine +Name[fr]=Configuration des alternatives +Name[it]=Configurazione delle alternative +Name[pt]=Configuração das Alternativas +Name[pt_BR]=Configuração das Alternativas +Name[sv]=Alternativ inställning +Name[tr]=Alternatives Yapılandırması +Name[uk]=Налаштування варіантів +Name[x-test]=xxAlternatives Configurationxx +Comment=Distribution alternatives system manager +Comment[es]=Sistema de gestión de alternativas de la distribución +Comment[et]=Distributsioonide alternatiivide süsteemi haldur +Comment[fr]=Gestionnaire du système d'alternatives +Comment[it]=Configurazione di sistema delle alternative della distribuzione +Comment[pt]=Gestor do sistema de alternativas das distribuições +Comment[pt_BR]=Gestor do sistema de alternativas das distribuições +Comment[sv]=Alternativ systemhantering för distributioner +Comment[tr]=Dağıtım alternatives sistem yöneticisi +Comment[uk]=Інструмент керування системою варіантів +Comment[x-test]=xxDistribution alternatives system managerxx +X-KDE-Keywords=Kalternatives,kalternatives,alternatives,alternative,debian,fedora,mandriva + +Categories=Qt;KDE;X-KDE-settings-system; diff --git a/kalternatives.spec b/kalternatives.spec new file mode 100644 index 0000000..8480b23 --- /dev/null +++ b/kalternatives.spec @@ -0,0 +1,55 @@ +Name: kalternatives +Version: 0.13 +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 +URL: http://kde-apps.org/content/show.php/Kalternatives?content=16016 +Source: http://kde-apps.org/CONTENT/content-files/16016-kalternatives_%{version}.tar.gz +Source1: %{name}-desktop +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: kdelibs-devel +BuildRequires: libgcc +BuildRequires: libqt4-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Kalternatives is a little tool to graphically manage the alternatives system of some GNU/Linux distributions. + +%prep +%setup -q +cp %{SOURCE1} src/kalternatives.desktop + +%build +%cmake_kde4 -d build \ + -DKALTERNATIVES_DISTRO=rpm_2 +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.lang +%defattr(-,root,root) +%{_kde4_libdir}/kde4/kcm_kalternatives.so +%{_kde4_datadir}/kalternatives/icons/hicolor/*/actions/alternative-broken.png +%{_kde4_servicesdir}/kalternatives.desktop +%doc AUTHORS COPYING NEWS README TODO + +%changelog +* Tue Apr 05 2011 Silvan Calarco 0.13-2mamba +- use kdesu instead of kdesudo to launch kalternatives + +* Thu Mar 24 2011 Silvan Calarco 0.13-1mamba +- package created by autospec