Package distromap-rosa-default-altlinux-sisyphus: Specfile

%define orepo rosa
%define obranch default
%define module %orepo-%obranch-altlinux-sisyphus

Name: distromap-%module
Version: 0.004
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/

Requires: distromap-generic-default-altlinux-sisyphus
Requires: distrodb-static-altlinux-sisyphus

%description
%summary

%prep
%setup

%build

%install
destdir=%buildroot/usr/share/distromap/%orepo/%obranch/altlinux/sisyphus
for type in source binary group-strict group-approx; do
    if [ -d $type ] && stat -t $type/* >/dev/null 2>&1 ; then
	install -m755 -d $destdir/$type
	install -m644 $type/* $destdir/$type/
    fi
done
#ln -s %obranch %buildroot/usr/share/distromap/%orepo/default
for type in binary source ; do
    for flag in flags/$type/* ; do
	if [ -d $flag ] && stat -t $flag/* >/dev/null 2>&1 ; then
	    install -m755 -d $destdir/$flag
	    install -m644 $flag/* $destdir/$flag/
	fi
    done
done

%files
/usr/share/distromap/*

%changelog
* Sat Apr 13 2019 Igor Vlasenko <viy@altlinux.ru> 0.004-alt1
- db update

* Wed Jun 20 2018 Igor Vlasenko <viy@altlinux.ru> 0.003-alt1
- db update

* Fri Mar 30 2018 Igor Vlasenko <viy@altlinux.ru> 0.002-alt1
- db update

* Sat Dec 16 2017 Igor Vlasenko <viy@altlinux.ru> 0.001-alt1
- first build