Группа :: Разработка/Прочее
Пакет: repocop-unittest-altlinux-python
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
#define testname spec-has-obsolete-macroses
%define install_all_tests 0
Name: repocop-unittest-altlinux-python
Version: 0.08
Release: alt1
BuildArch: noarch
Packager: Igor Yu. Vlasenko <viy at altlinux.org>
Url: http://repocop.altlinux.org
Summary: repocop package checks for conformance with Python Packaging Policy.
Group: Development/Other
License: GPL or Artistic
Source: %name-%version.tar
Requires: repocop >= 0.10
Requires: repocop-collector-specfile
%description
set of ALTLinux-specific integration tests for repocop test platform.
The tests checks packages for conformance with Python Packaging Policy.
%prep
%setup
%build
%install
%if %install_all_tests
for i in *.posttest; do
testname=`echo $i | sed -e s,.posttest\$,,`
install -pD -m 755 $testname.posttest %buildroot%_datadir/repocop/pkgtests/$testname/posttest
done
install -d -m 755 %buildroot%_datadir/repocop/fixscripts/
install -m 644 *.pl %buildroot%_datadir/repocop/fixscripts/
%else
testname=altlinux-python-test-is-packaged
install -pD -m 755 $testname.posttest %buildroot%_datadir/repocop/pkgtests/$testname/posttest
%endif
%files
#doc README ChangeLog
%_datadir/repocop/pkgtests/*
%if %install_all_tests
%_datadir/repocop/fixscripts/*
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%define install_all_tests 0
Name: repocop-unittest-altlinux-python
Version: 0.08
Release: alt1
BuildArch: noarch
Packager: Igor Yu. Vlasenko <viy at altlinux.org>
Url: http://repocop.altlinux.org
Summary: repocop package checks for conformance with Python Packaging Policy.
Group: Development/Other
License: GPL or Artistic
Source: %name-%version.tar
Requires: repocop >= 0.10
Requires: repocop-collector-specfile
%description
set of ALTLinux-specific integration tests for repocop test platform.
The tests checks packages for conformance with Python Packaging Policy.
%prep
%setup
%build
%install
%if %install_all_tests
for i in *.posttest; do
testname=`echo $i | sed -e s,.posttest\$,,`
install -pD -m 755 $testname.posttest %buildroot%_datadir/repocop/pkgtests/$testname/posttest
done
install -d -m 755 %buildroot%_datadir/repocop/fixscripts/
install -m 644 *.pl %buildroot%_datadir/repocop/fixscripts/
%else
testname=altlinux-python-test-is-packaged
install -pD -m 755 $testname.posttest %buildroot%_datadir/repocop/pkgtests/$testname/posttest
%endif
%files
#doc README ChangeLog
%_datadir/repocop/pkgtests/*
%if %install_all_tests
%_datadir/repocop/fixscripts/*
%endif
%changelog
…
Полный changelog можно просмотреть здесь