File etoys.spec of Package etoys

%define name    etoys
%define version 5.0.2408
%define release 1
%define source  %{name}-%{version}

Name:		%{name}
Summary:	A media-rich model, game, and simulation construction kit and authoring tool
Version:	%{version}
Release:	%{release}
Vendor:		Squeakland Foundation
URL:		http://squeakland.org/
License:	MIT/Apache
BuildArchitectures: noarch
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Source:		%{source}.tar.gz
Group:		Development/Languages/Other
Prefix:		/usr
Requires:	squeak-vm >= 3.10
BuildRequires:	shared-mime-info
BuildRequires:	gettext

%description
Squeak Etoys was inspired by LOGO, PARC-Smalltalk, Hypercard,
and starLOGO. It is a media-rich authoring environment with a
simple powerful scripted object model for many kinds of objects
created by end-users that runs on many platforms, and is free
and open source. It includes graphics, images, text, particles,
presentations, web-pages, videos, sound and MIDI, etc.

%prep
%setup -n %{source}

%build
./autogen.sh --prefix=/usr
make ROOT=%{buildroot} %{?_smp_mflags}

%install
[ -n "%{buildroot}" -a "%{buildroot}" != "/" ] && rm -rf "%{buildroot}"
make install-etoys ROOT=%{buildroot}

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

%post
/usr/bin/update-mime-database /usr/share/mime &> /dev/null

%postun
/usr/bin/update-mime-database /usr/share/mime &> /dev/null

%files
%defattr(-,root,root)
/usr/share/etoys
/usr/bin/etoys
/usr/share/doc/etoys
/usr/share/mime/packages/etoys.xml

%changelog
openSUSE Build Service is sponsored by