[patcher] Initial import (#578135)

misc misc at fedoraproject.org
Fri Sep 3 10:38:17 UTC 2010


commit dff592ee3eca75ed9b95fa1a6df67b933a6d795f
Author: Michael Scherer <misc at ephaone.org>
Date:   Fri Sep 3 12:35:32 2010 +0200

    Initial import (#578135)

 .gitignore                 |    1 +
 patcher-0.6-python26.patch |   22 ++++++++++++++++
 patcher.spec               |   58 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 4 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f24f670 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/patcher-0.6.tar.bz2
diff --git a/patcher-0.6-python26.patch b/patcher-0.6-python26.patch
new file mode 100644
index 0000000..d14b284
--- /dev/null
+++ b/patcher-0.6-python26.patch
@@ -0,0 +1,22 @@
+Index: patcher/util.py
+===================================================================
+--- patcher/util.py
++++ patcher/util.py	2009-01-12 23:23:53.000000000 +0100
+@@ -20,7 +20,7 @@
+ #
+ from patcher import Error
+ import sys, os
+-import md5
++import hashlib
+ #import commands
+ 
+ # Our own version of commands' getstatusoutput(). We have a commands
+@@ -51,7 +51,7 @@
+ 
+ def filedigest(filename):
+     file = open(filename)
+-    digest = md5.md5()
++    digest = hashlib.md5()
+     data = file.read(8192)
+     while data:
+         digest.update(data)
diff --git a/patcher.spec b/patcher.spec
new file mode 100644
index 0000000..08581c3
--- /dev/null
+++ b/patcher.spec
@@ -0,0 +1,58 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+Summary:    Quick creation of patches against a project source tree
+Name:       patcher
+Version:    0.6
+Release:    3%{?dist}
+Group:      Development/Tools
+License:    GPLv2+
+Url:        http://labix.org/patcher
+Source0:    http://labix.org/download/patcher/%{name}-%{version}.tar.bz2
+# (misc) patch sent to upstream by mail on 12/01/2009
+# the patch silence warnings on python 2.6
+Patch0:     patcher-0.6-python26.patch
+BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: python-devel
+BuildArch:     noarch
+%description
+Patcher is a tool for quick creation of patches against a project source tree.
+Patcher functionality resembles a lightweight version control system.
+It has no repository, and only controls differences between a pristine version
+and a working copy.
+
+%prep
+%setup -q
+%patch0 -p0
+# remove rpmlint warning
+%{__sed} -i -e 's|^#!/usr/bin/python.*||' patcher/{commands/,}*.py
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README
+%{_bindir}/ptr
+%python_sitelib/%{name}/
+%python_sitelib/*.egg-info
+
+%changelog
+* Sun Apr 11 2010 Terje Rosten <terje.rosten at ntnu.no> - 0.6-3
+- Various review fixes
+
+* Tue Mar 30 2010 Michael Scherer <misc at zarb.org> - 0.6-2
+- use %%global instead of define
+- remove spurious echo
+- use %%{_foo} when possible
+- fix %%defattr
+
+* Fri Feb  5 2010 Michael Scherer <misc at zarb.org> - 0.6-1
+- Initial package, based on the spec file written for Mandriva
diff --git a/sources b/sources
index e69de29..3791019 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+362c8678ccbcf145ea58674d4b9c84ee  patcher-0.6.tar.bz2


More information about the scm-commits mailing list