diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb6b6ea --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +yumex-2.9.9.tar.gz +yumex-2.9.10.tar.gz +/yumex-3.0.0.tar.gz +/yumex-3.0.1.tar.gz +/yumex-3.0.2.tar.gz +/yumex-3.0.3.tar.gz +/yumex-3.0.4.tar.gz +/yumex-3.0.5.tar.gz +/yumex-3.0.6.tar.gz +/yumex-3.0.7.tar.gz +/yumex-3.0.9.tar.gz +/yumex-3.0.10.tar.gz +/yumex-3.0.11.tar.gz +/yumex-3.0.12.tar.gz +/yumex-3.0.13.tar.gz +/yumex-3.0.14.tar.gz +/yumex-3.0.15.tar.gz +/yumex-3.0.16.tar.gz +/yumex-3.0.17.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8c58da2 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: yumex +# $Id$ +NAME := yumex +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/dead.package b/dead.package deleted file mode 100644 index ebed07a..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -yumex is replaced by yumex-dnf diff --git a/sources b/sources new file mode 100644 index 0000000..34f5bdb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +9990213613322e6221643f5d3f1af99d yumex-3.0.17.tar.gz diff --git a/yumex-sudo.patch b/yumex-sudo.patch new file mode 100644 index 0000000..5a3c2f4 --- /dev/null +++ b/yumex-sudo.patch @@ -0,0 +1,25 @@ +From 39c22ebab282bc8a74eeb00db8d3159be08453f3 Mon Sep 17 00:00:00 2001 +From: Tim Lauridsen +Date: Mon, 14 May 2012 15:24:50 +0200 +Subject: [PATCH] make yumex work with use_sudo=1 in .yumex.conf + +--- + src/yumexbackend/yum_client.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/yumexbackend/yum_client.py b/src/yumexbackend/yum_client.py +index 4d3a0ac..e673a1c 100644 +--- a/src/yumexbackend/yum_client.py ++++ b/src/yumexbackend/yum_client.py +@@ -176,7 +176,7 @@ class YumClientBase: + self.info('Running backend launcher with sudo') + cmd = '/usr/bin/sudo' + args.append('-n') # Abort sudo if password is needed +- args.append('/usr/bin/yumex-yum-backend') ++ args.append(MAIN_PATH + "/backend-launcher.py") + + else: + cmd = '/usr/bin/pkexec' +-- +1.7.10.1 + diff --git a/yumex.spec b/yumex.spec new file mode 100644 index 0000000..42d7e39 --- /dev/null +++ b/yumex.spec @@ -0,0 +1,114 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: yumex +Version: 3.0.17 +Release: 1%{?dist} +Summary: Yum Extender graphical package management tool + +Group: Applications/System +License: GPLv2+ +URL: http://www.yumex.dk +Source0: https://fedorahosted.org/releases/y/u/yumex/%{name}-%{version}.tar.gz +BuildRoot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: intltool + + +Requires: yum >= 3.2.23 +Requires: pygtk2 >= 2.14 +Requires: pycairo +%{?fedora:Requires: python-pexpect} +%{?rhel:Requires: pexpect} +Requires: python-iniparse +Requires: dbus-python +Requires: python-kitchen +Requires: urlgrabber +Requires: polkit +Requires: pyxdg +Requires(pre): shadow-utils + +%description +Graphical User Interface for Yum. + + +%prep +%setup -q + + +%build +make + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +#install another .glade file for el6 +%if 0%{?el6} +install -m644 src/yumex.glade.el6 $RPM_BUILD_ROOT/%{_datadir}/%{name}/yumex.glade +%endif + +desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop +desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-local.desktop + + +# this is a doc file; removing from installed tree +rm $RPM_BUILD_ROOT%{_datadir}/yumex/COPYING + +%find_lang %name + +%pre +getent group yumex >/dev/null || groupadd -r yumex + +%post +update-desktop-database %{_datadir}/applications &> /dev/null || : + +%postun +update-desktop-database %{_datadir}/applications &> /dev/null || : + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(-, root, root, -) +%doc COPYING ChangeLog TODO +%{_datadir}/pixmaps/* +%{_datadir}/yumex +%{_bindir}/yumex* +%{python_sitelib}/yumexbackend/ +%{python_sitelib}/yumexbase/ +%{python_sitelib}/yumexgui/ +%{python_sitelib}/guihelpers/ +%config(noreplace) %{_sysconfdir}/yumex.profiles.conf +%config(noreplace) %{_sysconfdir}/yumex.conf +%{_datadir}/polkit-1/actions/dk.yumex.backend.policy +%{_datadir}/applications/*.desktop +%{_datadir}/appdata/*.xml +%{_datadir}/polkit-1/rules.d/*.rules + +%changelog +* Tue Apr 21 2015 Tim Lauridsen 3.0.17-1 +- bumped release +- add rhel/fedora specific requirement of pexpect/python-pexpect +* Tue Oct 14 2014 Tim Lauridsen 3.0.16-2 +- create yumex group +- added shadow-utils requirement (pre) +- added PolicyKit rule +* Sun Oct 5 2014 Tim Lauridsen 3.0.16-1 +- bumped version to 3.0.16 +- removed udisks requirement +- cleaned up the spec changelog +* Wed Jun 4 2014 Tim Lauridsen 3.0.15-1 +- bumped version to 3.0.15 +* Tue Feb 25 2014 Tim Lauridsen 3.0.14-1 +- bumped version to 3.0.14 +* Wed Oct 16 2013 Tim Lauridsen 3.0.13-1 +- bumped version to 3.0.13 +* Mon Oct 07 2013 Tim Lauridsen 3.0.12-2 +- changed requirement pexpect to python-pexpect + +