[bzr-fastimport] use a patch instead of sed for removing erroneous shebangs

Dan Callaghan dcallagh at fedoraproject.org
Fri Oct 14 00:37:14 UTC 2011


commit 8956fb51f28497f7d3f86cffb51858e3160cab1e
Author: Dan Callaghan <dcallagh at redhat.com>
Date:   Thu Oct 6 08:47:18 2011 +1000

    use a patch instead of sed for removing erroneous shebangs

 .gitignore                   |    1 +
 bzr-fastimport-shebang.patch |   16 +++++++++++++
 bzr-fastimport.spec          |   52 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 4 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a3daea8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bzr-fastimport-0.10.0.tar.gz
diff --git a/bzr-fastimport-shebang.patch b/bzr-fastimport-shebang.patch
new file mode 100644
index 0000000..87d3ddb
--- /dev/null
+++ b/bzr-fastimport-shebang.patch
@@ -0,0 +1,16 @@
+diff -ur bzr-fastimport-0.10.0-orig/exporters/hg2git.py bzr-fastimport-0.10.0/exporters/hg2git.py
+--- bzr-fastimport-0.10.0-orig/exporters/hg2git.py	2011-03-08 20:26:08.000000000 +1000
++++ bzr-fastimport-0.10.0/exporters/hg2git.py	2011-08-10 17:29:53.250559204 +1000
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ 
+ # Copyright (c) 2007, 2008 Rocco Rutte <pdmef at gmx.net> and others.
+ # License: MIT <http://www.opensource.org/licenses/mit-license.php>
+diff -ur bzr-fastimport-0.10.0-orig/info.py bzr-fastimport-0.10.0/info.py
+--- bzr-fastimport-0.10.0-orig/info.py	2011-03-08 20:26:08.000000000 +1000
++++ bzr-fastimport-0.10.0/info.py	2011-08-10 17:30:07.369645099 +1000
+@@ -1,4 +1,3 @@
+-#!/usr/bin/python
+ bzr_plugin_name = 'fastimport'
+ 
+ bzr_commands = [
diff --git a/bzr-fastimport.spec b/bzr-fastimport.spec
new file mode 100644
index 0000000..5654f52
--- /dev/null
+++ b/bzr-fastimport.spec
@@ -0,0 +1,52 @@
+Name:           bzr-fastimport
+Version:        0.10.0
+Release:        2%{?dist}
+Summary:        Bzr plugin for fast loading of data from other VCS tools
+Group:          Development/Languages
+# some modules in the exporters/ subdir are MIT-licensed
+License:        GPLv2+ and MIT
+URL:            https://launchpad.net/bzr-fastimport
+Source0:        http://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz
+Patch0:         %{name}-shebang.patch
+BuildArch:      noarch
+BuildRequires:  python-setuptools-devel
+BuildRequires:  bzr
+Requires:       bzr
+
+%description
+Bazaar Fast Import is a plugin providing fast loading of revision control data 
+into Bazaar. It is designed to be used in combination with front-end programs 
+that generate a command/data stream for it to process. Front-ends are available 
+for a wide range of foreign VCS tools including Subversion, CVS, Git, 
+Mercurial, Darcs and Perforce. New front-ends are easy to develop in 
+whatever programming language you prefer, making Bazaar Fast Import useful 
+for teams needing a custom migration solution.
+
+%prep
+%setup -q
+%patch0 -p1 -b .shebang
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+chmod 0755 $RPM_BUILD_ROOT%{python_sitelib}/bzrlib/plugins/fastimport/exporters/hg-fast-export.py
+chmod 0755 $RPM_BUILD_ROOT%{python_sitelib}/bzrlib/plugins/fastimport/exporters/svn-fast-export.py
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING.txt NEWS README.txt
+%{python_sitelib}/bzr_fastimport-*.egg-info
+%{python_sitelib}/bzrlib/plugins/fastimport
+
+%changelog
+* Wed Aug 10 2011 Dan Callaghan <dcallagh at redhat.com> - 0.10.0-2
+- use a patch instead of sed for removing erroneous shebangs
+
+* Thu Jun 16 2011 Dan Callaghan <dcallagh at redhat.com> - 0.10.0-1
+- initial version
diff --git a/sources b/sources
index e69de29..35e153d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ed9dba180cd73e5fc312bc75c30a56d1  bzr-fastimport-0.10.0.tar.gz


More information about the scm-commits mailing list