1
0
brp-check-suse/brp-check-suse.spec
Stephan Kulow 126946894e - Update to version 84.87+git20201203.5008eba:
* brp-25-symlink: Detect if a link points inside the build root
  * brp-25-symlink: Remove unused $link part of the case statement
  * brp-25-symlink: Print all errors before exiting
  * Makefile: enable -O2, use standard variables and clean up
  * simplify split_paths using std::getline

OBS-URL: https://build.opensuse.org/package/show/Base:System/brp-check-suse?expand=0&rev=104
2021-01-15 09:05:11 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package brp-check-suse
#
# 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
# 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/
#
Name: brp-check-suse
AutoReqProv: off
Summary: Build root policy check scripts
# we need the full perl because of XML Parsing and utf-8
License: GPL-2.0-or-later
Group: Development/Tools/Building
Requires: perl
Version: 84.87+git20201203.5008eba
Release: 0
URL: https://github.com/openSUSE/brp-check-suse
BuildRequires: gcc-c++
#
# Note: don't rebuild this manually. Instead submit your patches
# for inclusion in the git repo at https://github.com/openSUSE/brp-check-suse
#
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global provfind sh -c "grep -v 'brp-desktop.data' | %__find_provides"
%global __find_provides %provfind
%description
This package contains all suse scripts called in the
build root checking or in parts implementing SUSE policies.
%prep
%setup -q
%build
make -C prg-brp-symlink
%install
install -D -m 755 prg-brp-symlink/brp-symlink $RPM_BUILD_ROOT/%_bindir/brp-symlink.prg
install -d $RPM_BUILD_ROOT/usr/lib/rpm/brp-suse.d
mv brp*data $RPM_BUILD_ROOT/usr/lib/rpm/
cp -a brp-* $RPM_BUILD_ROOT/usr/lib/rpm/brp-suse.d
%check
make -C prg-brp-symlink check
%files
%defattr(-, root, root)
%license COPYING
/usr/lib/rpm/*
%_bindir/brp-symlink.prg
%changelog