packages: svn2git/svn2git.spec (NEW) - initial packaging using ruby spec-te...

glen glen at pld-linux.org
Fri Oct 15 22:11:13 CEST 2010


Author: glen                         Date: Fri Oct 15 20:11:13 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial packaging using ruby spec-template

---- Files affected:
packages/svn2git:
   svn2git.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/svn2git/svn2git.spec
diff -u /dev/null packages/svn2git/svn2git.spec:1.1
--- /dev/null	Fri Oct 15 22:11:13 2010
+++ packages/svn2git/svn2git.spec	Fri Oct 15 22:11:08 2010
@@ -0,0 +1,70 @@
+# $Revision$, $Date$
+Summary:	Tool for importing existing svn projects into git
+Name:		svn2git
+Version:	2.0.0
+Release:	0.1
+License:	MIT
+Source0:	http://github.com/nirvdrum/svn2git/tarball/v%{version}#/%{name}-%{version}.tgz
+# Source0-md5:	64f428daca195a9b04e9e4ff39566cc6
+Group:		Development/Languages
+URL:		https://www.negativetwenty.net/redmine/projects/show/svn2git
+BuildRequires:	rpmbuild(macros) >= 1.484
+BuildRequires:	ruby >= 1:1.8.6
+BuildRequires:	ruby-modules
+BuildRequires:	setup.rb
+%{?ruby_mod_ver_requires_eq}
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# nothing to be placed there. we're not noarch only because of ruby packaging
+%define		_enable_debug_packages	0
+
+%description
+svn2git is a tiny utility for migrating projects from Subversion to
+Git while keeping the trunk, branches and tags where they should be.
+It uses git-svn to clone an svn repository and does some clean-up to
+make sure branches and tags are imported in a meaningful way, and that
+the code checked into master ends up being what's currently in your
+svn trunk rather than whichever svn branch your last commit was in.
+
+%prep
+%setup -qc
+mv *-svn2git-*/* .
+
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
+%build
+cp %{_datadir}/setup.rb .
+%{__ruby} setup.rb config \
+	--rbdir=%{ruby_rubylibdir} \
+	--sodir=%{ruby_archdir}
+
+%{__ruby} setup.rb setup
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
+%{__ruby} setup.rb install \
+	--prefix=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog.markdown README.markdown MIT-LICENSE
+%attr(755,root,root) %{_bindir}/svn2git
+%{ruby_rubylibdir}/svn2git.rb
+%dir %{ruby_rubylibdir}/svn2git
+%{ruby_rubylibdir}/svn2git/blah.rb
+%{ruby_rubylibdir}/svn2git/migration.rb
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/10/15 20:11:08  glen
+- initial packaging using ruby spec-template
================================================================


More information about the pld-cvs-commit mailing list