#1 Add work-in-progress .spec files for COSMIC components.
Merged by ryanabx. Opened by ryanabx.
fedora-cosmic/ ryanabx/cosmic-packaging main  into  main

This PR brings my work in progress COSMIC spec files to the main repo, as well as the bootstrap script used in my COPR (bootstrap.sh), and the srpm preparation scripts for each package (srpm.sh in each package's folder).

The way I generated these spec files is through a python script (specgen.py) that takes a Dictionary of information about each package and puts it into the proper section in the .spec file. The script also creates the srpm.sh prep script that takes the sources and arranges them in the right place to be collected into the srpm. The information that's used to create the spec files is in cosmic_apps.py.

A lot of things can be cleaned up, and work still remains to make the spec files fully compliant with the Fedora packaging guidelines; however, this is a good start, as these builds are able to be done offline, and modifying all the spec files is as simple as modifying a section in the cosmic_apps python script.

The only component that is missing from this PR is cosmic-player, but that should be trivial to add.

2 new commits added

  • Add work in progress spec files
  • Update readme

2 new commits added

  • Add work in progress spec files
  • Update readme

Don't check in __pycache__ folder, you'll want to have a .gitignore file to ensure stuff like that doesn't get checked in.

2 new commits added

  • Add work in progress spec files
  • Update readme

This dependency needs to be fixed in greetd itself. The greetd package should have a Requires: (greetd-selinux if selinux-policy) stanza.

1 new commit added

  • add git to buildrequires

Use git-core instead of git unless you really need all the random Perl-written extensions.

  • GNU GENERAL PUBLIC LICENSE

I'm not sure what the license is for, but if it is supposed to apply to the spec files, please don't do this. Generally for Fedora the default license is MIT (or CC BY-SA for content). In principle it is OK to set a different license, but it's very rarely done. This is going to be a royal PITA to remember about this. It'll effectively prohibit copying of stuff from this work to other Fedora spec files.

2 new commits added

  • Add work in progress spec files
  • Update readme

I've removed the license and changed the build requirement to git-core instead of git.

The greetd package should have a Requires: (greetd-selinux if selinux-policy) stanza.

For now, is it possible to just add the Requires: (greetd-selinux if selinux-policy) into these spec files?

Sure, but I think you should also go ahead and make a pull request to greetd to fix it: https://src.fedoraproject.org/rpms/greetd

Sure, but I think you should also go ahead and make a pull request to greetd to fix it: https://src.fedoraproject.org/rpms/greetd

I may not need to do anything with it after all, I found this snippet in the greetd spec:

%if %{with selinux}
# This ensures that the *-selinux package and all it’s dependencies are not pulled
# into containers and other systems that do not use SELinux
Requires:       (%{name}-selinux = %{version}-%{release} if selinux-policy-%{selinuxtype})
%endif

This would cover the selinux case I think

2 new commits added

  • Add work in progress spec files
  • Update readme

Pull-Request has been merged by ryanabx

Metadata
Changes Summary 77
+3
file added
.gitignore
+5 -1
file changed
README.md
+7
file added
bootstrap.sh
+91
file added
cosmic-app-library/cosmic-app-library.spec
+65
file added
cosmic-app-library/srpm.sh
+93
file added
cosmic-applet-app-list/cosmic-applet-app-list.spec
+65
file added
cosmic-applet-app-list/srpm.sh
+93
file added
cosmic-applet-audio/cosmic-applet-audio.spec
+65
file added
cosmic-applet-audio/srpm.sh
+133
file added
cosmic-applet-battery/cosmic-applet-battery.spec
+65
file added
cosmic-applet-battery/srpm.sh
+95
file added
cosmic-applet-bluetooth/cosmic-applet-bluetooth.spec
+65
file added
cosmic-applet-bluetooth/srpm.sh
+93
file added
cosmic-applet-network/cosmic-applet-network.spec
+65
file added
cosmic-applet-network/srpm.sh
+96
file added
cosmic-applet-notifications/cosmic-applet-notifications.spec
+65
file added
cosmic-applet-notifications/srpm.sh
+98
file added
cosmic-applet-panel-button/cosmic-applet-panel-button.spec
+65
file added
cosmic-applet-panel-button/srpm.sh
+93
file added
cosmic-applet-power/cosmic-applet-power.spec
+65
file added
cosmic-applet-power/srpm.sh
+93
file added
cosmic-applet-status-area/cosmic-applet-status-area.spec
+65
file added
cosmic-applet-status-area/srpm.sh
+94
file added
cosmic-applet-tiling/cosmic-applet-tiling.spec
+65
file added
cosmic-applet-tiling/srpm.sh
+93
file added
cosmic-applet-time/cosmic-applet-time.spec
+65
file added
cosmic-applet-time/srpm.sh
+93
file added
cosmic-applet-workspaces/cosmic-applet-workspaces.spec
+65
file added
cosmic-applet-workspaces/srpm.sh
+41
file added
cosmic-applets/cosmic-applets.spec
+20
file added
cosmic-applets/srpm.sh
+93
file added
cosmic-bg/cosmic-bg.spec
+65
file added
cosmic-bg/srpm.sh
+92
file added
cosmic-comp/cosmic-comp.spec
+65
file added
cosmic-comp/srpm.sh
+96
file added
cosmic-edit/cosmic-edit.spec
+65
file added
cosmic-edit/srpm.sh
+51
file added
cosmic-epoch/cosmic-epoch.spec
+20
file added
cosmic-epoch/srpm.sh
+96
file added
cosmic-files/cosmic-files.spec
+65
file added
cosmic-files/srpm.sh
+121
file added
cosmic-greeter/cosmic-greeter.spec
+12
file added
cosmic-greeter/service.patch
+65
file added
cosmic-greeter/srpm.sh
+79
file added
cosmic-icons/cosmic-icons.spec
+59
file added
cosmic-icons/srpm.sh
+91
file added
cosmic-launcher/cosmic-launcher.spec
+65
file added
cosmic-launcher/srpm.sh
+91
file added
cosmic-notifications/cosmic-notifications.spec
+65
file added
cosmic-notifications/srpm.sh
+88
file added
cosmic-osd/cosmic-osd.spec
+65
file added
cosmic-osd/srpm.sh
+91
file added
cosmic-panel/cosmic-panel.spec
+65
file added
cosmic-panel/srpm.sh
+88
file added
cosmic-randr/cosmic-randr.spec
+65
file added
cosmic-randr/srpm.sh
+89
file added
cosmic-screenshot/cosmic-screenshot.spec
+65
file added
cosmic-screenshot/srpm.sh
+92
file added
cosmic-session/cosmic-session.spec
+65
file added
cosmic-session/srpm.sh
+88
file added
cosmic-settings-daemon/cosmic-settings-daemon.spec
+65
file added
cosmic-settings-daemon/srpm.sh
+102
file added
cosmic-settings/cosmic-settings.spec
+65
file added
cosmic-settings/srpm.sh
+89
file added
cosmic-store/cosmic-store.spec
+65
file added
cosmic-store/srpm.sh
+96
file added
cosmic-term/cosmic-term.spec
+65
file added
cosmic-term/srpm.sh
+90
file added
cosmic-workspaces/cosmic-workspaces.spec
+65
file added
cosmic-workspaces/srpm.sh
+993
file added
cosmic_apps.py
+174
file added
data/dependencies.md
+101
file added
pop-launcher/pop-launcher.spec
+65
file added
pop-launcher/srpm.sh
+178
file added
specgen.py
+65
file added
xdg-desktop-portal-cosmic/srpm.sh
+93
file added
xdg-desktop-portal-cosmic/xdg-desktop-portal-cosmic.spec