From Fedora Project Wiki

(Redirect Package Maintainer wiki links to docs.fp.o)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== repositories ==
* [http://git.fedorahosted.org/git/?p=eclipse-fedorapackager.git;a=summary fedorapackager git]
* [[Eclipse/MylynPackaging|wiki mylyn packaging]]
*[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/ git for eclipse]
*[http://dev.eclipse.org/viewcvs/viewvc.cgi/ cvs for eclipse]
*[http://pkgs.fedoraproject.org/gitweb/ git package repositories for all packages]
*[http://pkgs.fedoraproject.org/gitweb/?p=eclipse-mylyn-tasks.git;a=summary git package repository for eclipse-mylyn-tasks]
*[https://admin.fedoraproject.org/pkgdb/acls/list/?searchwords=*eclipse-mylyn**&_csrf_token=a9da0ff2c59d6fa145850c861df765b2a9aee9ad pkgdb]
*[https://admin.fedoraproject.org/pkgdb/acls/name/eclipse-mylyn-builds?_csrf_token=a9da0ff2c59d6fa145850c861df765b2a9aee9ad mylyn-build package]
*[http://egit.eclipse.org/w/?p=egit.git;a=summary eclipse-egit]
*[http://egit.eclipse.org/w/?p=jgit.git;a=summary eclipse-jgit]
== References ==
== References ==
* [https://docs.fedoraproject.org/en-US/package-maintainers/Package_Update_Guide/ CLI fedpkg update]
* [[Using_git_FAQ_for_package_maintainers|CLI fedpkg import]]
* [[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]
* <pre>[[Category:Packaging_guidelines|Packaging references list]]</pre>
* [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]
* [https://docs.fedoraproject.org/en-US/package-maintainers/ Package Maintainers]
* [http://fedoraproject.org/wiki/Join_the_package_collection_maintainers Join_the_package_collection_maintainers]
* [https://docs.fedoraproject.org/en-US/package-maintainers/Joining_the_Package_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 ]
* [https://docs.fedoraproject.org/en-US/package-maintainers/New_Package_Process_for_Existing_Contributors/ New_package_process_for_existing_contributors]
* [http://fedoraproject.org/wiki/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]
* [http://fedoraproject.org/wiki/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 ==
Line 93: Line 110:


* Check the git repo @ [http://pkgs.fedoraproject.org/gitweb/?p=eclipse-mercurial.git;a=shortlog;h=28fd0fa5d6eeaebb495d569a7097cb6fe473d318 pkgs.fedoraproject.org/gitweb/]
* Check the git repo @ [http://pkgs.fedoraproject.org/gitweb/?p=eclipse-mercurial.git;a=shortlog;h=28fd0fa5d6eeaebb495d569a7097cb6fe473d318 pkgs.fedoraproject.org/gitweb/]
* Check the Koji build @ [http://koji.fedoraproject.org/koji/taskinfo?taskID=3164113 koji.fedoraproject.org/koji/]
* Check the Koji scratch-build @ [http://koji.fedoraproject.org/koji/taskinfo?taskID=3164113 koji.fedoraproject.org/koji/]
* Check the Koji build @ [http://koji.fedoraproject.org/koji/taskinfo?taskID=3164267 koji.fedoraproject.org/koji/]
* To make sure the version and release are proper compared to previous release: rpmdev-vercmp
* To make sure the version and release are proper compared to previous release: rpmdev-vercmp

Latest revision as of 20:16, 2 October 2021

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