[packages/pyp2rpm] switch default distro and template to pld
glen
glen at pld-linux.org
Sun Mar 17 11:09:33 CET 2013
commit 717365640ca43adca3a9235be1bf5f9626500ea9
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Mar 17 12:08:57 2013 +0200
switch default distro and template to pld
default-distro.patch | 27 +++++++++++++++++++++++++++
pyp2rpm.spec | 2 ++
2 files changed, 29 insertions(+)
---
diff --git a/pyp2rpm.spec b/pyp2rpm.spec
index 358fccc..36a6b48 100644
--- a/pyp2rpm.spec
+++ b/pyp2rpm.spec
@@ -18,6 +18,7 @@ Source1: %{name}-%{version}-tests.tgz
Source2: pld.spec.tmpl
Patch0: default-savepath.patch
Patch1: no-rpmdev-packager.patch
+Patch2: default-distro.patch
URL: https://pypi.python.org/pypi/pyp2rpm
BuildRequires: python-flexmock >= 0.9.3
BuildRequires: python-pytest
@@ -41,6 +42,7 @@ information though).
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
# Remove bundled egg-info
rm -r %{name}.egg-info
diff --git a/default-distro.patch b/default-distro.patch
new file mode 100644
index 0000000..92a54d8
--- /dev/null
+++ b/default-distro.patch
@@ -0,0 +1,27 @@
+--- pyp2rpm-1.0.1/./README.rst~ 2012-10-30 14:54:24.000000000 +0200
++++ pyp2rpm-1.0.1/./README.rst 2013-03-17 12:04:03.622442099 +0200
+@@ -27,7 +27,7 @@
+ -m METADATA_SOURCE Where to get metadata from ("pypi" or "local", default: "pypi").
+ -s PACKAGE_SOURCE Where to get package from ("pypi" or "/full/path/to/local/file", default: "pypi").
+ -d SAVE_DIR Where to save the package file (default: "/home/bkabrda/rpmbuild/SOURCES/")
+- -t TEMPLATE Template file (jinja2 format) to render (default: "fedora"). Search order is 1) filesystem, 2) default templates.
++ -t TEMPLATE Template file (jinja2 format) to render (default: "pld"). Search order is 1) filesystem, 2) default templates.
+ -b BASE_PYTHON Base Python version to package for (default: "2").
+ -p PYTHON_VERSION Additional Python versions to include in the specfile (e.g -p3 for %{?with_python3}). Can be specified multiple times.
+
+--- pyp2rpm-1.0.1/./pyp2rpm/settings.py~ 2013-03-17 05:02:54.000000000 +0200
++++ pyp2rpm-1.0.1/./pyp2rpm/settings.py 2013-03-17 12:04:45.524371795 +0200
+@@ -3,10 +3,10 @@
+ DEFAULT_PYTHON_VERSION = '2'
+ DEFAULT_PKG_SOURCE = 'pypi'
+ DEFAULT_METADATA_SOURCE = 'pypi'
+-DEFAULT_TEMPLATE = 'fedora'
+-DEFAULT_DISTRO = 'fedora'
++DEFAULT_TEMPLATE = 'pld'
++DEFAULT_DISTRO = 'pld'
+ DEFAULT_PKG_SAVE_PATH = os.path.expanduser('.')
+-KNOWN_DISTROS = ['fedora', 'mageia']
++KNOWN_DISTROS = ['pld','fedora', 'mageia']
+ ARCHIVE_SUFFIXES = ['.tar', '.tgz', '.tar.gz', '.tar.bz2', '.gz', '.bz2', '.zip', '.egg']
+ EXTENSION_SUFFIXES = ['.c', '.cpp']
+ DOC_FILES_RE = [r'readme.+', r'licens.+', r'copying.+']
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pyp2rpm.git/commitdiff/4fa3fef6ca870966400effe76dc92beb8c2b8e13
More information about the pld-cvs-commit
mailing list