File obs-service-kiwi_import.spec of Package obs-service-kiwi_import

#
# spec file
#
# Copyright (c) 2022 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/
#


%define service kiwi_import

Name:           obs-service-%{service}
Version:        0.1+git20200720.2fe5181
Release:        0
Summary:        An OBS source service: Support import of a generic kiwi archive
License:        GPL-2.0-or-later
Group:          Development/Tools/Building
URL:            https://github.com/openSUSE/obs-service-%{service}
Source:         %{name}-%{version}.tar.bz2
Requires:       tar
Requires:       ruby(abi) >= 2.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This is a source service for openSUSE Build Service.

It supports the import of a generic kiwi archive.

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_prefix}/lib/obs/service
install -m 0755 kiwi_import %{buildroot}%{_prefix}/lib/obs/service
install -m 0644 kiwi_import.service %{buildroot}%{_prefix}/lib/obs/service

install -d %{buildroot}%{_prefix}/lib/obs/service/KiwiImport/lib/
install -m 644 -D KiwiImport/lib/*.rb %{buildroot}%{_prefix}/lib/obs/service/KiwiImport/lib/
install -d %{buildroot}%{_prefix}/lib/obs/service/KiwiImport/config/
install -m 644 -D KiwiImport/config/*.yml %{buildroot}%{_prefix}/lib/obs/service/KiwiImport/config/

%files
%defattr(-,root,root)
%dir %{_prefix}/lib/obs
%dir %{_prefix}/lib/obs/service
%{_prefix}/lib/obs/service/kiwi_import
%{_prefix}/lib/obs/service/kiwi_import.service
%{_prefix}/lib/obs/service/KiwiImport

%changelog
openSUSE Build Service is sponsored by