#172 Add Fedora Kinoite variant sub packages
Merged 3 years ago by sgallagh. Opened 3 years ago by siosm.
rpms/ siosm/fedora-release main  into  rawhide

file modified
+66 -3
@@ -28,6 +28,7 @@ 

  %bcond_with matecompiz

  %bcond_with server

  %bcond_with silverblue

+ %bcond_with kinoite

  %bcond_with snappy

  %bcond_with soas

  %bcond_with workstation
@@ -46,6 +47,7 @@ 

  %bcond_without matecompiz

  %bcond_without server

  %bcond_without silverblue

+ %bcond_without kinoite

  %bcond_without snappy

  %bcond_without soas

  %bcond_without workstation
@@ -58,7 +60,7 @@ 

  Summary:        Fedora release files

  Name:           fedora-release

  Version:        35

- Release:        0.4%{?eln:.eln%{eln}}

+ Release:        0.5%{?eln:.eln%{eln}}

  License:        MIT

  URL:            https://fedoraproject.org/

  
@@ -595,6 +597,43 @@ 

  %endif

  

  

+ %if %{with kinoite}

+ %package kinoite

+ Summary:        Base package for Fedora Kinoite-specific default configurations

+ 

+ RemovePathPostfixes: .kinoite

+ Provides:       fedora-release = %{version}-%{release}

+ Provides:       fedora-release-variant = %{version}-%{release}

+ Provides:       system-release

+ Provides:       system-release(%{version})

+ Provides:       base-module(platform:f%{version})

+ Requires:       fedora-release-common = %{version}-%{release}

+ 

+ # fedora-release-common Requires: fedora-release-identity, so at least one

+ # package must provide it. This Recommends: pulls in

+ # fedora-release-identity-kinoite if nothing else is already doing so.

+ Recommends:     fedora-release-identity-kinoite

+ 

+ 

+ %description kinoite

+ Provides a base package for Fedora Kinoite-specific configuration files to

+ depend on as well as Kinoite system defaults.

+ 

+ 

+ %package identity-kinoite

+ Summary:        Package providing the identity for Fedora Kinoite

+ 

+ RemovePathPostfixes: .kinoite

+ Provides:       fedora-release-identity = %{version}-%{release}

+ Conflicts:      fedora-release-identity

+ 

+ 

+ %description identity-kinoite

+ Provides the necessary files for a Fedora installation that is identifying

+ itself as Fedora Kinoite.

+ %endif

+ 

+ 

  %if %{with snappy}

  %package snappy

  Summary:        Base package for Fedora snap specific default configurations
@@ -956,6 +995,17 @@ 

  sed -e "s#\$version#%{bug_version}#g" -e 's/$edition/Silverblue/;s/<!--.*-->//;/^$/d' %{SOURCE20} > %{buildroot}%{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.silverblue

  %endif

  

+ %if %{with kinoite}

+ # Kinoite

+ cp -p os-release \

+       %{buildroot}%{_prefix}/lib/os-release.kinoite

+ echo "VARIANT=\"Kinoite\"" >> %{buildroot}%{_prefix}/lib/os-release.kinoite

+ echo "VARIANT_ID=kinoite" >> %{buildroot}%{_prefix}/lib/os-release.kinoite

+ sed -i -e "s|(%{release_name}%{?prerelease})|(Kinoite%{?prerelease})|g" %{buildroot}%{_prefix}/lib/os-release.kinoite

+ sed -i -e 's|DOCUMENTATION_URL=.*|DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-kinoite/"|' %{buildroot}%{_prefix}/lib/os-release.kinoite

+ sed -e "s#\$version#%{bug_version}#g" -e 's/$edition/Kinoite/;s/<!--.*-->//;/^$/d' %{SOURCE20} > %{buildroot}%{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.kinoite

+ %endif

+ 

  %if %{with snappy}

  # Snappy

  cp -p os-release \
@@ -995,12 +1045,12 @@ 

  install -Dm0644 %{SOURCE16} -t %{buildroot}%{_datadir}/glib-2.0/schemas/

  %endif

  

- %if %{with silverblue}

+ %if %{with silverblue} || %{with kinoite}

  # Install rpm-ostree polkit rules

  install -Dm0644 %{SOURCE17} -t %{buildroot}%{_datadir}/polkit-1/rules.d/

  %endif

  

- %if %{with silverblue} || %{with iot}

+ %if %{with silverblue} || %{with iot} || %{with kinoite}

  # Pull Count Me timer for rpm-ostreed

  install -dm0755 %{buildroot}%{_unitdir}/rpm-ostreed.service.wants/

  ln -snf %{_unitdir}/rpm-ostree-countme.timer %{buildroot}%{_unitdir}/rpm-ostreed.service.wants/
@@ -1201,6 +1251,16 @@ 

  %endif

  

  

+ %if %{with kinoite}

+ %files kinoite

+ %files identity-kinoite

+ %{_prefix}/lib/os-release.kinoite

+ %attr(0644,root,root) %{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.kinoite

+ %attr(0644,root,root) %{_prefix}/share/polkit-1/rules.d/org.projectatomic.rpmostree1.rules

+ %{_unitdir}/rpm-ostreed.service.wants/rpm-ostree-countme.timer

+ %endif

+ 

+ 

  %if %{with snappy}

  %files snappy

  %files identity-snappy
@@ -1238,6 +1298,9 @@ 

  

  

  %changelog

+ * Wed Mar 17 2021 Timothée Ravier <travier@redhat.com> - 35-0.5

+ - Add Fedora Kinoite variant sub package

+ 

  * Wed Mar 17 2021 Timothée Ravier <travier@redhat.com> - 35-0.4

  - Enable Count Me timer for Silverblue and IoT

  

Add Fedora Kinoite variant

New release sub-package for the Fedora Kinoite variant based on
rpm-ostree and the KDE Plasma desktop.

See https://fedoraproject.org/wiki/Changes/Fedora_Kinoite

This also removes the addition of rpm-ostree polkit rule on Workstation
that was added in:
670f9ba Conditionalize the creation of the identity subpackages

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

rebased onto 56b1114963746b740f1f173436f74c4ef0d95411

3 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

rebased onto 6a517736bfe0a0619ed95ade66017315e670971b

3 years ago

This documentation URL does not exist.

Build succeeded.

@siosm Can you confirm that the DOCUMENTATION_URL will exist by the time F35 hits Beta? If so, I'll go ahead and merge this.

I'm working on the docs right now. Will ping here when this is OK.

Just to avoid any confusion, this is for Fedora 35 only (not for F34).

(Hold until the previously mentioned PR is merged).

rebased onto 79dec3627520a858fc61acdb3cc57a1559fe4866

3 years ago

Build succeeded.

rebased onto 7cc185214d2e00dba62fc6fa12e48cd21ecee4b8

3 years ago

Build succeeded.

rebased onto 12428f7d319357ec76055e078824ec9686b60a6c

3 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

2 new commits added

  • Add a generic rpm-ostree release variant
  • Add Fedora Kinoite variant
3 years ago

I re-made this PR independent and it should be ready for review. @ngompa @walters

Build succeeded.

This looks good to me. :thumbsup:

rebased onto 9452590fef099e21d3a907fa968fc07fd4a86dab

3 years ago

rebased onto 901a1ddc8ecfb9c318dfe2916265d91d94ade02a

3 years ago

@sgallagh Sorry for the change again but I removed the rpm-ostree variant from this one while we figure out how to name it. This PR is now only for Kinoite and should be ready to merge.

rebased onto 8d3c58f59777838559e690b5f1cec361cd34a4de

3 years ago

rebased onto 9d022fc

3 years ago

3 new commits added

  • Add Fedora Kinoite variant sub package
  • Enable Count Me support for Silverblue and IoT
  • Workstation: Remove unneeded rpm-ostree polkit rule
3 years ago

Build succeeded.

rebased onto aa6940a50b8d3442a63fee8934d6ecbbe8945c80

3 years ago

rebased onto 28390009a0f7d773704226c32ecb26b6d9f4b540

3 years ago

This date needs to be fixed.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

rebased onto 4df98fbce7da68bcb92969f98806259fcdad2fec

3 years ago

rebased onto a7f425a

3 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Pull-Request has been merged by sgallagh

3 years ago

Thanks for merging this. Can we get a build for those changes? Thanks!

Metadata