Пакет distromap-pypi-default-altlinux-sisyphus: Specfile

# BEGIN SourceDeps(oneline):
BuildRequires: perl(Pod/Usage.pm) perl(Source/Repository/Matcher/PyPI2ALT.pm) perl(Pod/Text.pm)
# END SourceDeps(oneline)
%define orepo pypi
%define obranch default
%define module %orepo-%obranch-altlinux-sisyphus

Name: distromap-%module
Version: 0.07
Release: alt1
BuildArch: noarch
Packager: Igor Yu. Vlasenko <viy@altlinux.org>

Summary: %module DistroMap database
Group: Development/Other
License: GPL or Artistic
Source: %name-%version.tar
Url: http://repocop.altlinux.org/

BuildRequires: rpm-build-perl

%description
%summary
It is used to check python modules against PyPI repository.

%prep
%setup

%build

%install
destdir=%buildroot/usr/share/distromap/%orepo/%obranch/altlinux/sisyphus
#for type in group-strict group-approx;  do
#	install -m755 -d $destdir/$type
#	install -m644 $type/* $destdir/$type/
#done

#for type in binary source ; do
for type in source; do
	install -m755 -d $destdir/$type
	install -m644 $type/* $destdir/$type/
done

#for type in binary source ; do
for type in source ; do
	for flag in flags/$type/* ; do
		install -m755 -d $destdir/$flag
		install -m644 $flag/* $destdir/$flag/
	done
done

mkdir -p %buildroot%_bindir
install -m 755 bin/* %buildroot%_bindir/

%files
%_bindir/*
%_datadir/distromap/*

%changelog
* Thu Feb 02 2017 Igor Vlasenko <viy@altlinux.ru> 0.07-alt1
- scripts refactoring

* Sat Jan 21 2017 Igor Vlasenko <viy@altlinux.ru> 0.06-alt1
- new CLI in scripts

* Thu Jan 19 2017 Igor Vlasenko <viy@altlinux.ru> 0.05-alt1
- db update

* Fri Oct 21 2016 Igor Vlasenko <viy@altlinux.ru> 0.04-alt1
- db update

* Mon May 30 2016 Igor Vlasenko <viy@altlinux.ru> 0.03-alt1
- added pypi names unmangling and existance check

* Sat May 28 2016 Igor Vlasenko <viy@altlinux.ru> 0.02-alt1
- db update

* Fri May 27 2016 Igor Vlasenko <viy@altlinux.ru> 0.01-alt1
- initial release