Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata into packages #44

Merged
merged 7 commits into from
Jun 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions package/yast2-dhcp-server.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri May 31 12:28:42 UTC 2019 - Stasiek Michalski <hellcp@mailbox.org>

- Add metainfo (fate#319035)
- Revamp spec
- Replace GenericName with Comment
- 4.2.0

-------------------------------------------------------------------
Wed Dec 12 13:16:55 UTC 2018 - lslezak@suse.cz

Expand Down
67 changes: 40 additions & 27 deletions package/yast2-dhcp-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,69 +12,82 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name: yast2-dhcp-server
Version: 4.1.5
Version: 4.2.0
Release: 0
Summary: YaST2 - DHCP Server Configuration
Group: System/YaST
License: GPL-2.0-only
Url: https://github.com/yast-dhcp-server

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2

Group: System/YaST
License: GPL-2.0-only
BuildRequires: perl-Digest-SHA1 perl-X500-DN perl-XML-Writer docbook-xsl-stylesheets doxygen libxslt perl-XML-Writer popt-devel sgml-skel update-desktop-files yast2-perl-bindings yast2-testsuite yast2-dns-server
BuildRequires: yast2-devtools >= 3.1.10
BuildRequires: perl-Digest-SHA1
BuildRequires: perl-X500-DN
BuildRequires: perl-XML-Writer
BuildRequires: docbook-xsl-stylesheets
BuildRequires: doxygen
BuildRequires: libxslt
BuildRequires: perl-XML-Writer
BuildRequires: popt-devel
BuildRequires: sgml-skel
BuildRequires: update-desktop-files
BuildRequires: yast2-perl-bindings
BuildRequires: yast2-testsuite
BuildRequires: yast2-dns-server
BuildRequires: yast2-devtools >= 4.2.2
# Yast2::ServiceWidget
BuildRequires: yast2 >= 4.1.0
BuildRequires: rubygem(%rb_default_ruby_abi:rspec)
BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake)

Requires: perl-gettext yast2-perl-bindings bind-utils perl-X500-DN yast2-ldap perl-Digest-SHA1 perl-Parse-RecDescent
Requires: perl-gettext
Requires: yast2-perl-bindings
Requires: bind-utils
Requires: perl-X500-DN
Requires: yast2-ldap
Requires: perl-Digest-SHA1
Requires: perl-Parse-RecDescent
# firewalld_wrapper.rb
Requires: yast2 >= 4.1.22

# DnsServerAPI::IsServiceConfigurableExternally
Requires: yast2-dns-server >= 2.13.16

BuildArchitectures: noarch

Requires: yast2-ruby-bindings >= 1.0.0

Summary: YaST2 - DHCP Server Configuration
BuildArch: noarch

%description
This package contains the YaST2 component for DHCP server
configuration.

%prep
%setup -n %{name}-%{version}
%setup -q

%check
rake test:unit
%yast_check

%build
%yast_build

%install
%yast_install

%yast_metainfo

%files
%defattr(-,root,root)
%dir %{yast_yncludedir}/dhcp-server
%{yast_yncludedir}/dhcp-server/*
%{yast_clientdir}/dhcp-server.rb
%{yast_clientdir}/dhcp-server_*.rb
%{yast_moduledir}/*
%{yast_desktopdir}/dhcp-server.desktop
%{yast_scrconfdir}/cfg_dhcpd.scr
%{yast_scrconfdir}/etc_dhcpd_conf.scr
%{yast_agentdir}/ag_dhcpd_conf
%{yast_yncludedir}
%{yast_clientdir}
%{yast_moduledir}
%{yast_desktopdir}
%{yast_metainfodir}
%{yast_scrconfdir}
%{yast_agentdir}
%doc %{yast_docdir}
%license COPYING
%{yast_icondir}
%{yast_schemadir}/autoyast/rnc/dhcp-server.rnc
%{yast_schemadir}

%changelog
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ schemafiles_DATA = \
autoyast-rnc/dhcp-server.rnc

desktop_DATA = \
desktop/dhcp-server.desktop
desktop/org.opensuse.yast.DHCPServer.desktop

symbolicdir = @icondir@/hicolor/symbolic/apps
symbolic_DATA = \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ X-SuSE-YaST-AutoInstSchema=dhcp-server.rnc
Icon=yast-dhcp-server
Exec=xdg-su -c "/sbin/yast2 dhcp-server"

Name=DHCP Server
GenericName=Configure a DHCP server
Name=YaST DHCP Server
GenericName=DHCP Server
Comment=Configure a DHCP server
StartupNotify=true
2 changes: 1 addition & 1 deletion src/include/dhcp-server/dns-server-management.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ def ManageDNSServer(param_current_settings)
Label.CancelButton,
Label.OKButton
)
Wizard.SetDesktopTitleAndIcon("dhcp-server")
Wizard.SetDesktopTitleAndIcon("org.opensuse.yast.DHCPServer")

InitDNSServerConfiguration(@current_settings)

Expand Down
2 changes: 1 addition & 1 deletion src/include/dhcp-server/dns-server-wizard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ def RunNewDNSServerWizard(dhcp_settings)
}

Wizard.CreateDialog
Wizard.SetDesktopTitleAndIcon("dhcp-server")
Wizard.SetDesktopTitleAndIcon("org.opensuse.yast.DHCPServer")

dns_server_settings = DnsServer.Export
ret = Sequencer.Run(aliases, sequence)
Expand Down
4 changes: 2 additions & 2 deletions src/include/dhcp-server/wizards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def MainSequence
# @return sequence result
def DhcpAutoSequence
Wizard.CreateDialog
Wizard.SetDesktopTitleAndIcon("dhcp-server")
Wizard.SetDesktopTitleAndIcon("org.opensuse.yast.DHCPServer")
Wizard.SetContentsButtons(
"",
VBox(),
Expand Down Expand Up @@ -172,7 +172,7 @@ def DhcpSequence
}

Wizard.CreateDialog
Wizard.SetDesktopTitleAndIcon("dhcp-server")
Wizard.SetDesktopTitleAndIcon("org.opensuse.yast.DHCPServer")
ret = Sequencer.Run(aliases, sequence)

UI.CloseDialog
Expand Down