Skip to content

Commit

Permalink
Merge pull request #459 from yast/fix-service-packaging
Browse files Browse the repository at this point in the history
Fix service package to include YaST2 dependencies
  • Loading branch information
imobachgs committed Mar 8, 2023
2 parents b27d76b + b964932 commit deeb68b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
38 changes: 18 additions & 20 deletions service/package/gem2rpm.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
---
:sourceurl: "%{mod_full_name}.gem"
:preamble: |-
# Override build.rpm, see also https://github.com/openSUSE/obs-build/blob/master/configs/
%global rb_build_versions %{rb_default_ruby}
BuildRequires: dbus-1-common
Requires: dbus-1-common
Requires: snapper
Requires: yast2-bootloader
Requires: yast2-country
Requires: yast2-hardware-detection
Requires: yast2-installation
Requires: yast2-network
Requires: yast2-proxy
Requires: yast2-storage-ng
Requires: yast2-iscsi-client >= 4.5.7
Requires: yast2-users
# yast2 with ArchFilter
Requires: yast2 >= 4.5.20
# ## used by gem2rpm
:post_install: |-
install -D -m 0644 %{buildroot}%{gem_base}/gems/%{mod_full_name}/share/dbus.conf %{buildroot}%{_datadir}/dbus-1/d-installer.conf
install --directory %{buildroot}%{_datadir}/dbus-1/d-installer-services
install -m 0644 --target-directory=%{buildroot}%{_datadir}/dbus-1/d-installer-services %{buildroot}%{gem_base}/gems/%{mod_full_name}/share/org.opensuse.DInstaller*.service
install -D -m 0644 %{buildroot}%{gem_base}/gems/%{mod_full_name}/share/systemd.service %{buildroot}%{_unitdir}/d-installer.service
install -D -m 0644 %{buildroot}%{gem_base}/gems/%{mod_full_name}/etc/d-installer.yaml %{buildroot}%{_sysconfdir}/d-installer.yaml
# ## used by gem_packages
:main:
:preamble: |-
# Override build.rpm, see also https://github.com/openSUSE/obs-build/blob/master/configs/
%global rb_build_versions %{rb_default_ruby}
BuildRequires: dbus-1-common
Requires: dbus-1-common
Requires: snapper
Requires: yast2-bootloader
Requires: yast2-country
Requires: yast2-hardware-detection
Requires: yast2-installation
Requires: yast2-network
Requires: yast2-proxy
Requires: yast2-storage-ng
Requires: yast2-iscsi-client >= 4.5.7
Requires: yast2-users
# yast2 with ArchFilter
Requires: yast2 >= 4.5.20
:filelist: "%{_datadir}/dbus-1/d-installer.conf\n
%dir %{_datadir}/dbus-1/d-installer-services\n
%{_datadir}/dbus-1/d-installer-services/org.opensuse.DInstaller*.service\n
%{_unitdir}/d-installer.service\n
%{_sysconfdir}/d-installer.yaml\n"
%config %{_sysconfdir}/d-installer.yaml\n"
6 changes: 6 additions & 0 deletions service/package/rubygem-d-installer.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 8 07:46:54 UTC 2023 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Fix gem2rpm configuration to include YaST2 dependencies
(gh#yast/d-installer#459).

-------------------------------------------------------------------
Thu Mar 2 08:48:36 UTC 2023 - Ancor Gonzalez Sosa <ancor@suse.com>

Expand Down

0 comments on commit deeb68b

Please sign in to comment.