Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37607079
en ru br
Репозитории ALT
S:0.854-alt1
5.1: 0.45-alt1
4.1: 0.07-alt2
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: repocop

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: repocop
Version: 0.45
Release: alt1
BuildArch: noarch
Packager: Igor Yu. Vlasenko <viy at altlinux.org>

Summary: Repocop is a repository unit tests platform.
Group: Development/Other
License: GPL or Artistic
Url: http://repocop.altlinux.org

Source: %name-%version.tar

Provides: repocop-collector-rpm = 0.01

# Recommends, not requires fakeroot

Requires: fakeroot >= 1.9
BuildRequires: perl-devel perldoc
BuildRequires: perl(Data/Array2ArrayMap/Hash/XSTree.pm)
BuildRequires: perl-RPM perl-DBD-SQLite
BuildRequires: perl-RPM-Source-Editor
BuildRequires: perl-Proc-ProcessTable
Requires: perl-RPM perl-DBD-SQLite sqlite3

# obsolete repocop-sqlite interface

Conflicts: repocop-unittest-unmet-dependency < 0.04
# statedir
Conflicts: repocop-collector-specfile < 0.04

%description
Repocop is a repository unit tests platform.
It provides a framework for running integration tests
(unit tests) for a set of rpm files (or the whole repository).

Test results are cached, so tests are run only if necessary.

Note that tests are separate packages: repocop is a platform,
it itself contains no tests. This package contains only
the test runner, repocop-run, internal utils and the set
of report generators.
For example, to get html report of test results, run
repocop-report-html with whe same arguments as repocop-run.

%package tools
Group: Development/Other
Summary: repocop tools for auto repairing repocop packages
Requires: perl-RPM-Source-Editor >= 0.50
Requires: %name = %version-%release

%description tools
%summary

%prep
%setup

%build
%perl_vendor_build

%install
%perl_vendor_install

for i in \
 %_datadir/repocop/pkgtests \
 %_datadir/repocop/srctests \
 %_datadir/repocop/pkgcollectors \
 %_datadir/repocop/srccollectors \
 %_datadir/repocop/sqlite-functions \
; do mkdir -p $RPM_BUILD_ROOT$i
done
mkdir -p $RPM_BUILD_ROOT%_datadir/repocop/pkgcollectors/rpm/
install -m644 pkgcollectors/rpm/*.sql.* $RPM_BUILD_ROOT%_datadir/repocop/pkgcollectors/rpm/

mkdir -p $RPM_BUILD_ROOT%_datadir/repocop/fixscripts/
#install -m644 fixscripts/*.pl $RPM_BUILD_ROOT%_datadir/repocop/fixscripts/

%files
#doc README ChangeLog
%_bindir/repocop-*
%_man1dir/repocop-*
%exclude %_bindir/repocop-fix*
%exclude %_man1dir/repocop-fix*
%exclude %_bindir/repocop-tools-*
%exclude %_man1dir/repocop-tools-*
%exclude %perl_vendor_privlib/Test/Repocop/Fixscripts.pm
%dir %_datadir/repocop/pkgtests
%dir %_datadir/repocop/srctests
%dir %_datadir/repocop/pkgcollectors
%dir %_datadir/repocop/srccollectors
%dir %_datadir/repocop/sqlite-functions
%perl_vendor_privlib/T*
%perl_vendor_man3dir/*
%_datadir/repocop/pkgcollectors/rpm

%files tools
#doc fixscripts/*.pl
%_bindir/repocop-fix*
%_man1dir/repocop-fix*
%_bindir/repocop-tools-*
%_man1dir/repocop-tools-*
%perl_vendor_privlib/Test/Repocop/Fixscripts.pm
%dir %_datadir/repocop/fixscripts

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin