File equivs.spec of Package equivs
#
# spec file for package equivs
#
# 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/
#
Name: equivs
Version: 2.3.1
Release: 0
Summary: Circumvent Debian package dependencies
License: GPL-2-or-later
Group: Development/Languages/Perl
URL: https://salsa.debian.org/perl-team/modules/packages/equivs/
Source: https://salsa.debian.org/perl-team/modules/packages/equivs/-/archive/debian/%{version}/equivs-debian-%{version}.tar.gz
Requires: debhelper
Requires: dpkg-dev
Requires: fakeroot
Requires: make
Requires: perl
BuildArch: noarch
%description
This is a package that creates Debian packages which can be
used to inform dpkg about locally installed packages and their
dependencies. Also empty packages which just require other packages
can be created with equivs. These can be used as "profile" packages
which just mark other ones for installation.
%prep
%setup -q -n %{name}-debian-%{version}
%build
%make_build SOURCE_DATE_EPOCH="$(date)"
%install
mkdir -p %{buildroot}/%{_bindir}
cp -p usr/bin/equivs-* %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/%{name}
cp -r usr/share/equivs/* %{buildroot}/%{_datadir}/%{name}
mkdir -p %{buildroot}/%{_mandir}/man1
cp *.1 %{buildroot}/%{_mandir}/man1
%files
%defattr(-,root,root,755)
%{_bindir}/equivs-build
%{_bindir}/equivs-control
%{_datadir}/%{name}/
%{_mandir}/man1/equivs-*
%license COPYING
%doc examples
%changelog