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

Группа :: Разработка/Прочее
Пакет: repocop-unittest-altlinux-find-lang

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

pax_global_header00006660000000000000000000000064113507342750014521gustar00rootroot0000000000000052 comment=d4a3a7147f66a5734c8feec1a17d1bf850118326
repocop-unittest-altlinux-find-lang-0.03/000075500000000000000000000000001135073427500204605ustar00rootroot00000000000000repocop-unittest-altlinux-find-lang-0.03/.gear/000075500000000000000000000000001135073427500214545ustar00rootroot00000000000000repocop-unittest-altlinux-find-lang-0.03/.gear/rules000064400000000000000000000000071135073427500225260ustar00rootroot00000000000000tar: .
repocop-unittest-altlinux-find-lang-0.03/altlinux-find-lang-gnome.posttest000064400000000000000000000015501135073427500270700ustar00rootroot00000000000000#!/bin/sh
sqlite3 "$REPOCOP_TEST_TMPDIR/tmp.db" <<EOSQL
attach database '$REPOCOP_TEST_DBDIR/rpm.db' as rpm;
CREATE TEMPORARY TABLE idcache (pkgid TEXT); --, filename TEXT);
.mode tabs
INSERT INTO idcache
select distinct pkgid from rpm_files where filename glob '/usr/share/omf/*/*-*.omf' AND filelang = '' AND filemode & 32768 > 0 AND filename not glob '/usr/share/omf/*C.omf';
DELETE FROM idcache WHERE pkgid GLOB '*-i18n-*';
.output $REPOCOP_TEST_TMPDIR/msg
SELECT pkgid FROM idcache;
EOSQL

cat > $REPOCOP_TEST_TMPDIR/repocop.awk <<'EOF'
BEGIN {FS="\t"}
// {system("repocop-test-warn -k " $1 " 'Language specific gnome files in /usr/share/omf should be marked, for example, using %find_lang --with-gnome. See http://www.altlinux.org/FindLangPolicy for details.'")}
EOF
cat $REPOCOP_TEST_TMPDIR/msg | awk -f $REPOCOP_TEST_TMPDIR/repocop.awk
rm $REPOCOP_TEST_TMPDIR/*
repocop-unittest-altlinux-find-lang-0.03/altlinux-find-lang-kde.posttest000064400000000000000000000016171135073427500265320ustar00rootroot00000000000000#!/bin/sh
sqlite3 "$REPOCOP_TEST_TMPDIR/tmp.db" <<EOSQL
attach database '$REPOCOP_TEST_DBDIR/rpm.db' as rpm;
CREATE TEMPORARY TABLE idcache (pkgid TEXT); --, filename TEXT);
.mode tabs
INSERT INTO idcache select distinct(pkgid) from rpm_files where filename glob '/usr/share/doc/HTML/??/*' AND filelang = '' AND filemode & 32768 = 0 AND pkgid not glob '*-i18n-??[-_]*' AND filename not glob '/usr/share/doc/HTML/en/*';
DELETE FROM idcache WHERE pkgid GLOB '*-i18n-*';
.output $REPOCOP_TEST_TMPDIR/msg
SELECT pkgid FROM idcache;
EOSQL

cat > $REPOCOP_TEST_TMPDIR/repocop.awk <<'EOF'
BEGIN {FS="\t"}
// {system("repocop-test-warn -k " $1 " 'Language specific KDE files in /usr/share/doc/HTML should be marked, for example, using %find_lang --with-kde. See http://www.altlinux.org/FindLangPolicy for details.'")}
EOF
cat $REPOCOP_TEST_TMPDIR/msg | awk -f $REPOCOP_TEST_TMPDIR/repocop.awk
rm $REPOCOP_TEST_TMPDIR/*
repocop-unittest-altlinux-find-lang-0.03/altlinux-find-lang-kde4.posttest000064400000000000000000000016311135073427500266120ustar00rootroot00000000000000#!/bin/sh
sqlite3 "$REPOCOP_TEST_TMPDIR/tmp.db" <<EOSQL
attach database '$REPOCOP_TEST_DBDIR/rpm.db' as rpm;
CREATE TEMPORARY TABLE idcache (pkgid TEXT); --, filename TEXT);
.mode tabs
INSERT INTO idcache select distinct(pkgid) from rpm_files where filename glob '/usr/share/kde4/doc/HTML/??/*' AND filelang = '' AND filemode & 32768 = 0 AND pkgid not glob '*-i18n-??[-_]*' AND filename not glob '/usr/share/kde4/doc/HTML/en/*';
-- DELETE FROM idcache WHERE pkgid GLOB '*-i18n-*';
.output $REPOCOP_TEST_TMPDIR/msg
SELECT pkgid FROM idcache;
EOSQL

cat > $REPOCOP_TEST_TMPDIR/repocop.awk <<'EOF'
BEGIN {FS="\t"}
// {system("repocop-test-warn -k " $1 " 'Language specific KDE4 files in /usr/share/kde4/doc/HTML should be marked, for example, using %K4find_lang. See http://www.altlinux.org/FindLangPolicy for details.'")}
EOF
cat $REPOCOP_TEST_TMPDIR/msg | awk -f $REPOCOP_TEST_TMPDIR/repocop.awk
rm $REPOCOP_TEST_TMPDIR/*
repocop-unittest-altlinux-find-lang-0.03/altlinux-find-lang-mo.posttest000064400000000000000000000014701135073427500263770ustar00rootroot00000000000000#!/bin/sh
sqlite3 "$REPOCOP_TEST_TMPDIR/tmp.db" <<EOSQL
attach database '$REPOCOP_TEST_DBDIR/rpm.db' as rpm;
CREATE TEMPORARY TABLE idcache (pkgid TEXT); --, filename TEXT);
.mode tabs
INSERT INTO idcache select distinct pkgid from rpm_files where filename glob '/usr/share/locale/*' AND filelang = '' AND filename not glob '/usr/share/locale/en*';
DELETE FROM idcache WHERE pkgid GLOB '*-i18n-*';
.output $REPOCOP_TEST_TMPDIR/msg
SELECT pkgid FROM idcache;
EOSQL

cat > $REPOCOP_TEST_TMPDIR/repocop.awk <<'EOF'
BEGIN {FS="\t"}
// {system("repocop-test-warn -k " $1 " 'Language specific files in /usr/share/locale should be marked, for example, using %find_lang. See http://www.altlinux.org/FindLangPolicy for details.'")}
EOF
cat $REPOCOP_TEST_TMPDIR/msg | awk -f $REPOCOP_TEST_TMPDIR/repocop.awk
rm $REPOCOP_TEST_TMPDIR/*
repocop-unittest-altlinux-find-lang-0.03/repocop-unittest-altlinux-find-lang.spec000064400000000000000000000023411135073427500303530ustar00rootroot00000000000000Name: repocop-unittest-altlinux-find-lang
Version: 0.03
Release: alt1
BuildArch: noarch
Packager: Igor Yu. Vlasenko <viy@altlinux.org>
Url: http://repocop.altlinux.org

Summary: repocop package checks for conformance with FindLangPolicy.
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 FindLangPolicy.

%prep
%setup

%build

%install
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/

%files
#doc README ChangeLog
%_datadir/repocop/pkgtests/*
#%_datadir/repocop/fixscripts/*

%changelog
* Fri Mar 19 2010 Igor Vlasenko <viy@altlinux.ru> 0.03-alt1
- removed flphoto exception

* Thu Mar 18 2010 Igor Vlasenko <viy@altlinux.ru> 0.02-alt1
- fixed summary and description thanks to php_coder@.

* Wed Mar 17 2010 Igor Vlasenko <viy@altlinux.ru> 0.01-alt1
- First build for Sisyphus.
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin