User forums > Using Code::Blocks
RPM Spec file is ready
TheTuxKeeper:
Here is the first release of my Specfile. Since it's my first Spec it's a minimalistic one, but I want to add subpackages in the next time.
Here is a little Howto for building the rpm :
1. You need a fresh CVS version, no ./bootstrap or anything else should be done before in this directory !
2. rename the rootdirectory (the one with bootstrap and so on) to codeblocks-1.0
3. add the directory codeblocks-1.0 to an tar.gz or tar.bz2 archive named codeblocks-1.0-cvs.tar.gz (or .bz2)
--- Code: ---tar -czf codeblocks-1.0-cvs.tar.gz codeblocks-1.0 # gzip tar archive or
tar -cjf codeblocks-1.0-cvs.tar.bz2 codeblocks-1.0 # bzip2 tar archive
--- End code ---
If you want to use a tar.bz2 archive you also have to edit the "Source:" line to %{name}-%{version}-%{release}.tar.bz2
4. copy the archive in the directory /usr/src/packages/SOURCES and the Specfile to /usr/src/packages/SPECS/codeblocks.spec
5. build the binary package as root with
--- Code: ---rpmbuild -bb /usr/src/packages/SPECS/codeblocks.spec
--- End code ---
6. the package will be in one of the subdirectories of /usr/src/packages/RPMS/
Please contact me when there is any problem.
Daniel
EDIT: In the moment the package version is "1.0" and the release "cvs" so the complete version string will be 1.0-cvs and that's not good when you want to update later. You can edit the Release string perhaps to cvs.20051016 (no dashes "-" allowed!). But then the archive has to be renamed too. The package name must have the form %{name}-%{version}-%{release}.tar.gz in this example codeblocks-1.0-cvs.20051016.tar.gz
[attachment deleted by admin]
mandrav:
Nice, thanks Daniel :D
hongxing:
I am a newbie, what the usage of spec file? can you explain it for me?
I have compiled the cvs-head codeblocks sucessfully, how can I buid rpm from it?
thanks!
mandrav:
--- Quote from: hongxing on October 16, 2005, 04:13:53 pm ---I am a newbie, what the usage of spec file? can you explain it for me?
I have compiled the cvs-head codeblocks sucessfully, how can I buid rpm from it?
thanks!
--- End quote ---
Why don't you read Daniel's post? He has written in detail what you have to do...
hongxing:
thanks, I make the rpm successfully on my SuSE Linux 9
Navigation
[0] Message Index
[#] Next page
Go to full version