#!/usr/bin/perl

use strict;
use warnings;
use RPM::Source::Transformation::GenericUtility;

$RPM::Source::Transformation::Factory::RaiseRelease::nextrel='nmu';
$RPM::Source::Transformation::Factory::RaiseRelease::defaultchangelog=
'- NMU for unknown reason:
  the person above was too neglectant to add --changelog "- NMU: <reason>" option.';
$RPM::Source::Transformation::Factory::Hook::opt_no_default_hook=1;

my $converter=RPM::Source::Transform->new();
$converter->transform();

__END__

=head1	NAME

srpmnmu - raise release for nmu and edit src.rpm/.spec file.

=head1	SYNOPSIS

see B<srpmnmu> --help

=head1	DESCRIPTION

B<srpmnmu> is the same as B<srpmtool> but with raising release
in NMU style (--nextrel nmu) as its default action.
It unpacks src.rpm file(s) if given as argument, 
applies user specified actions to their .spec files and writes 
new changed src.rpms or spec files.
There is a rich set of built-in actions, including raising release,
(The style of raising release is selected by --nextrel option,
for example, --nextrel incr or --nextrel nmu), setting tags
such as Url: or Epoch:, renaming the main package or its subpackages, 
disabling subpackages, applying patches to spec or sources,
loading user specified editing subroutines (hooks) and so on,
see B<--help> for the list.

=head1	AUTHOR

Written by Igor Vlasenko <viy@altlinux.org>.

=head1	COPYING

Copyright (c) 2010-2018 Igor Vlasenko, ALT Linux Team.

This is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.

=cut
