diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..73baf67 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +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 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..2bf6ced --- /dev/null +++ b/sources @@ -0,0 +1 @@ +6b966c143f9da39ab228ed37b6c518e5 yumex-3.0.6.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..f05c0cc --- /dev/null +++ b/yumex.spec @@ -0,0 +1,163 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: yumex +Version: 3.0.6 +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: pexpect +Requires: python-iniparse +Requires: dbus-python +Requires: udisks +Requires: python-kitchen +Requires: urlgrabber +Requires: polkit +Requires: pyxdg + +%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-install --vendor fedora --delete-original \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + --add-category X-Fedora \ + $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop + +# this is a doc file; removing from installed tree +rm $RPM_BUILD_ROOT%{_datadir}/yumex/COPYING + +%find_lang %name + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(-, root, root, -) +%doc COPYING ChangeLog TODO +%{_datadir}/pixmaps/yumex +%{_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/org.yum-extender.backend.policy +%{_datadir}/applications/fedora-%{name}.desktop + +%changelog +* Wed Aug 08 2012 Tim Lauridsen 3.0.6-1 +- bumped version to 3.0.6-1 +- Changed project url & source url +* Tue May 15 2012 Tim Lauridsen 3.0.5-3 +- Added pyxdg requirement +* Sun May 13 2012 Tim Lauridsen 3.0.5-1 +- bumped version to 3.0.5-1 +* Wed May 9 2012 Tim Lauridsen 3.0.4-3 +- Added PolicyKit policy +- Removed usermode requirement +- Added polkit requirement +* Sat Oct 22 2011 Tim Lauridsen 3.0.4-2 +- bumped version to 3.0.4-2 +- install special yumex.glade on el6 +* Tue Oct 11 2011 Tim Lauridsen 3.0.4-1 +- bumped version to 3.0.4-1 +* Wed Apr 27 2011 Tim Lauridsen 3.0.3-1 +- bumped version to 3.0.3-1 +* Wed Mar 30 2011 Tim Lauridsen 3.0.2-1 +- bumped version to 3.0.2-1 +* Thu Jan 6 2011 Tim Lauridsen 3.0.1-1 +- removed gnome-python2-gconf requirement, not need anymore +* Sun Jan 2 2011 Tim Lauridsen 3.0.1-1 +- Added urlgrabber requirement +* Tue Dec 21 2010 Tim Lauridsen - 3.0.1-1 +- bumped version to 3.0.1-1 +* Sat Nov 6 2010 Tim Lauridsen - 3.0.0-1 +- bumped version to 3.0.0-1 +* Sat Sep 11 2010 Tim Lauridsen - 2.9.11-1 +- bumped version to 2.9.11-1 +* Fri Jul 30 2010 Tim Lauridsen - 2.9.10-1 +- bumped version to 2.9.10-1 +* Tue Jul 6 2010 Tim Lauridsen - 2.9.9-1 +- bumped version to 2.9.9-1 +* Sat Jun 5 2010 Tim Lauridsen - 2.9.8-1 +- bumped version to 2.9.8-1 +* Mon Jan 31 2010 Tim Lauridsen - 2.9.7-1 +- bumped version to 2.9.7-1 +* Mon Jan 11 2010 Tim Lauridsen - 2.9.6-1 +- bumped version to 2.9.6-1 +* Fri Jan 1 2010 Tim Lauridsen - 2.9.5-1 +- bumped version to 2.9.5-1 +* Sun Oct 11 2009 Tim Lauridsen - 2.9.4-1 +- bumped version to 2.9.4-1 +- truncated rpm changelog to 2.9.x releases +* Sun Oct 11 2009 Tim Lauridsen - 2.9.3-1 +- bumped version to 2.9.3-1 +* Wed Sep 30 2009 Tim Lauridsen - 2.9.2-1 +- bumped version to 2.9.2-1 +* Fri Sep 18 2009 Tim Lauridsen - 2.9.1-1 +- bumped version to 2.9.1-1 +* Sun Aug 30 2009 Tim Lauridsen - 2.9.0-1 +- bumped version to 2.9.0-1 +* Sun Aug 30 2009 Tim Lauridsen - 2.9.0-0.13.pre +- bumped version to 2.9.0-0.13.pre +* Mon Aug 24 2009 Tim Lauridsen - 2.9.0-0.12.pre +- bumped version to 2.9.0-0.12.pre +* Fri Aug 21 2009 Tim Lauridsen - 2.9.0-0.11.pre +- bumped version to 2.9.0-0.11.pre +* Fri Aug 7 2009 Tim Lauridsen - 2.9.0-0.10.pre +- bumped version to 2.9.0-0.10.pre +* Thu Aug 6 2009 Tim Lauridsen - 2.9.0-0.9.pre +- bumped version to 2.9.0-0.9.pre +- handle new yumex-yum-backend in %%files section +* Sun May 24 2009 Tim Lauridsen - 2.9.0-0.8.pre +- bumped version to 2.9.0-0.8.pre +* Wed May 20 2009 Tim Lauridsen - 2.9.0-0.7.pre +- bumped version to 2.9.0-0.7.pre +* Sun May 10 2009 Tim Lauridsen - 2.9.0-0.6.pre +- bumped version to 2.9.0-0.6.pre +* Wed May 6 2009 Tim Lauridsen - 2.9.0-0.5.pre +- bumped version to 2.9.0-0.5.pre +* Thu Apr 30 2009 Tim Lauridsen - 2.9.0-0.4.pre +- bumped version to 2.9.0-0.4.pre +- added minimum version for pygtk requirement +* Sat Apr 25 2009 Tim Lauridsen - 2.9.0-0.3.pre +- bumped version to 2.9.0-0.3.pre +* Tue Apr 21 2009 Tim Lauridsen - 2.9.0-0.2.pre +- bumped version to 2.9.0-0.2.pre +* Tue Apr 21 2009 Tim Lauridsen - 2.9.0-0.1.pre +- bumped version to 2.9.0-0.1.pre