Change-Id: Ibe11ea5a98b0d46b40897d989aba37a23ff89344
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
19 files changed:
%define yum_pluginslib /usr/lib/yum-plugins
%define yum_pluginsshare /usr/share/yum-plugins
%define yum_pluginslib /usr/lib/yum-plugins
%define yum_pluginsshare /usr/share/yum-plugins
Version: 3.4.3
Release: 0
License: GPL-2.0+
Version: 3.4.3
Release: 0
License: GPL-2.0+
chmod +x %{buildroot}/%{python3_sitelib}/yum/*.py
chmod +x %{buildroot}/%{python3_sitelib}/rpmUtils/*.py
chmod +x %{buildroot}/%{python3_sitelib}/yum/*.py
chmod +x %{buildroot}/%{python3_sitelib}/rpmUtils/*.py
-%files -f %{name}.lang
-%manifest %{name}.manifest
%defattr(-, root, root, -)
%license COPYING
%config(noreplace) %{_sysconfdir}/yum.conf
%defattr(-, root, root, -)
%license COPYING
%config(noreplace) %{_sysconfdir}/yum.conf
%dir %{_sysconfdir}/yum
%dir %{_sysconfdir}/yum/protected.d
%dir %{_sysconfdir}/yum/vars
%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
%{_sysconfdir}/bash_completion.d
%{_datadir}/yum-cli/
%{_bindir}/yum
%dir %{_sysconfdir}/yum/pluginconf.d
%dir %{yum_pluginslib}
%dir %{yum_pluginsshare}
%dir %{_sysconfdir}/yum/pluginconf.d
%dir %{yum_pluginslib}
%dir %{yum_pluginsshare}
# Originally written by Barry Warsaw <bwarsaw@python.org>
#
# minimally patched to make it even more xgettext compatible
# 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)
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"
all:
echo "Nothing to do"
# 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
# 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
# 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.
# 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.
# Do either:
# ./yum-leak-test.py
# Do either:
# ./yum-leak-test.py
PYTHON=python3
PACKAGE = $(shell basename `pwd`)
PYFILES = $(wildcard *.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"
all:
echo "Nothing to do"
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
"""
Assorted utility functions for yum.
"""
"""
Assorted utility functions for yum.
"""
import re
import urllib.parse
import urlgrabber
import re
import urllib.parse
import urlgrabber
##Copyright (C) 2003,2005,2009 Jens B. Jorgensen <jbj1@ultraemail.net>
##
##This program is free software; you can redistribute it and/or
##Copyright (C) 2003,2005,2009 Jens B. Jorgensen <jbj1@ultraemail.net>
##
##This program is free software; you can redistribute it and/or
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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