File rpmrebuild.spec of Package rpmrebuild

#
# spec file for package rpmrebuild
#
# Copyright (c) 2013 SUSE LINUX Products 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.9
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
%if 0%{?suse_version} >= 1230
BuildRequires:  gpg-offline
%endif
Requires:       bash
Requires:       coreutils
Requires:       cpio
Requires:       sed
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
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
%if 0%{?gpg_verify:1}
%gpg_verify %{SOURCE1}
%endif
%setup -q -c

%build
make %{?_smp_mflags}

%install
%makeinstall "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
%{_prefix}/lib/rpmrebuild
%doc %{_mandir}/fr/man1/*
%doc %{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by