SHA256
1
0
forked from pool/kanku

specfile cleanup

OBS-URL: https://build.opensuse.org/package/show/devel:kanku/kanku?expand=0&rev=125
This commit is contained in:
Frank Schreiner 2021-06-12 15:23:36 +00:00 committed by Git OBS Bridge
parent c626590ab2
commit eb3b7b4080

View File

@ -1,7 +1,7 @@
# #
# spec file for package kanku # spec file for package kanku
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,8 +12,10 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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/
# #
%define kanku_user kankurun %define kanku_user kankurun
%define kanku_group kanku %define kanku_group kanku
%define kanku_vardir /var/lib/kanku/ %define kanku_vardir /var/lib/kanku/
@ -22,80 +24,71 @@ Name: kanku
# Version gets set by obs-service-tar_scm # Version gets set by obs-service-tar_scm
Version: 0.10.4 Version: 0.10.4
Release: 0 Release: 0
License: GPL-3.0 License: GPL-3.0-only
Summary: Development and continuous integration Summary: Development and continuous integration
Url: https://github.com/M0ses/kanku URL: https://github.com/M0ses/kanku
Group: Productivity/Networking/Web/Utilities Group: Productivity/Networking/Web/Utilities
Source: %{name}-%{version}.tar.xz Source: %{name}-%{version}.tar.xz
BuildArch: noarch BuildArch: noarch
BuildRequires: perl-macros
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: perl-macros
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
# perl requires for %check # perl requires for %check
BuildRequires: perl(Const::Fast) BuildRequires: perl(Const::Fast)
BuildRequires: perl(Test::Simple) BuildRequires: perl(Config::Tiny)
BuildRequires: perl(YAML::PP) BuildRequires: perl(DBIx::Class)
BuildRequires: perl(Config::Tiny) BuildRequires: perl(DBIx::Class::Fixtures)
BuildRequires: perl(Path::Class) BuildRequires: perl(DBIx::Class::Migration)
BuildRequires: perl(Sys::Virt) BuildRequires: perl(Dancer2)
BuildRequires: perl(Moose) BuildRequires: perl(Dancer2::Plugin::Auth::Extensible)
BuildRequires: perl(Log::Log4perl) BuildRequires: perl(Dancer2::Plugin::Auth::Extensible::Provider::DBIC)
BuildRequires: perl(MooseX::App) BuildRequires: perl(Dancer2::Plugin::DBIC)
BuildRequires: perl(MooseX::Singleton) BuildRequires: perl(Dancer2::Plugin::REST)
BuildRequires: perl(Dancer2::Plugin::REST) BuildRequires: perl(Expect)
BuildRequires: perl(Expect) BuildRequires: perl(File::HomeDir)
BuildRequires: perl(Net::SSH2) BuildRequires: perl(File::LibMagic)
BuildRequires: perl(Net::IP) BuildRequires: perl(IO::Interactive)
BuildRequires: perl(Net::OBS::Client) BuildRequires: perl(IO::Uncompress::UnXz)
BuildRequires: perl(XML::Structured) BuildRequires: perl(IPC::Run)
BuildRequires: perl(DBIx::Class::Migration) BuildRequires: perl(JSON::XS)
BuildRequires: perl(Template) BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Template::Plugin::Filter::ANSIColor) BuildRequires: perl(Moose)
BuildRequires: perl(Config::Tiny) BuildRequires: perl(MooseX::App)
BuildRequires: perl(Dancer2::Plugin::DBIC) BuildRequires: perl(MooseX::Singleton)
BuildRequires: perl(Dancer2::Plugin::Auth::Extensible) BuildRequires: perl(Net::IP)
BuildRequires: perl(Dancer2::Plugin::Auth::Extensible::Provider::DBIC) BuildRequires: perl(Net::OBS::Client)
BuildRequires: perl(File::HomeDir) BuildRequires: perl(Net::SSH2)
BuildRequires: perl(JSON::XS) BuildRequires: perl(Path::Class)
BuildRequires: perl(DBIx::Class) BuildRequires: perl(Plack)
BuildRequires: perl(DBIx::Class::Migration) BuildRequires: perl(Sys::Virt)
BuildRequires: perl(DBIx::Class::Fixtures) BuildRequires: perl(Template)
BuildRequires: perl(File::LibMagic) BuildRequires: perl(Template::Plugin::Filter::ANSIColor)
BuildRequires: perl(IO::Uncompress::UnXz) BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Plack) BuildRequires: perl(Test::Simple)
BuildRequires: perl(Dancer2) BuildRequires: perl(XML::Structured)
BuildRequires: perl(Dancer2::Plugin::REST) BuildRequires: perl(XML::XPath)
BuildRequires: perl(XML::XPath) BuildRequires: perl(YAML::PP)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(IPC::Run)
BuildRequires: perl(IO::Interactive)
# DBD::SQLite is also provided by perl-DBD-SQLite-Amalgamation # DBD::SQLite is also provided by perl-DBD-SQLite-Amalgamation
# but perl-DBD-SQLite-Amalgamation is breaks with SQL syntax errors # but perl-DBD-SQLite-Amalgamation is breaks with SQL syntax errors
# at job_histroy_sub table # at job_histroy_sub table
BuildRequires: perl-DBD-SQLite BuildRequires: perl-DBD-SQLite
BuildRequires: perl(LWP::UserAgent) BuildRequires: desktop-file-utils
BuildRequires: perl(LWP::Protocol::https) BuildRequires: libvirt-daemon
BuildRequires: perl(Mail::Sendmail) BuildRequires: shared-mime-info
BuildRequires: perl(Archive::Cpio) BuildRequires: perl(Archive::Cpio)
BuildRequires: perl(Dancer2) BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(Dancer2::Plugin) BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Dancer2::Plugin::REST) BuildRequires: perl(Mail::Sendmail)
BuildRequires: perl(Dancer2::Plugin::DBIC) BuildRequires: perl(Net::AMQP::RabbitMQ)
BuildRequires: perl(Dancer2::Plugin::WebSocket) BuildRequires: perl(UUID)
BuildRequires: perl(Dancer2::Plugin::Auth::Extensible)
BuildRequires: perl(Net::AMQP::RabbitMQ) Requires: kanku-cli = %{version}
BuildRequires: perl(UUID) Requires: kanku-dispatcher = %{version}
BuildRequires: libvirt-daemon Requires: kanku-scheduler = %{version}
BuildRequires: desktop-file-utils Requires: kanku-triggerd = %{version}
BuildRequires: shared-mime-info Requires: kanku-web = %{version}
Requires: kanku-cli = %{version} Requires: kanku-worker = %{version}
Requires: kanku-web = %{version}
Requires: kanku-worker = %{version}
Requires: kanku-scheduler = %{version}
Requires: kanku-dispatcher = %{version}
Requires: kanku-triggerd = %{version}
%description %description
kanku is a utility for integration of kiwi images built kanku is a utility for integration of kiwi images built
@ -128,62 +121,60 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rckanku-triggerd
%exclude /usr %exclude /usr
%package common %package common
Summary: Common files for kanku Summary: Common files for kanku
Recommends: osc Recommends: apache2
Recommends: perl(IO::Uncompress::UnXz) Recommends: osc
Recommends: apache2 Recommends: perl(IO::Uncompress::UnXz)
Recommends: perl(YAML::PP::LibYAML) Recommends: perl(YAML::PP::LibYAML)
Requires: libvirt-daemon-qemu libvirt-daemon-config-network libvirt-daemon-config-nwfilter Requires: libvirt-daemon-config-network
Requires: sudo Requires: libvirt-daemon-config-nwfilter
Requires: perl(DBIx::Class::Fixtures) Requires: libvirt-daemon-qemu
Requires: perl(Test::Simple) Requires: perl-Plack
Requires: perl(YAML::PP) Requires: sudo
Requires: perl(Config::Tiny) Requires: perl(Config::Tiny)
Requires: perl(Path::Class) Requires: perl(Const::Fast)
Requires: perl(Sys::Virt) Requires: perl(DBIx::Class)
Requires: perl(Moose) Requires: perl(DBIx::Class::Fixtures)
Requires: perl(MooseX::App) Requires: perl(DBIx::Class::Migration)
Requires: perl(Dancer2::Plugin::REST) Requires: perl(Dancer2)
Requires: perl(MooseX::Singleton) Requires: perl(Dancer2::Plugin::Auth::Extensible)
Requires: perl(Expect) Requires: perl(Dancer2::Plugin::Auth::Extensible::Provider::DBIC)
Requires: perl(Net::SSH2) Requires: perl(Dancer2::Plugin::DBIC)
Requires: perl(Net::IP) Requires: perl(Dancer2::Plugin::REST)
Requires: perl(Net::OBS::Client) Requires: perl(Expect)
Requires: perl(XML::Structured) Requires: perl(File::HomeDir)
Requires: perl(DBIx::Class::Migration) Requires: perl(File::LibMagic)
Requires: perl(Template) Requires: perl(IO::Uncompress::UnXz)
Requires: perl(Log::Log4perl) Requires: perl(IPC::Run)
Requires: perl(Config::Tiny) Requires: perl(JSON::XS)
Requires: perl(Dancer2::Plugin::DBIC) Requires: perl(Log::Log4perl)
Requires: perl(Dancer2::Plugin::Auth::Extensible) Requires: perl(Moose)
Requires: perl(Dancer2::Plugin::Auth::Extensible::Provider::DBIC) Requires: perl(MooseX::App)
Requires: perl(File::HomeDir) Requires: perl(MooseX::Singleton)
Requires: perl(Template::Plugin::Filter::ANSIColor) Requires: perl(Net::IP)
Requires: perl(JSON::XS) Requires: perl(Net::OBS::Client)
Requires: perl(DBIx::Class) Requires: perl(Net::SSH2)
Requires: perl(DBIx::Class::Migration) Requires: perl(Path::Class)
Requires: perl(Template::Plugin::Filter::ANSIColor) Requires: perl(Sys::Virt)
Requires: perl(File::LibMagic) Requires: perl(Template)
Requires: perl(IO::Uncompress::UnXz) Requires: perl(Template::Plugin::Filter::ANSIColor)
Requires: perl-Plack Requires: perl(Term::ReadKey)
Requires: perl(Dancer2) Requires: perl(Test::Simple)
Requires: perl(Dancer2::Plugin::REST) Requires: perl(XML::Structured)
Requires: perl(XML::XPath) Requires: perl(XML::XPath)
Requires: perl(Term::ReadKey) Requires: perl(YAML::PP)
Requires: perl(IPC::Run)
Requires: perl(Const::Fast)
# DBD::SQLite is also provided by perl-DBD-SQLite-Amalgamation # DBD::SQLite is also provided by perl-DBD-SQLite-Amalgamation
# but perl-DBD-SQLite-Amalgamation is breaks with SQL syntax errors # but perl-DBD-SQLite-Amalgamation is breaks with SQL syntax errors
# at job_histroy_sub table # at job_histroy_sub table
Requires: perl-DBD-SQLite Requires: perl-DBD-SQLite
Requires: perl(LWP::Protocol::https) Requires: logrotate
Requires: perl(Mail::Sendmail) Requires: perl(Archive::Cpio)
Requires: perl(Archive::Cpio) Requires: perl(LWP::Protocol::https)
Requires: perl(UUID) Requires: perl(Mail::Sendmail)
Requires: logrotate Requires: perl(UUID)
Conflicts: perl-DBD-SQLite-Amalgamation Conflicts: perl-DBD-SQLite-Amalgamation
%description common %description common
common config and lib files used in kanku common config and lib files used in kanku
@ -289,15 +280,15 @@ common config and lib files used in kanku
/usr/lib/kanku/lib/Kanku/Test/ /usr/lib/kanku/lib/Kanku/Test/
%package cli %package cli
Summary: Command line client for kanku Summary: Command line client for kanku
Requires: kanku-common = %{version} Requires: kanku-common = %{version}
Requires: libvirt-client Requires: libvirt-client
Requires(pre): libvirt-daemon libvirt-daemon-driver-qemu Requires(pre): libvirt-daemon libvirt-daemon-driver-qemu
Requires(pre): sudo Requires(pre): sudo
Requires: perl(Net::AMQP::RabbitMQ) Requires: (perl(Passwd::Keyring::Gnome) if gnome-keyring)
Requires: perl(IO::Interactive) Requires: (perl(Passwd::Keyring::KDEWallet) if kwalletd5)
Requires: (perl(Passwd::Keyring::KDEWallet) if kwalletd5) Requires: perl(IO::Interactive)
Requires: (perl(Passwd::Keyring::Gnome) if gnome-keyring) Requires: perl(Net::AMQP::RabbitMQ)
%description cli %description cli
Command line client for kanku, mainly used for setup tasks Command line client for kanku, mainly used for setup tasks
@ -313,17 +304,17 @@ and in developer mode.
/etc/bash_completion.d/kanku.sh /etc/bash_completion.d/kanku.sh
%package common-server %package common-server
Summary: Common server files or settings for kanku Summary: Common server files or settings for kanku
Requires(pre): libvirt-daemon libvirt-daemon-driver-qemu Requires(pre): libvirt-daemon libvirt-daemon-driver-qemu
%if 0%{?fedora} %if 0%{?fedora}
Requires(pre): shadow-utils Requires(pre): shadow-utils
%else %else
Requires(pre): shadow Requires(pre): shadow
%endif %endif
%description common-server %description common-server
This package contains common server files, settings and dependencies This package contains common server files, settings and dependencies
for the kanku server components like kanku-worker, kanku-dispatcher, for the kanku server components like kanku-worker, kanku-dispatcher,
kanku-web, kanku-scheduler and kanku-triggerd. kanku-web, kanku-scheduler and kanku-triggerd.
@ -340,20 +331,20 @@ getent passwd %{kanku_user} >/dev/null || useradd -r -g %{kanku_group} -G libvir
%ghost %dir %attr(755, kankurun, kanku) /run/kanku %ghost %dir %attr(755, kankurun, kanku) /run/kanku
%package web %package web
Summary: WebUI for kanku Summary: WebUI for kanku
Requires: kanku-common = %{version} Requires: kanku-common = %{version}
Requires: kanku-common-server = %{version} Requires: kanku-common-server = %{version}
Requires: perl(Dancer2::Plugin::WebSocket) Requires: perl(Dancer2::Plugin::WebSocket)
Requires: perl(Twiggy) Requires: perl(Mail::Message::Body::String)
Requires: perl(Mail::Message::Body::String) Requires: perl(Mail::Transport::Send)
Requires: perl(Mail::Transport::Send) Requires: perl(Net::AMQP::RabbitMQ)
Requires: perl(Net::AMQP::RabbitMQ) Requires: perl(Template::Plugin::JSON::Escape)
Requires: perl(Template::Plugin::JSON::Escape) Requires: perl(Twiggy)
Requires: perl(UUID) Requires: perl(UUID)
%if 0%{?fedora} %if 0%{?fedora}
Requires: server(smtp) Requires: server(smtp)
%else %else
Requires: smtp_daemon Requires: smtp_daemon
%endif %endif
%description web %description web
@ -406,23 +397,23 @@ WebUI for kanku using perl Dancer
/usr/lib/kanku/lib/Kanku/REST /usr/lib/kanku/lib/Kanku/REST
%package worker %package worker
Summary: Worker daemon for kanku Summary: Worker daemon for kanku
Requires: kanku-common = %{version} Requires: kanku-common = %{version}
Requires: kanku-common-server = %{version} Requires: kanku-common-server = %{version}
Requires: perl(Net::AMQP::RabbitMQ) Requires: perl(Net::AMQP::RabbitMQ)
Requires: perl(UUID) Requires: perl(Sys::CPU)
Requires: perl(Sys::CPU) Requires: perl(Sys::LoadAvg)
Requires: perl(Sys::LoadAvg) Requires: perl(Sys::MemInfo)
Requires: perl(Sys::MemInfo) Requires: perl(UUID)
%if "%{_arch}" == "x86_64" || "%{_arch}" == "i686" %if "%{_arch}" == "x86_64" || "%{_arch}" == "i686"
Requires: qemu-kvm Requires: qemu-kvm
%endif %endif
%if "%{_arch}" == "aarch64" %if "%{_arch}" == "aarch64"
Requires: qemu-arm Requires: qemu-arm
%endif %endif
# apache2 is only needed for delivering console logs # apache2 is only needed for delivering console logs
Recommends: apache2 Recommends: apache2
%description worker %description worker
A remote worker for kanku based on RabbitMQ. A remote worker for kanku based on RabbitMQ.
@ -444,13 +435,13 @@ A remote worker for kanku based on RabbitMQ.
/usr/lib/kanku/lib/Kanku/Daemon/Worker.pm /usr/lib/kanku/lib/Kanku/Daemon/Worker.pm
%package dispatcher %package dispatcher
Summary: Dispatcher daemon for kanku Summary: Dispatcher daemon for kanku
Requires: kanku-common = %{version} Requires: kanku-common = %{version}
Requires: kanku-common-server = %{version} Requires: kanku-common-server = %{version}
Requires: perl(Net::AMQP::RabbitMQ) Requires: perl(Net::AMQP::RabbitMQ)
Requires(pre): sudo Requires(pre): sudo
Recommends: rabbitmq-server Recommends: rabbitmq-server
%description dispatcher %description dispatcher
A dispatcher for kanku based on RabbitMQ. A dispatcher for kanku based on RabbitMQ.
@ -473,9 +464,9 @@ A dispatcher for kanku based on RabbitMQ.
/usr/share/kanku/views/notifier/ /usr/share/kanku/views/notifier/
%package scheduler %package scheduler
Summary: Scheduler daemon for kanku Summary: Scheduler daemon for kanku
Requires: kanku-common = %{version} Requires: kanku-common = %{version}
Requires: kanku-common-server = %{version} Requires: kanku-common-server = %{version}
%description scheduler %description scheduler
A scheduler for kanku based on RabbitMQ. A scheduler for kanku based on RabbitMQ.
@ -496,9 +487,9 @@ A scheduler for kanku based on RabbitMQ.
%{_sbindir}/rckanku-scheduler %{_sbindir}/rckanku-scheduler
%package triggerd %package triggerd
Summary: Trigger daemon for kanku Summary: Trigger daemon for kanku
Requires: kanku-common = %{version} Requires: kanku-common = %{version}
Requires: kanku-common-server = %{version} Requires: kanku-common-server = %{version}
%description triggerd %description triggerd
A triggerd for kanku based on RabbitMQ. A triggerd for kanku based on RabbitMQ.
@ -520,9 +511,8 @@ A triggerd for kanku based on RabbitMQ.
/usr/lib/kanku/lib/Kanku/Daemon/TriggerD.pm /usr/lib/kanku/lib/Kanku/Daemon/TriggerD.pm
/usr/lib/kanku/lib/Kanku/Listener/RabbitMQ.pm /usr/lib/kanku/lib/Kanku/Listener/RabbitMQ.pm
%package doc %package doc
Summary: Documentation files for kanku Summary: Documentation files for kanku
%description doc %description doc
This package contains the documentation files for kanku. This package contains the documentation files for kanku.
@ -531,11 +521,11 @@ This package contains the documentation files for kanku.
%{_defaultdocdir}/kanku/ %{_defaultdocdir}/kanku/
%package urlwrapper %package urlwrapper
Summary: Url wrapper for kanku:// urls Summary: Url wrapper for kanku:// urls
Requires: kanku-cli = %{version} Requires: desktop-file-utils
Requires: desktop-file-utils Requires: kanku-cli = %{version}
Requires: shared-mime-info Requires: shared-mime-info
Obsoletes: kanku-url-wrapper Obsoletes: kanku-url-wrapper
%description urlwrapper %description urlwrapper
A URL wrapper to start kanku from kanku:// urls in the browser. A URL wrapper to start kanku from kanku:// urls in the browser.