File filius.spec of Package filius

#
# spec file for package filius
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define _use_internal_dependency_generator 0
%define my_provides	%_tmppath/my-provides

Name:           filius
Version:        1.7.2
Release:        1
License:        GPL-2.0+
Summary:        Lernanwendung zu Rechnernetzen 
Url:            http://www.lernsoftware-filius.de/
Group:          Development/Languages/Java
Source0:        %{name}-%{version}.zip
Source1:        Filius.sh
Source2:        %{name}-rpmlintrc
Source3:        %{name}.desktop
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  fastjar
BuildRequires:  fdupes
BuildRequires:  jarnal
BuildRequires:  unzip
BuildRequires:  update-desktop-files
Requires:       java

%description
Filius wurde entwickelt, um Unterricht zum Internet zu unterstützen. Zielgruppe
sind Lernende in der Sekundarstufe allgemein bildender Schulen. Mit Filius
werden Lernaktivitäten ermöglicht, die insbesondere  entdeckendes Lernen
unterstützen sollen. 
 
%prep
%setup -T -c %name-%{version} -a0
sed -i "s|||g" *.txt

%build

%install
# install license and readme files to standard location
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
cp *.txt %{buildroot}%{_defaultdocdir}/%{name}
# install java stuff
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m644 filius.jar %{buildroot}%{_datadir}/%{name}/
cp -R config %{buildroot}%{_datadir}/%{name}/
cp -R hilfe %{buildroot}%{_datadir}/%{name}/
cp -R img %{buildroot}%{_datadir}/%{name}/
cp -R lib %{buildroot}%{_datadir}/%{name}/
cp -R tmpl %{buildroot}%{_datadir}/%{name}/
install -Dm755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
# install desktop file and icon stuff
install -Dm644 %{SOURCE3} %{buildroot}%{_datadir}/applications/%{name}.desktop
%if 0%{?suse_version} > 1020
%suse_update_desktop_file %{name} Development IDE
%fdupes -s %{buildroot}
%endif

%clean
[ -d %{buildroot} -a %{buildroot} != "" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop

%changelog
openSUSE Build Service is sponsored by