Re: cvs2svn RPM
Michael Haggerty <[email protected]> Mon, 10 Dec 2012 10:10:36 +0100
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12/10/2012 02:17 AM, coeus77 wrote:
> Is there any guide/recommended pattern for creating an RPM package out of the
> cvs2svn tar.gz's? I started writing a .spec file and couldn't seem determine
> what to include in the %files list exactly.
I'm no distutils guru but I was under the impression that one could get
distutils to create an RPM file for you using the metadata from setup.py
and MANIFEST.in; for example,
http://docs.python.org/2.7/distutils/builtdist.html#creating-rpm-packages
Does this not work in general, or is there something in the cvs2svn
project that is incorrect? (I can easily believe the latter.)
> Since the make install command just calls a setup.py, isn't all that's
> happening is the python packages are being copied to the appropriate python
> dir on the current system? Are any executables actually created anywhere?
The three scripts, cvs2svn, cvs2git, and cvs2bzr, should be made
executable. There are also some scripts in config that would be
executable if they are installed. But nothing needs to be compiled (the
project is pure Python), if that is what you are asking.
Also, the cvs2*-example.options should be installed somewhere among the
documentation.
> For example, after running:
> %install
> make install DESTDIR=$RPM_BUILD_DIR
> make man
>
> what should I list in the %files section of the .spec?:
> %files
> %doc cvs2svn.1 README BUGS CHANGES COMMITTERS COPYING HACKING
> # what needs to be here? It seems like I should include the cvs2svn_rcsparse
> and maybe cvs2svn_lib but
> # then what would be the point of running the make install?
Yes, those two modules (cvs2svn_rcsparse and cvs2svn_lib) are definitely
needed and should be in the Python path. I would also definitely
include cvs2{git,bzr}{,.1}, but on the other hand it is doubtful whether
our version of cvs2hg is useful in comparison to Greg Ward's fork. The
HTML documentation under www would also be useful.
BTW, if you are just doing this for your own use, then there is no need
to install anything. You can run cvs2svn directly out of the unpacked
tarball.
Michael
--
Michael Haggerty
[email protected]
http://softwareswirl.blogspot.com/
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=3034467
To unsubscribe from this discussion, e-mail: [[email protected]].