File opensuse-education-tools.spec of Package opensuse-education-tools

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

# norootforbuild


Name:           opensuse-education-tools
Summary:        A set of scripts for openSUSE-Education developers
Version:        1.1
Release:        1
License:        BSDv3
Url:            http://developer.novell.com/wiki/index.php/Education
Group:          Development/Tools/Other
Vendor:         openSUSE-Education
BuildArch:      noarch
PreReq:         %fillup_prereq
Requires:       inst-source-utils
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains a set of scripts for openSUSE-Education developers. 
It's useful for package development or creating Add-On Medias like the 
openSUSE-Education DVD.

Authors:
--------
    Lars Vogdt

%prep
%setup -q
find . -type d -name .svn -print0 | xargs -0 rm -rf {} \;

%build
# not needed

%install
mkdir -p %buildroot/%{_defaultdocdir}/%{name}
mkdir -p %buildroot/%{_bindir}
mkdir -p %buildroot/var/adm/fillup-templates
install -m644 config/opensuse-education %buildroot/var/adm/fillup-templates/sysconfig.opensuse-education
install -m755 bin/* %buildroot/%{_bindir}/
install -m644 misc/* %buildroot/%{_defaultdocdir}/%{name}/
install -m644 config/*repos.conf %buildroot/%{_defaultdocdir}/%{name}/

%clean
rm -rf %{buildroot}

%post 
%{fillup_only opensuse-education}

%files 
%defattr (-, root, root)
%doc %{_defaultdocdir}/%{name}
%{_bindir}/*
/var/adm/fillup-templates/sysconfig.opensuse-education

%changelog
openSUSE Build Service is sponsored by