[python-mwlib] Apparently you have to actually apply the patch

Ian Weller ianweller at fedoraproject.org
Sun Aug 18 17:11:09 UTC 2013


commit 4d500bf9fdb0b79d02093ee773c4dbd2da4d8e72
Author: Ian Weller <ian at ianweller.org>
Date:   Sun Aug 18 12:07:50 2013 -0500

    Apparently you have to actually apply the patch

 README.fedora     |    5 +++++
 python-mwlib.spec |    6 +++++-
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/README.fedora b/README.fedora
new file mode 100644
index 0000000..1149a47
--- /dev/null
+++ b/README.fedora
@@ -0,0 +1,5 @@
+The following console script names have changed:
+
+  nslave => mw-nslave
+  postman => mw-postman
+  nserve => mw-nserve
diff --git a/python-mwlib.spec b/python-mwlib.spec
index 6e4bd7e..fa684dd 100644
--- a/python-mwlib.spec
+++ b/python-mwlib.spec
@@ -13,6 +13,7 @@ Summary:        MediaWiki parser and utility library
 License:        BSD
 URL:            http://pediapress.com/code/
 Source0:        http://pypi.python.org/packages/source/m/mwlib/%{module_name}-%{version}.zip
+Source1:        README.fedora
 
 # Removes the following "requires" from setup.py for these reasons:
 #   roman: part of python-docutils
@@ -58,6 +59,9 @@ in order to generate PDF documents from Wikipedia articles.
 # Replace timelib with dateutil
 %patch1 -p1
 
+# Ensure all console scripts are prefixed with 'mw-'
+%patch2 -p1
+
 sed -i '/^#!/d' mwlib/*.py mwlib/*/*.py mwlib/snippets.txt
 chmod a-x mwlib/*.py mwlib/*/*.py mwlib/snippets.txt
 
@@ -73,7 +77,7 @@ rm %{buildroot}%{python_sitearch}/%{module_name}/templ/*.c
 
 
 %files
-%doc changelog.rst README.rst docs
+%doc changelog.rst README.rst docs ${SOURCE1}
 %{python_sitearch}/*
 %{_bindir}/mw-*
 %{_datadir}/%{module_name}


More information about the scm-commits mailing list