Group :: Desenvolvimento/Outros
RPM: repocop-unittest-spec-missing-packager
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define testname spec-missing-packager
Name: repocop-unittest-%testname
Version: 0.03
Release: alt1
BuildArch: noarch
Packager: Igor Yu. Vlasenko <viy at altlinux.org>
Summary: %testname intergration tests for repocop test platform
Group: Development/Other
License: GPL or Artistic
Url: http://repocop.altlinux.org
Requires: repocop
%description
%testname intergration test for repocop test platform.
The test checks spec files to have Packager: tag.
%prep
%build
cat > test <<'EOF'
#!/bin/sh
if grep '^Packager:' $REPOCOP_PKG_SPECFILE >/dev/null; then
exec repocop-test-ok
else
exec repocop-test-experimental "spec file: missing Packager: tag. Gear unfriendly :("
fi
EOF
%install
mkdir -p $RPM_BUILD_ROOT%_datadir/repocop/srctests/%testname/
%__install -m 755 test $RPM_BUILD_ROOT%_datadir/repocop/srctests/%testname/
%files
#doc README ChangeLog
%_datadir/repocop/srctests/%testname
%changelog
…
Todas as alterações você pod ver aqui
Name: repocop-unittest-%testname
Version: 0.03
Release: alt1
BuildArch: noarch
Packager: Igor Yu. Vlasenko <viy at altlinux.org>
Summary: %testname intergration tests for repocop test platform
Group: Development/Other
License: GPL or Artistic
Url: http://repocop.altlinux.org
Requires: repocop
%description
%testname intergration test for repocop test platform.
The test checks spec files to have Packager: tag.
%prep
%build
cat > test <<'EOF'
#!/bin/sh
if grep '^Packager:' $REPOCOP_PKG_SPECFILE >/dev/null; then
exec repocop-test-ok
else
exec repocop-test-experimental "spec file: missing Packager: tag. Gear unfriendly :("
fi
EOF
%install
mkdir -p $RPM_BUILD_ROOT%_datadir/repocop/srctests/%testname/
%__install -m 755 test $RPM_BUILD_ROOT%_datadir/repocop/srctests/%testname/
%files
#doc README ChangeLog
%_datadir/repocop/srctests/%testname
%changelog
…
Todas as alterações você pod ver aqui