File dctrl-tools.spec of Package dctrl-tools

#
# spec file for package dctrl-tools
#
# 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:           dctrl-tools
Version:        2.24
Release:        0
Summary:        Debian control file inspection tools
License:        GPL-2.0-or-later
URL:            https://github.com/ajkaijanaho/dctrl-tools
Source:         %{name}-%{version}.tar.xz
BuildRequires:  gettext-tools
BuildRequires:  po4a

%description
Debian package information is generally stored in files having a special file format, dubbed the Debian control file format (the dctrl format), a special case of the record jar file format. These tools operate on any files conforming in a general sense to that format and are therefore widely applicable whenever those formats are in play. 

%prep
%autosetup -p1

%build
%make_build \
	CFLAGS='%{optflags}' \
	prefix='%{_prefix}' \
	mandir='%{_mandir}' \
	docdir='%{_defaultdocdir}/%{name}' \
	%{nil}

%install
%make_install \
	CFLAGS='%{optflags}' \
	prefix='%{_prefix}' \
	mandir='%{_mandir}' \
	docdir='/tmp' \
	localedir='/tmp' \
	%{nil}

rm -rfv %{buildroot}/tmp

%files
%license COPYING License-Blurb
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/*/*

%changelog
openSUSE Build Service is sponsored by