-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate common files from service rubygem (#1677)
## Problem split out files independent of Ruby version from rubygem-agama-yast - https://trello.com/c/yAFVjbv6/3824-3-improve-rubygem-agama-yast-packaging ## Solution Make `rubygem-agama-yast` in OBS a *multibuild* package where `agama-yast.gem` is a source for two spec files: - `rubygem-agama-yast.spec` via `gem2rpm.yml`, containing the ruby+gem-versioned files, as usual with Rubygems - `agama-yast.spec` containing the common files for D-Bus and translations https://build.opensuse.org/package/show/home:mvidner:branches:systemsmanagement:Agama:Devel/rubygem-agama-yast ## Testing - *Added a new unit test* - *Tested manually* ## Screenshots N/A
- Loading branch information
Showing
6 changed files
with
123 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
*.gem | ||
# the spec file is generated | ||
/package/*.spec | ||
/package/rubygem*.spec | ||
*.rbc | ||
/.config | ||
/coverage/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# | ||
# spec file for package agama-yast | ||
# | ||
# Copyright (c) 2024 SUSE LLC | ||
# | ||
# All modifications and additions to the file contributed by third parties | ||
# remain the property of their copyright owners, unless otherwise agreed | ||
# upon. The license for this file, and modifications and additions to the | ||
# file, is the same license as for the pristine package itself (unless the | ||
# license for the pristine package is not an Open Source License, in which | ||
# case the license is the MIT License). An "Open Source License" is a | ||
# license that conforms to the Open Source Definition (Version 1.9) | ||
# published by the Open Source Initiative. | ||
|
||
# Please submit bugfixes or comments via https://bugs.opensuse.org/ | ||
# | ||
|
||
|
||
Name: agama-yast | ||
Version: @VERSION@ | ||
Release: 0 | ||
%define mod_name agama-yast | ||
%define mod_full_name %{mod_name}-%{version} | ||
BuildRequires: dbus-1-common | ||
# "msgfmt" tool | ||
BuildRequires: gettext-runtime | ||
Requires: dbus-1-common | ||
Requires: rubygem(agama-yast) | ||
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
BuildRequires: ruby-macros >= 5 | ||
|
||
URL: https://github.com/openSUSE/agama | ||
Source: %{mod_full_name}.gem | ||
Source1: po.tar.bz2 | ||
Source2: install_translations.sh | ||
Summary: YaST integration service for Agama - common files | ||
License: GPL-2.0-only | ||
Group: Development/Languages/Ruby | ||
|
||
%description | ||
D-Bus service exposing some YaST features that are useful for Agama. | ||
|
||
%prep | ||
%{gem_unpack} | ||
|
||
%build | ||
|
||
%install | ||
install -D -m 0644 %{mod_full_name}/share/dbus.conf %{buildroot}%{_datadir}/dbus-1/agama.conf | ||
install --directory %{buildroot}%{_datadir}/dbus-1/agama-services | ||
install -m 0644 --target-directory=%{buildroot}%{_datadir}/dbus-1/agama-services %{mod_full_name}/share/org.opensuse.Agama*.service | ||
install -D -m 0644 %{mod_full_name}/share/agama.service %{buildroot}%{_unitdir}/agama.service | ||
install -D -m 0644 %{mod_full_name}/share/agama-proxy-setup.service %{buildroot}%{_unitdir}/agama-proxy-setup.service | ||
install --directory %{buildroot}/usr/share/agama/conf.d | ||
install -D -m 0644 %{mod_full_name}/conf.d/*.yaml %{buildroot}/usr/share/agama/conf.d/ | ||
|
||
# run a script for installing the translations | ||
sh "%{SOURCE2}" "%{SOURCE1}" | ||
|
||
%pre | ||
%service_add_pre agama.service | ||
|
||
%post | ||
%service_add_post agama.service | ||
|
||
%preun | ||
%service_del_preun agama.service | ||
|
||
%postun | ||
%service_del_postun_with_restart agama.service | ||
|
||
%files | ||
%{_datadir}/dbus-1/agama.conf | ||
%dir %{_datadir}/dbus-1/agama-services | ||
%{_datadir}/dbus-1/agama-services/org.opensuse.Agama*.service | ||
%{_unitdir}/agama.service | ||
%{_unitdir}/agama-proxy-setup.service | ||
%dir %{_datadir}/agama | ||
%dir %{_datadir}/agama/conf.d | ||
%{_datadir}/agama/conf.d | ||
%dir /usr/share/YaST2 | ||
/usr/share/YaST2/locale | ||
|
||
%changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Tue Nov 5 16:11:35 UTC 2024 - Martin Vidner <[email protected]> | ||
|
||
- packaging: split out files independent of Ruby version | ||
from rubygem-agama-yast (gh#agama-project/agama#1677). | ||
|
||
------------------------------------------------------------------- | ||
Wed Oct 30 11:33:54 UTC 2024 - José Iván López González <[email protected]> | ||
|
||
|