#!/usr/bin/perl -w

use strict;
use warnings;
use lib $ENV{'HOME'}.'/src/repo/logoved.git/lib';
use lib '../logoved.git/lib';
use lib './lib';

use RPM::Source::Transformation::Set::LogovedBatchfix;
use RPM::Source::Transformation::Provider::Name2Spec::SRPM;
$RPM::Source::Transformation::Factory::RaiseRelease::nextrel='none';
$RPM::Source::Transformation::Factory::RaiseRelease::defaultchangelog='- applied logoved fixes';
$RPM::Source::Transformation::PkgWriter::outputdir='OUT.FIXED';

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

__END__

=head1	NAME

logoved-batchfix-srpm - apply logoved's 00FIXSCRIPT to source rpms.

=head1	SYNOPSIS

B<logoved-batchfix-srpm>
[B<-h>]
[B<other spec editing options here, see --help>]
B<--indir|--input-srpm-dir> I<dir> input srpms

=head1	DESCRIPTION

B<logoved-batchfix> applies logoved's 00FIXSCRIPT to source rpms.


=head1	OPTIONS

There are lots of srpm processing options that are inherited from RPM::Source::*
utilities. To view full list of available options, run logoved-batchfix --help.

=head2 logoved-batchfix-srpm specific OPTIONS

=over

=item	B<-h, --help>

Display this help and exit.

=item B<--indir|--input-srpm-dir> I<dir>

Directory with input srpms

=back

=head1	EXAMPLES

Run logoved-report to generate 00FIXSCRIPT file. Then run

 logoved-batchfix-srpm --indir ~/hasher/repo/SRPMS.hasher --batch ./00FIXSCRIPT
or (to create another release)
 logoved-batchfix-srpm --indir /ALT/Sisyphus/files/SRPMS --batch ./00FIXSCRIPT \
 --nextrel incrfirst --changelog '- fixed build using logoved'

=head1	AUTHOR

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

=head1	COPYING

Copyright (c) 2018-2021 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

