File hamstersimulator-hase.spec of Package hamstersimulator-hase
Name: hamstersimulator-hase
%define revision 2
Summary: Hamstersimulator java hamster structogramm editor
Version: v08
Release: 2
License: GPL
Group: Development/Languages/Java
Source: hase-%{version}_%{revision}.zip
Source1: %{name}.desktop
Source2: %{name}.png
Source3: HamsterStruktogrammEditor.config
Source4: hase
Source5: hase.1.gz
Prefix: /usr/share
Url: http://www.java-hamster-modell.de
BuildRequires: unzip
Requires: java java-sdk
%if %{defined centos_version} || %{defined sles_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
%endif
%description
Hamstersimulator java hamster structogramm editor by D. Boles to graphically create
structogramms for java hamster programs.
%prep
%setup -n hase-%{version}_%{revision}
%build
# nichts zu tun
%install
mkdir -p %{buildroot}%{prefix}/%{name}
cp -a . %{buildroot}%{prefix}/%{name}
install -D %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D %{SOURCE3} %{buildroot}%{prefix}/%{name}/.HamsterStruktogrammEditor.config
install -D %{SOURCE4} %{buildroot}/usr/bin/hase
install -D %{SOURCE5} %{buildroot}%{prefix}/man/man1/hase.1.gz
%files
%defattr(755,root,root,0755)
%attr(644,root,root) %{_datadir}/applications/%{name}.desktop
%attr(644,root,root) %{_datadir}/pixmaps/%{name}.png
%attr(644,root,root) %{prefix}/%{name}/.HamsterStruktogrammEditor.config
%{prefix}/%{name}
/usr/bin/hase
%attr(644,root,root) %{prefix}/man/man1/hase.1.gz
%changelog