File rpmrebuild.spec of Package rpmrebuild
#
# spec file for package rpmrebuild
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: rpmrebuild
Version: 2.11
Release: 0
Summary: A tool to build a rpm file from the rpm database
License: GPL-2.0+
Group: System/Packages
Url: http://rpmrebuild.sourceforge.net
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz.sig
Source2: %{name}.keyring
Patch1: gpl-license.patch
Patch2: gpl-COPYRIGHT-address.patch
Patch3: rpmrebuild-fix-bashisms.patch
Requires: bash
Requires: coreutils
Requires: cpio
Requires: rpm-build
Requires: sed
BuildArch: noarch
%description
rpmrebuild allows to build an rpm file from an installed rpm, or from
another rpm file, with or without changes (batch or interactive). It
can be extended by a plugin system. A typical use is to easy repackage
a software after some configuration's change.
%prep
%setup -q -c
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags} "DESTDIR=%{buildroot}"
mv %{buildroot}%{_mandir}/fr_FR.UTF-8/ %{buildroot}%{_mandir}/fr
rm -rf %{buildroot}%{_mandir}/fr_FR/
%files
%defattr(-,root,root,-)
%doc AUTHORS Changelog COPYING COPYRIGHT News README Todo
%{_bindir}/rpmrebuild
%{_libexecdir}/rpmrebuild
%{_mandir}/fr/man1/*
%{_mandir}/man1/*
%changelog