OBS-URL: https://build.opensuse.org/package/show/home:jones_tony/kernel-source-component?expand=0&rev=1
61 lines
1.7 KiB
RPMSpec
61 lines
1.7 KiB
RPMSpec
#
|
|
# spec file
|
|
#
|
|
# Copyright (c) 2023 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 pkg_name obs-service-tar_scm
|
|
Name: kernel-source-component
|
|
Version: 0.1
|
|
Release: 0
|
|
Summary: An OBS source service: handle kernel source component
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Tools/Building
|
|
Source0: %{name}.py
|
|
Source1: COPYING
|
|
Source2: %{name}.rpmlintrc
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
Requires: python3
|
|
Requires: patchutils
|
|
Requires: python3-whatthepatch
|
|
Requires: python3-git-url-parse
|
|
Requires: python3-glob2
|
|
Requires: python3-wcmatch
|
|
|
|
%description
|
|
This is a source service for openSUSE Build Service. It extracts a tarball
|
|
and changelog from the SUSE unexpanded kernel git corresponding to an
|
|
independently buildable userspace component, such as perf.
|
|
|
|
%prep
|
|
cp %{SOURCE1} .
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/%{_prefix}/lib/obs/service
|
|
install %{SOURCE0} %{buildroot}/%{_prefix}/lib/obs/service/%{name}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%license COPYING
|
|
%dir %{_prefix}/lib/obs
|
|
%dir %{_prefix}/lib/obs/service
|
|
%{_prefix}/lib/obs/service/%{name}
|
|
|
|
%changelog
|