From: Elan Ruusamäe Date: Sun, 13 Mar 2016 21:57:54 +0000 (+0200) Subject: new, better svn2git before reposurgeon X-Git-Tag: auto/th/agito-0.1-1~1 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fagito.git;a=commitdiff_plain;h=1945a9291073a0afb35cc5bf05974c72e738ec17 new, better svn2git before reposurgeon --- 1945a9291073a0afb35cc5bf05974c72e738ec17 diff --git a/agito.spec b/agito.spec new file mode 100644 index 0000000..6dc5a99 --- /dev/null +++ b/agito.spec @@ -0,0 +1,44 @@ +Summary: Subversion to Git conversion script +Name: agito +# no version known +Version: 0.1 +Release: 1 +License: GPL v2+ +Group: Development/Tools +Source0: https://github.com/fragglet/agito/archive/master/%{name}-%{version}.tar.gz +# Source0-md5: 410cd5e31be46ae1c0725ffae2c44074 +URL: https://github.com/fragglet/agito +BuildRequires: sed >= 4.0 +Requires: git-core +Requires: subversion +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Agito is (yet another) Subversion to Git conversion script. + +It is designed to do a better job of translating history than git-svn, +which has some subtleties in the way it works that cause it to +construct branch histories that are suboptimal in certain corner case +scenarios. Agito was created to convert the history of Chocolate Doom, +which exhibits some of these corner cases. For more information on how +Agito is different to git-svn, see DESIGN. + +%prep +%setup -qc +mv agito-*/* . + +%{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}.py + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_bindir} +install -p %{name}.py $RPM_BUILD_ROOT%{_bindir}/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README AUTHORS DESIGN example.cfg +%attr(755,root,root) %{_bindir}/agito