File pauker-lessons.spec of Package pauker-lessons

#
# spec file for package pauker-lessons
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:           pauker-lessons
Version:        1
Release:        1
License:        GPL
BuildRequires:  gzip
BuildArch:      noarch
Requires:       pauker
Vendor:         openSUSE Education
Group:          Productivity/Other
Source0:        Pauker-Lektionen.tar.bz2
Summary:        Prepared lessons for Pauker
URL:            http://pauker.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define         paukerdir %_datadir/pauker

%description
Here you will find prepared Pauker lessons. 
Please have a look in %paukerdir


%prep
%setup -c %{name}

%build

%install
mkdir -p %buildroot/%paukerdir
mkdir -p %buildroot/%_defaultdocdir/%name
cp -a *  %buildroot/%paukerdir/
pushd %buildroot/%paukerdir
for i in *.gz; do
	gunzip "$i"
done
popd
echo "You can find the lessons in %paukerdir" > %buildroot/%_defaultdocdir/%name/README

%clean
%__rm -rf %buildroot

%files
%defattr(-,root,root)
%doc %_defaultdocdir/%name
%dir %paukerdir
%paukerdir

%changelog
openSUSE Build Service is sponsored by