]>
Commit | Line | Data |
---|---|---|
7b04c40b ER |
1 | Summary: Bzr plugin for fast loading of data from other VCS tools |
2 | Name: bzr-fastimport | |
38d21f3e | 3 | Version: 0.13.0 |
34adf212 | 4 | Release: 2 |
7b04c40b ER |
5 | Group: Development/Languages |
6 | # Some modules in the exporters/ subdir are MIT-licensed. | |
7 | License: GPL v2+ and MIT | |
7b04c40b | 8 | Source0: http://launchpad.net/bzr-fastimport/trunk/%{version}/+download/%{name}-%{version}.tar.gz |
38d21f3e | 9 | # Source0-md5: e47115774d44ae0c3b027ae0374aa52e |
03162fcc | 10 | URL: https://launchpad.net/bzr-fastimport |
841759ff | 11 | BuildRequires: rpmbuild(macros) >= 1.710 |
275f019c | 12 | Patch0: bug-1101776.patch |
34adf212 | 13 | Patch1: bug-541626.patch |
7b04c40b ER |
14 | BuildRequires: bzr |
15 | BuildRequires: python-distribute | |
16 | Requires: bzr | |
17 | Requires: python-fastimport | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Bazaar Fast Import is a plugin providing fast loading of revision | |
23 | control data into Bazaar. It is designed to be used in combination | |
24 | with front-end programs that generate a command/data stream for it to | |
25 | process. Front-ends are available for a wide range of foreign VCS | |
26 | tools including Subversion, CVS, Git, Mercurial, Darcs and Perforce. | |
27 | New front-ends are easy to develop in whatever programming language | |
28 | you prefer, making Bazaar Fast Import useful for teams needing a | |
29 | custom migration solution. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
275f019c | 33 | %patch0 -p1 |
34adf212 | 34 | %patch1 -p0 |
7b04c40b ER |
35 | |
36 | %build | |
6f34ec56 | 37 | %py_build |
7b04c40b ER |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
6f34ec56 | 41 | %py_install \ |
7b04c40b ER |
42 | -O2 \ |
43 | --skip-build \ | |
44 | --root $RPM_BUILD_ROOT | |
45 | ||
46 | %py_postclean | |
47 | ||
275f019c | 48 | # not interested to package tests at runtime |
7b04c40b ER |
49 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/bzrlib/plugins/fastimport/tests |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
ed765ddd | 56 | %doc NEWS README.txt |
7b04c40b ER |
57 | %{py_sitescriptdir}/bzr_fastimport-*.egg-info |
58 | ||
59 | %dir %{py_sitescriptdir}/bzrlib | |
60 | %dir %{py_sitescriptdir}/bzrlib/plugins | |
61 | ||
62 | %dir %{py_sitescriptdir}/bzrlib/plugins/fastimport | |
63 | %{py_sitescriptdir}/bzrlib/plugins/fastimport/*.py[co] | |
7b04c40b ER |
64 | %dir %{py_sitescriptdir}/bzrlib/plugins/fastimport/processors |
65 | %{py_sitescriptdir}/bzrlib/plugins/fastimport/processors/*.py[co] |