File seminarix-samples.spec of Package seminarix-samples

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

# norootforbuild

Name:           seminarix-samples
Summary:        Sample files for the Seminarix handbook
Version:        0.1.5
Release:        1
Url:            http://www.seminarix.org/
License:        GPL v2 or later; Public Domain
Group:          Documentation/Other
Vendor:         openSUSE-Education
BuildArch:      noarch
Requires:       kaffeine
BuildRequires:  ImageMagick 
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
%if 0%{?suse_version} > 1010
BuildRequires:  fdupes
%endif
Source:         %{name}_%{version}.tar.bz2
Patch1:         seminarix-samples-desktop.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains sample files which can be used 
for the Seminarix handbook for teachers. 

Seminarix goal is to support Linux teacher-training.

Authors:
--------
    Wolf-Dieter Zimmermann
    Roland Engert
    Hendrik Lehmbruch
    Björn Jilg
    Thomas Kross
    Dinko Sabo

%prep
%setup -q
%patch1 -p1

%build

%install
# install html files
mkdir -p %{buildroot}%{_datadir}/doc/%{name}
cp -a samples/*          %{buildroot}%{_datadir}/doc/%{name}/
# install desktop stuff
mkdir -p %{buildroot}/%{_datadir}/{applications,pixmaps}
convert icons/hi32-siduxvid.png %{buildroot}/%{_datadir}/pixmaps/siduxvid.xpm
install -m644 menu/sidux-png-video.desktop %{buildroot}/%{_datadir}/applications/
%if 0%{?suse_version}
%suse_update_desktop_file -i sidux-png-video
%endif
%if 0%{?suse_version} > 1010
%fdupes -s %buildroot
%endif

%clean
rm -rf %buildroot;


%files
%defattr(-,root,root)
%doc License.txt
%{_datadir}/doc/%{name}
%{_datadir}/applications/*
%{_datadir}/pixmaps/*

%changelog
openSUSE Build Service is sponsored by