You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dominique Leuenberger b83c61c4da Accepting request 1064245 from systemsmanagement:cockpit
OBS-URL: https://build.opensuse.org/request/show/1064245
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cockpit?expand=0&rev=28
4 months ago
.gitattributes - Initial release 0.38 8 years ago
0001-selinux-allow-login-to-read-motd-file.patch - new version 271 12 months ago
0002-selinux-temporary-remove-setroubleshoot-section.patch Accepting request 1043313 from home:djz88:branches:systemsmanagement:cockpit 5 months ago
README.packaging - new version 271 12 months ago
_service - new version 276.1 9 months ago
_servicedata - Merge SUSE branding into cockpit package 9 months ago
cockpit-276.1.obscpio - new version 276.1 9 months ago
cockpit-rpmlintrc Accepting request 798947 from home:lnussel:branches:systemsmanagement:cockpit 3 years ago
cockpit-suse-theme.obscpio Don't use set_version service for cockpit-suse-theme 9 months ago
cockpit-suse-theme.obsinfo Don't use set_version service for cockpit-suse-theme 9 months ago
cockpit.changes - Migration of PAM settings to /usr/lib/pam.d. 4 months ago
cockpit.obsinfo - new version 276.1 9 months ago
cockpit.pam Accepting request 711871 from home:bmanojlovic:admin 4 years ago
cockpit.spec - Migration of PAM settings to /usr/lib/pam.d. 4 months ago
css-overrides.patch - new version 276.1 9 months ago
hide-docs.patch - new version 276.1 9 months ago
hide-pcp.patch - new version 271 12 months ago
node_modules.obscpio - new version 276.1 9 months ago
node_modules.spec.inc - new version 276.1 9 months ago
package-lock.json - new version 276.1 9 months ago
storage-btrfs.patch Accepting request 991521 from home:jtomasiak:branches:systemsmanagement:cockpit 10 months ago
suse-microos-branding.patch Accepting request 991521 from home:jtomasiak:branches:systemsmanagement:cockpit 10 months ago

README.packaging

The upstream cockpit spec file is rather complex and ugly. It does
contain information we need though, such as the bundled node
modules. Therefore the package reuses the upstream spec file and
applies openSUSE specifics that upstream doesn't accept on top. For
that purpose a git repo tracks the spec file changes:
https://github.com/lnussel/cockpit

There' an opensuse-$VERSION branch for each release

For simple fixes it's fine to just submit the spec file by OBS
means, I'll retrofit in git. Don't worry about that.

For version updates the git workflow really is needed to maintain
mental health though.

The following workflow is used to update the package to a newer
version:

- create a branch for the new version based on the old one:
  git checkout -b opensuse-$NEW_VERSION opensuse-$OLD_VERSION
- use interactive rebase to amend the commits marked as EDIT THIS:
  git rebase -i $NEW_VERSION
  * for the very fist commit download the new tarball and extract
    the spec file from it. Copy the spec file over
    tools/cockpit.spec. That is basically what changed between the
    versions wrt spec file.
  * the second one adjust the spec file to have $NEW_VERSION. For
    whatever reason the upstream spec file alwas has version 0.
  * the rest of the changes should just apply.
- copy the spec file back into the OBS checkout and continue with
  regular tasks related to updating packages.
- If any further spec file changes were needed, copy the spec back
  into the git tree and commit there. Amend and reorder as needed.
- When done, push the git repo.

Sending fixes upstream:

if you have any changes that should go upstream, create a new, clean
branch and cherry pick *one* commit into it. Upstream wants pull
requests with only one commit

NOTE: ONLY the .spec file should be in the git.

IDEA: maybe other things should be removed from the git tree then?