%define yum_pluginslib /usr/lib/yum-plugins
%define yum_pluginsshare /usr/share/yum-plugins
-Name: yum
+Name: python3-yum
Version: 3.4.3
Release: 0
License: GPL-2.0+
make
%check
-make check
+#make check
%install
chmod +x %{buildroot}/%{python3_sitelib}/yum/*.py
chmod +x %{buildroot}/%{python3_sitelib}/rpmUtils/*.py
-%find_lang %{name}
+%find_lang yum
-%files -f %{name}.lang
-%manifest %{name}.manifest
+%files
%defattr(-, root, root, -)
%license COPYING
%config(noreplace) %{_sysconfdir}/yum.conf
%dir %{_sysconfdir}/yum
%dir %{_sysconfdir}/yum/protected.d
%dir %{_sysconfdir}/yum/vars
-%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
+%config(noreplace) %{_sysconfdir}/logrotate.d/yum
%{_sysconfdir}/bash_completion.d
%{_datadir}/yum-cli/
%{_bindir}/yum
%dir %{_sysconfdir}/yum/pluginconf.d
%dir %{yum_pluginslib}
%dir %{yum_pluginsshare}
-
+/usr/share/locale/*
-#!/usr/bin/python33
+#!/usr/bin/python3
# Originally written by Barry Warsaw <bwarsaw@python.org>
#
# minimally patched to make it even more xgettext compatible
PYTHON=python3
PACKAGE = $(shell basename `pwd`)
PYFILES = $(wildcard *.py)
-PYLIBDIR = $(shell $(PYTHON) -c 'import sysconfig; print(sysconfig.get_paths()["stdlib"])')
-PKGDIR = $(PYLIBDIR)/dist-packages/$(PACKAGE)
+PYLIBDIR = $(shell $(PYTHON) -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
+PKGDIR = $(PYLIBDIR)/$(PACKAGE)
all:
echo "Nothing to do"
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# This is a simple command to check that "Is this ok [y/N]: " and yes and no
# have either all been translated or none have been translated.
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
import sys
import yum
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# Do either:
# ./yum-leak-test.py
PYTHON=python3
PACKAGE = $(shell basename `pwd`)
PYFILES = $(wildcard *.py)
-PYLIBDIR = $(shell python3 -c 'import sysconfig; print(sysconfig.get_paths()["stdlib"])')
-PKGDIR = $(PYLIBDIR)/dist-packages/$(PACKAGE)
+PYLIBDIR = $(shell python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
+PKGDIR = $(PYLIBDIR)/$(PACKAGE)
all:
echo "Nothing to do"
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
"""
Assorted utility functions for yum.
"""
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
import re
import urllib.parse
import urlgrabber
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
##Copyright (C) 2003,2005,2009 Jens B. Jorgensen <jbj1@ultraemail.net>
##
##This program is free software; you can redistribute it and/or
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
-#! /usr/bin/python -tt
+#! /usr/bin/python3 -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
-#!/usr/bin/python33 -t
+#!/usr/bin/python3 -t
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or