From Fedora Project Wiki
Line 50: | Line 50: | ||
[[Image:EclipseMercurialSpec.png|Eclipse Mercurial Spec File]]<br/><br/> | [[Image:EclipseMercurialSpec.png|Eclipse Mercurial Spec File]]<br/><br/> | ||
* To install the package | |||
: Install for the first time: | |||
:: cd PATH/TO/RPMS/IN/RPM-PROEJCT/noarch/ | |||
:: rpm -i eclipse-mercurial-R_1_0_0.noarch.rpm | |||
: Install the updated packages | |||
:: Yum remove eclipse-mercurial-R_1_0_0 | |||
:: again rpm -i.... | |||
: This will created a folder called ''mercurial'' in ''/usr/share/eclipse/dropins'' which will contain the ''feature.xml'' |
Revision as of 13:55, 9 June 2011
References
- Eclipse-fedorapackager-project on fedorahosted
- Eclipse Plugins Packaging
- Packaging references list
- Maximum RPM
- Package_Source_Control
- Eclipse_Fedora_Packager_User_Guide
- Package Maintainers
- Join_the_package_collection_maintainers
- Eclipse_How_to_Maintain_Fedora_Package_User_Guide
- New_package_process_for_existing_contributors
- ReviewGuidelines
- Alex Kurtakov packages
- All about %prep/%setup
Case Study
- Review-Request Mylyn-context - Mylyn - build (Severin Gehwolf)
- new package SCM request
- git
- Alex Kurtakov packages
Mercurial Eclipse
- Clone the source from javaforge using
hg clone http://javaforge.com:8000/hgeclipse
- Create an archive of the latest release source: how to create an archive of a specific tag in mercurial
hg archive -r RELEASE_1.8.1 --type=tar ../mercurialeclipse_1-8-1.tar.bz2
- problem with this ccommand:
- type=tar caused problem while decompressing the tar ball with pde-script, so we can just archive as a regular folder
- It's better to keep the name of the folder as just mercurial then we will put it in a folder called eclipse-mercurial
- so the new command is:
hg archive -r RELEASE_1.8.1 ../eclipse-mercurial/mercurial
- Create a new feature in Eclipse using New -> feature
- Add this feature id to %build in .spec file in -f option
- Don't need to add -d (dependencies) for now, until it complains
- Added mylyn as the dependency later
- Create an archive file of the feature then add it to the SOURCES in RPM project.
- you may need to add that to the %prep in .spec file.
- In the old version, I added the feature as a source and used this %prep to unpack everything:
%setup %setup -T -D -a 1
- After making sure it works,
- I put the com.vectrace.mercurialeclipse-feature plugin folder in eclipse-mercurial folder.
- eclipse-mercurial also contains mercurial folder
- use this command to create the tar ball:
tar -cf eclipse-mercurial-R_1_0_0.tar.bz2 eclipse-mercurial
- using -cf option instead of -cjf prevents causing the extract problem for pde-script (some times it complained that it couldn't remove the folder eclipse-mercurial because it was not empty, after compressing using -cf option, didn't complain anymore)
- To install the package
- Install for the first time:
- cd PATH/TO/RPMS/IN/RPM-PROEJCT/noarch/
- rpm -i eclipse-mercurial-R_1_0_0.noarch.rpm
- Install the updated packages
- Yum remove eclipse-mercurial-R_1_0_0
- again rpm -i....
- This will created a folder called mercurial in /usr/share/eclipse/dropins which will contain the feature.xml