File rpmlint-backports-data.spec of Package rpmlint-backports-data

#
# spec file for package rpmlint-backports
#
# 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 http://bugs.opensuse.org/
#


Name:           rpmlint-backports-data
Version:        1
Release:        0
Summary:        Data for rpmlint-backports
License:        GPL-2.0+
Group:          Development/Tools/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        SLE-file-package-map-aarch64.db.dat
Source1:        SLE-file-package-map-aarch64.db.dir
Source2:        SLE-file-package-map-ppc64le.db.dat
Source3:        SLE-file-package-map-ppc64le.db.dir
Source4:        SLE-file-package-map-s390x.db.dat
Source5:        SLE-file-package-map-s390x.db.dir
Source6:        SLE-file-package-map-x86_64.db.dat
Source7:        SLE-file-package-map-x86_64.db.dir
BuildRequires:  python3-dbm
BuildRequires:  -rpmlint-backports

%description
SLE15 SP7 data files for the rpmlint-backports package

%prep
%setup -qcT

%build

%install
install -m 755 -d $RPM_BUILD_ROOT/usr/share/rpmlint/data
%ifarch aarch64
install -m 644 %{SOURCE0} $RPM_BUILD_ROOT/usr/share/rpmlint/data/SLE-file-package-map.db.dat
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/usr/share/rpmlint/data/SLE-file-package-map.db.dir
%endif
%ifarch ppc64le
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/usr/share/rpmlint/data/SLE-file-package-map.db.dat
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/usr/share/rpmlint/data/SLE-file-package-map.db.dir
%endif
%ifarch s390x
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT/usr/share/rpmlint/data/SLE-file-package-map.db.dat
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/usr/share/rpmlint/data/SLE-file-package-map.db.dir
%endif
%ifarch x86_64
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/share/rpmlint/data/SLE-file-package-map.db.dat
install -m 644 %{SOURCE7} $RPM_BUILD_ROOT/usr/share/rpmlint/data/SLE-file-package-map.db.dir
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%dir %{_prefix}/share/rpmlint
%{_prefix}/share/rpmlint/data

%changelog
openSUSE Build Service is sponsored by