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
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# 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)
# 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_group kanku
%define kanku_vardir /var/lib/kanku/
@ -22,80 +24,71 @@ Name: kanku
# Version gets set by obs-service-tar_scm
Version: 0.10.4
Release: 0
License: GPL-3.0
License: GPL-3.0-only
Summary: Development and continuous integration
Url: https://github.com/M0ses/kanku
URL: https://github.com/M0ses/kanku
Group: Productivity/Networking/Web/Utilities
Source: %{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: perl-macros
BuildRequires: fdupes
BuildRequires: perl-macros
BuildRequires: systemd-rpm-macros
# perl requires for %check
BuildRequires: perl(Const::Fast)
BuildRequires: perl(Test::Simple)
BuildRequires: perl(YAML::PP)
BuildRequires: perl(Config::Tiny)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Sys::Virt)
BuildRequires: perl(Moose)
BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(MooseX::App)
BuildRequires: perl(MooseX::Singleton)
BuildRequires: perl(Dancer2::Plugin::REST)
BuildRequires: perl(Expect)
BuildRequires: perl(Net::SSH2)
BuildRequires: perl(Net::IP)
BuildRequires: perl(Net::OBS::Client)
BuildRequires: perl(XML::Structured)
BuildRequires: perl(DBIx::Class)
BuildRequires: perl(DBIx::Class::Fixtures)
BuildRequires: perl(DBIx::Class::Migration)
BuildRequires: perl(Template)
BuildRequires: perl(Template::Plugin::Filter::ANSIColor)
BuildRequires: perl(Config::Tiny)
BuildRequires: perl(Dancer2::Plugin::DBIC)
BuildRequires: perl(Dancer2)
BuildRequires: perl(Dancer2::Plugin::Auth::Extensible)
BuildRequires: perl(Dancer2::Plugin::Auth::Extensible::Provider::DBIC)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(DBIx::Class)
BuildRequires: perl(DBIx::Class::Migration)
BuildRequires: perl(DBIx::Class::Fixtures)
BuildRequires: perl(File::LibMagic)
BuildRequires: perl(IO::Uncompress::UnXz)
BuildRequires: perl(Plack)
BuildRequires: perl(Dancer2)
BuildRequires: perl(Dancer2::Plugin::DBIC)
BuildRequires: perl(Dancer2::Plugin::REST)
BuildRequires: perl(XML::XPath)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(IPC::Run)
BuildRequires: perl(Expect)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::LibMagic)
BuildRequires: perl(IO::Interactive)
BuildRequires: perl(IO::Uncompress::UnXz)
BuildRequires: perl(IPC::Run)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::App)
BuildRequires: perl(MooseX::Singleton)
BuildRequires: perl(Net::IP)
BuildRequires: perl(Net::OBS::Client)
BuildRequires: perl(Net::SSH2)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Plack)
BuildRequires: perl(Sys::Virt)
BuildRequires: perl(Template)
BuildRequires: perl(Template::Plugin::Filter::ANSIColor)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Test::Simple)
BuildRequires: perl(XML::Structured)
BuildRequires: perl(XML::XPath)
BuildRequires: perl(YAML::PP)
# DBD::SQLite is also provided by perl-DBD-SQLite-Amalgamation
# but perl-DBD-SQLite-Amalgamation is breaks with SQL syntax errors
# at job_histroy_sub table
BuildRequires: perl-DBD-SQLite
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(Mail::Sendmail)
BuildRequires: desktop-file-utils
BuildRequires: libvirt-daemon
BuildRequires: shared-mime-info
BuildRequires: perl(Archive::Cpio)
BuildRequires: perl(Dancer2)
BuildRequires: perl(Dancer2::Plugin)
BuildRequires: perl(Dancer2::Plugin::REST)
BuildRequires: perl(Dancer2::Plugin::DBIC)
BuildRequires: perl(Dancer2::Plugin::WebSocket)
BuildRequires: perl(Dancer2::Plugin::Auth::Extensible)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Mail::Sendmail)
BuildRequires: perl(Net::AMQP::RabbitMQ)
BuildRequires: perl(UUID)
BuildRequires: libvirt-daemon
BuildRequires: desktop-file-utils
BuildRequires: shared-mime-info
Requires: kanku-cli = %{version}
Requires: kanku-dispatcher = %{version}
Requires: kanku-scheduler = %{version}
Requires: kanku-triggerd = %{version}
Requires: kanku-web = %{version}
Requires: kanku-worker = %{version}
Requires: kanku-scheduler = %{version}
Requires: kanku-dispatcher = %{version}
Requires: kanku-triggerd = %{version}
%description
kanku is a utility for integration of kiwi images built
@ -130,58 +123,56 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rckanku-triggerd
%package common
Summary: Common files for kanku
Recommends: apache2
Recommends: osc
Recommends: perl(IO::Uncompress::UnXz)
Recommends: apache2
Recommends: perl(YAML::PP::LibYAML)
Requires: libvirt-daemon-qemu libvirt-daemon-config-network libvirt-daemon-config-nwfilter
Requires: libvirt-daemon-config-network
Requires: libvirt-daemon-config-nwfilter
Requires: libvirt-daemon-qemu
Requires: perl-Plack
Requires: sudo
Requires: perl(Config::Tiny)
Requires: perl(Const::Fast)
Requires: perl(DBIx::Class)
Requires: perl(DBIx::Class::Fixtures)
Requires: perl(Test::Simple)
Requires: perl(YAML::PP)
Requires: perl(Config::Tiny)
Requires: perl(Path::Class)
Requires: perl(Sys::Virt)
Requires: perl(Moose)
Requires: perl(MooseX::App)
Requires: perl(Dancer2::Plugin::REST)
Requires: perl(MooseX::Singleton)
Requires: perl(Expect)
Requires: perl(Net::SSH2)
Requires: perl(Net::IP)
Requires: perl(Net::OBS::Client)
Requires: perl(XML::Structured)
Requires: perl(DBIx::Class::Migration)
Requires: perl(Template)
Requires: perl(Log::Log4perl)
Requires: perl(Config::Tiny)
Requires: perl(Dancer2::Plugin::DBIC)
Requires: perl(Dancer2)
Requires: perl(Dancer2::Plugin::Auth::Extensible)
Requires: perl(Dancer2::Plugin::Auth::Extensible::Provider::DBIC)
Requires: perl(Dancer2::Plugin::DBIC)
Requires: perl(Dancer2::Plugin::REST)
Requires: perl(Expect)
Requires: perl(File::HomeDir)
Requires: perl(Template::Plugin::Filter::ANSIColor)
Requires: perl(JSON::XS)
Requires: perl(DBIx::Class)
Requires: perl(DBIx::Class::Migration)
Requires: perl(Template::Plugin::Filter::ANSIColor)
Requires: perl(File::LibMagic)
Requires: perl(IO::Uncompress::UnXz)
Requires: perl-Plack
Requires: perl(Dancer2)
Requires: perl(Dancer2::Plugin::REST)
Requires: perl(XML::XPath)
Requires: perl(Term::ReadKey)
Requires: perl(IPC::Run)
Requires: perl(Const::Fast)
Requires: perl(JSON::XS)
Requires: perl(Log::Log4perl)
Requires: perl(Moose)
Requires: perl(MooseX::App)
Requires: perl(MooseX::Singleton)
Requires: perl(Net::IP)
Requires: perl(Net::OBS::Client)
Requires: perl(Net::SSH2)
Requires: perl(Path::Class)
Requires: perl(Sys::Virt)
Requires: perl(Template)
Requires: perl(Template::Plugin::Filter::ANSIColor)
Requires: perl(Term::ReadKey)
Requires: perl(Test::Simple)
Requires: perl(XML::Structured)
Requires: perl(XML::XPath)
Requires: perl(YAML::PP)
# DBD::SQLite is also provided by perl-DBD-SQLite-Amalgamation
# but perl-DBD-SQLite-Amalgamation is breaks with SQL syntax errors
# at job_histroy_sub table
Requires: perl-DBD-SQLite
Requires: logrotate
Requires: perl(Archive::Cpio)
Requires: perl(LWP::Protocol::https)
Requires: perl(Mail::Sendmail)
Requires: perl(Archive::Cpio)
Requires: perl(UUID)
Requires: logrotate
Conflicts: perl-DBD-SQLite-Amalgamation
@ -294,10 +285,10 @@ Requires: kanku-common = %{version}
Requires: libvirt-client
Requires(pre): libvirt-daemon libvirt-daemon-driver-qemu
Requires(pre): sudo
Requires: perl(Net::AMQP::RabbitMQ)
Requires: perl(IO::Interactive)
Requires: (perl(Passwd::Keyring::KDEWallet) if kwalletd5)
Requires: (perl(Passwd::Keyring::Gnome) if gnome-keyring)
Requires: (perl(Passwd::Keyring::KDEWallet) if kwalletd5)
Requires: perl(IO::Interactive)
Requires: perl(Net::AMQP::RabbitMQ)
%description cli
Command line client for kanku, mainly used for setup tasks
@ -344,11 +335,11 @@ Summary: WebUI for kanku
Requires: kanku-common = %{version}
Requires: kanku-common-server = %{version}
Requires: perl(Dancer2::Plugin::WebSocket)
Requires: perl(Twiggy)
Requires: perl(Mail::Message::Body::String)
Requires: perl(Mail::Transport::Send)
Requires: perl(Net::AMQP::RabbitMQ)
Requires: perl(Template::Plugin::JSON::Escape)
Requires: perl(Twiggy)
Requires: perl(UUID)
%if 0%{?fedora}
Requires: server(smtp)
@ -411,10 +402,10 @@ Summary: Worker daemon for kanku
Requires: kanku-common = %{version}
Requires: kanku-common-server = %{version}
Requires: perl(Net::AMQP::RabbitMQ)
Requires: perl(UUID)
Requires: perl(Sys::CPU)
Requires: perl(Sys::LoadAvg)
Requires: perl(Sys::MemInfo)
Requires: perl(UUID)
%if "%{_arch}" == "x86_64" || "%{_arch}" == "i686"
Requires: qemu-kvm
%endif
@ -520,7 +511,6 @@ A triggerd for kanku based on RabbitMQ.
/usr/lib/kanku/lib/Kanku/Daemon/TriggerD.pm
/usr/lib/kanku/lib/Kanku/Listener/RabbitMQ.pm
%package doc
Summary: Documentation files for kanku
@ -532,8 +522,8 @@ This package contains the documentation files for kanku.
%package urlwrapper
Summary: Url wrapper for kanku:// urls
Requires: kanku-cli = %{version}
Requires: desktop-file-utils
Requires: kanku-cli = %{version}
Requires: shared-mime-info
Obsoletes: kanku-url-wrapper