obs-service-source_validator/obs-service-source_validator.spec
Dirk Mueller fc11d143e0 - update to 0.37:
* Fix unzip test in 20-files-present-and-referenced
  (same like previous update)
  - more work on dealing with util-linux
  - hack for util-linux specfiles (bnc#891829)
- Add rpm-build dependancy for centos 6
- allow PKGBUILD build description file for archlinux
- check_patches_applied: allow #patches as comment
- exit if tmpdir creation fails (bnc#796918)
- also ignore Requires(.*) lines (bnc#724609)
- use --nodeps with rpmbuild in 20-files-present-and-referenced
- fix requires for factory
- fix bug with "Patch" in comments
- try to fix bnc#679980
  in check_patches_applied
  errors out if errors found
- 50-spec-version: show warning only once per specfile
  to execute it as a checkscript)
- make the files executable
- fill with some content

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-source_validator?expand=0&rev=181
2024-07-03 06:17:25 +00:00

81 lines
2.1 KiB
RPMSpec

#
# spec file for package obs-service-source_validator
#
# Copyright (c) 2024 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/
#
%if 0%{?suse_version}
%define build_pkg_name build
%else
%define build_pkg_name obs-build
%endif
Name: obs-service-source_validator
Version: 0.37
Release: 0
Summary: An OBS source service: running all the osc source-validator checks
License: GPL-2.0-or-later
Group: Development/Tools/Building
URL: https://github.com/openSUSE/obs-service-source_validator
# use osc service mr to update
Source: %{name}-%{version}.tar.bz2
BuildRequires: %{build_pkg_name}
BuildRequires: zstd
Requires: %{_bindir}/cpio
Requires: %{_bindir}/unzip
Requires: %{_bindir}/xmllint
Requires: %{build_pkg_name}
Requires: patch
Requires: perl-TimeDate
Provides: osc-source_validator = %{version}
Obsoletes: osc-source_validator <= 0.1
BuildArch: noarch
%if 0%{?suse_version}
Requires: gpg2
%else
# Fedora
Requires: gnupg2
%endif
%description
This is a source service for openSUSE Build Service.
This service runs all checks as required by openSUSE:Factory project. This can be used
to guarantee that all checks succeed also on the service side. This plugin can be
used via project wide defined services.
%prep
%setup -q
%build
:
%install
mkdir -p %{buildroot}%{_datadir}/licenses
%make_install
%check
%make_build test
%files
%license COPYING
%if 0%{?suse_version} <= 1320
%dir %{_datadir}/licenses
%endif
%dir %{_prefix}/lib/obs
%{_prefix}/lib/obs/service
%changelog