File seminarix-handbook.spec of Package seminarix-handbook

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

# norootforbuild

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

%description
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
%patch2 -p1

%build

%install
# install html files
mkdir -p %{buildroot}%{_datadir}/doc/%{name}
install -m644 *.html %{buildroot}%{_datadir}/doc/%{name}/
cp -a files          %{buildroot}%{_datadir}/doc/%{name}/
cp -a lib            %{buildroot}%{_datadir}/doc/%{name}/
# install desktop stuff
mkdir -p %{buildroot}/%{_datadir}/{applications,pixmaps}
convert menu/icons/hicolor/32x32/seminarix-handbook.png %{buildroot}/%{_datadir}/pixmaps/seminarix-handbook.xpm
install -m644 menu/seminarix-handbook.desktop %{buildroot}/%{_datadir}/applications/
%if 0%{?suse_version}
%suse_update_desktop_file -i seminarix-handbook
%endif
%if 0%{?suse_version} > 1010
%fdupes -s %buildroot
%endif

%clean
rm -rf %buildroot;


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

%changelog
openSUSE Build Service is sponsored by