From Fedora Project Wiki

m (internal link cleaning)
m (internal link cleaning)
Line 1: Line 1:
== repositories ==
== repositories ==
* [http://git.fedorahosted.org/git/?p=eclipse-fedorapackager.git;a=summary fedorapackager git]
* [http://git.fedorahosted.org/git/?p=eclipse-fedorapackager.git;a=summary fedorapackager git]
* [https://fedoraproject.org/wiki/Eclipse/MylynPackaging wiki mylyn packaging]
* [[Eclipse/MylynPackaging|wiki mylyn packaging]]
*[http://dev.eclipse.org/viewcvs/viewvc.cgi/?root=Mylyn_Project cvs for eclipse-mylyn] - deprecated
*[http://dev.eclipse.org/viewcvs/viewvc.cgi/?root=Mylyn_Project cvs for eclipse-mylyn] - deprecated
*[http://git.eclipse.org/c/mylyn/ git for eclipse-mylyn]
*[http://git.eclipse.org/c/mylyn/ git for eclipse-mylyn]
Line 16: Line 16:
* [[Package_update_HOWTO|CLI fedpkg update]]
* [[Package_update_HOWTO|CLI fedpkg update]]
* [[Using_git_FAQ_for_package_maintainers|CLI fedpkg import]]
* [[Using_git_FAQ_for_package_maintainers|CLI fedpkg import]]
* [https://fedoraproject.org/wiki/EclipseIndigo eclipse indigo]
* [[EclipseIndigo|eclipse indigo]]
* [https://fedorahosted.org/eclipse-fedorapackager/ Eclipse-fedorapackager-project] on fedorahosted
* [https://fedorahosted.org/eclipse-fedorapackager/ Eclipse-fedorapackager-project] on fedorahosted
* [http://fedoraproject.org/wiki/Packaging:EclipsePlugins Eclipse Plugins Packaging]
* [[Packaging:EclipsePlugins|Eclipse Plugins Packaging]]
* [http://fedoraproject.org/wiki/Category:Packaging_guidelines Packaging references list]
* [[Category:Packaging_guidelines|Packaging references list]]
* [http://www.rpm.org/max-rpm/ Maximum RPM]
* [http://www.rpm.org/max-rpm/ Maximum RPM]
* [https://fedoraproject.org/wiki/Package_Source_Control Package_Source_Control]
* [[Package_Source_Control|Package_Source_Control]]
* [https://fedoraproject.org/wiki/Eclipse_Fedora_Packager_User_Guide Eclipse_Fedora_Packager_User_Guide]
* [[Eclipse_Fedora_Packager_User_Guide|Eclipse_Fedora_Packager_User_Guide]]
* [http://fedoraproject.org/wiki/Category:Package_Maintainers Package Maintainers]
* [[Category:Package_Maintainers|Package Maintainers]]
* [http://fedoraproject.org/wiki/Join_the_package_collection_maintainers Join_the_package_collection_maintainers]
* [[Join_the_package_collection_maintainers|Join_the_package_collection_maintainers]]
* [https://fedoraproject.org/wiki/Eclipse_How_to_Maintain_Fedora_Package_User_Guide Eclipse_How_to_Maintain_Fedora_Package_User_Guide]
* [[Eclipse_How_to_Maintain_Fedora_Package_User_Guide|Eclipse_How_to_Maintain_Fedora_Package_User_Guide]]
* [http://fedoraproject.org/wiki/New_package_process_for_existing_contributors New_package_process_for_existing_contributors ]
* [[New_package_process_for_existing_contributors|New_package_process_for_existing_contributors ]]
* [[Packaging:ReviewGuidelines|ReviewGuidelines]]  
* [[Packaging:ReviewGuidelines|ReviewGuidelines]]  
* [https://admin.fedoraproject.org/pkgdb/users/packages/akurtakov Alex Kurtakov packages]
* [https://admin.fedoraproject.org/pkgdb/users/packages/akurtakov Alex Kurtakov packages]
* [http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html All about %prep/%setup]
* [http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html All about %prep/%setup]
* [[Java_review_template|Java Review Tempalte]]
* [[Java_review_template|Java Review Tempalte]]
* [http://fedoraproject.org/wiki/Extras/MockTricks Mock build]
* [[Extras/MockTricks|Mock build]]


== Case Study ==
== Case Study ==

Revision as of 04:33, 20 September 2016

repositories

References

Case Study

Mercurial Eclipse

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-1.8.1/mercurial
  • Create a new feature in Eclipse using New -> feature

Mercurial Create 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.
Before, I put the com.vectrace.mercurialeclipse-feature plugin folder in eclipse-mercurial folder. --not anymore
you may need to add that to the %prep in .spec file.
     %setup 
     %setup -T -D -a 1
  • For using changelog
Go to window -> preferences -> changelog -> enter your name and email
in .spec file editor -> %changelog -> Ctrl+Alt+C
  • After making sure it works,: use this command to create the tar ball: tar -cf eclipse-mercurial-1.8.1.tar.bz2 eclipse-mercurial-1.8.1: some times it complained that it couldn't remove the folder eclipse-mercurial because it was not empty, one solution is to kill the process:
    pgrep rpmbuild    #if it showed the id so it's running
    kill `rpmbuild`

Eclipse Mercurial Spec File

  • To install the package
Install for the first time:
cd PATH/TO/RPMS/IN/RPM-PROEJCT/noarch/
rpm -i eclipse-mercurial-1.8.1.noarch.rpm
Install the updated packages
Yum remove eclipse-mercurial-1.8.1
again rpm -i....
This will created a folder called mercurial in /usr/share/eclipse/dropins which will contain the feature.xml
  • The bash script
This script will be used to clone and create the source later, when using FedoraPackaer
  RELEASE="1.8.1"

  hg clone http://javaforge.com:8000/hgeclipse && \
  pushd hgeclipse > /dev/null && \
  hg archive -r RELEASE_${RELEASE} eclipse-mercurial-${RELEASE}/mercurial &&\
  tar -cf eclipse-mercurial-${RELEASE}.tar.bz2 eclipse-mercurial-${RELEASE}  && \
  mv eclipse-mercurial-${RELEASE}.tar.bz2 ../ && \
  popd > /dev/null && rm -rf hgeclipse
pushd makes the mentioned directory, the top level directory
  • find the version qualifier of mercurial-feature-group
eclipse -nosplash -consolelog -application org.eclipse.equinox.p2.director -repository http://cbes.javaforge.com/update -list | grep feature.group
  • Ticket on javaforge (codeBeamer) for release of feature.xml of mercurial-eclipse
http://www.javaforge.com/issue/17846?orgDitchnetTabPaneId=task-details-comments
  • Errors on Koji build
Make sure to run fedora-cert -n
Not sure what fedora-packager-setup is for.....
If there was an error, it might have been because the certificate is expired or it was created using another machine so again do the fedora-cert -n
http://fedoraproject.org/wiki/Using_the_Koji_build_system#Using_Koji_in_Fedora