Spec Name or Url: http://www.cora.nwra.com/~orion/fedora/cmake.spec SRPM Name or Url: http://www.cora.nwra.com/~orion/fedora/cmake-2.2.3-1.src.rpm Description: CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated: it is possible to support complex environments requiring system configuration, pre-processor generation, code generation, and template instantiation.
- rpmlint complains about development. Since they are part of the main package, these errors can be ignored. - Maybe also include the Example directory with the doc dir. - Include the cmake-mode.el for emacs, the .vim files for vim
http://www.cora.nwra.com/~orion/fedora/cmake-2.2.3-2.src.rpm http://www.cora.nwra.com/~orion/fedora/cmake.spec - Made emacs and vim sub-packages for the .el and .vim files. Haven't tested them yet though. - Include Examples in the docs
- "cp -a Docs/Example ..." should be "cp -a Example ..." - instead of requiring /usr/share/emacs/site-lisp: Requires: emacs-common The same goes for vim: Requires: vim-common The problem is, that the location is only correct for a specific version of vim. Is there no version-independent site directory like for emacs?
(In reply to comment #3) > - "cp -a Docs/Example ..." should be "cp -a Example ..." Fixed. > - instead of requiring /usr/share/emacs/site-lisp: > Requires: emacs-common > The same goes for vim: > Requires: vim-common > The problem is, that the location is only correct for > a specific version of vim. Is there no version-independent > site directory like for emacs? > I prefer the way it is. What the package really requires is the existence of the directories /usr/share/emacs/site-lisp. If this directory ends up being in another package, I don't have to do anything. I was not able to find a version-independent site directory for vim, unfortunately.
Re: emacs site-lisp Another simplistic approach (that some, me not included, object to) is to 1. install the files to /usr/share/emacs/site-lisp 2. include these in the main pkg (ie, no subpkg) 3. Add no additional/special Requires wrt emacs. It's simple and it works (when emacs is installed, or any other package that "owns" /usr/share/emacs/site-lisp). At worst, when emacs is not installed, you have files installed into an unowned dir. IMO, the benefits of this approach (mostly it's simplicity) outweigh the disadvantage of installing files into a potentially unowned dir (site-lisp). The same general approach can be applied to the vim files too.
In general I object to potentially unknowned directories :-) However in this case, for simplicity's sake I agree. Another possibility is to own "/usr/share/emacs". Several other packages do this.
http://www.cora.nwra.com/~orion/fedora/cmake-2.2.3-3.src.rpm http://www.cora.nwra.com/~orion/fedora/cmake.spec How about this? It owns the emacs and vim directories so they are created with proper permissions, but doesn't an any runtime requirements.
Looks good now. APPROVED
checked in, built on devel, added to owners.list.
Package Change Request ====================== Package Name: cmake New Branches: EL-4 EL-5
Package Change Request ====================== Package Name: cmake New Branches: F-9
cvs done.