File defendguin.spec of Package defendguin

# Now for the meat of the spec file
#
Name:			defendguin
Version:		0.0.12
Summary:		A Defender clone, with a Linux theme
License:		GPLv2
URL:			http://www.newbreedsoftware.com/defendguin/
Group:			Amusements/Games/Action/Arcade
Release:		1
Source:			%{name}-%{version}.tar.gz
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:		pkg-config
BuildRequires:		update-desktop-files
BuildRequires:		SDL-devel
BuildRequires:		SDL_image-devel
BuildRequires:		SDL_mixer-devel
BuildRequires:		xorg-x11-libX11-devel

%description
Defendguin is a clone of the arcade game "Defender," but with a Linux theme.
Your mission is to defend little penguinoids from being captured and mutated.


%prep
%setup -q
sed -e "s:PREFIX=/usr/local:PREFIX=%{_prefix}:g" -i Makefile


%build
%{__make} %{?jobs:-j%jobs}


%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/%{name}
mkdir -p %{buildroot}/%{_mandir}/man6
install -m 755 %{name} %{buildroot}/%{_bindir}/%{name}
install -m 644 src/%{name}.6 %{buildroot}/%{_mandir}/man6/
cp -a data/* %{buildroot}/%{_datadir}/%{name}/

%clean
%{__rm} -rf %{buildroot}
%{__rm} -rf %{_builddir}/%{name}-%{version}-%{release}-buildroot


%files
%defattr(-,root,root)
%doc docs/*
%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6*
%{_datadir}/%{name}


openSUSE Build Service is sponsored by