Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dmayr
sauerbraten
sauerbraten.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sauerbraten.spec of Package sauerbraten
# spec file for package sauerbraten # # Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. # # please send bugfixes or comments to feedback@suse.de. Vendor: SuSE GmbH, Nuernberg, Germany Name: sauerbraten Release: 1 Group: Amusements/Games/3D/Shoot BuildRequires: SDL_image-devel gcc-c++ Mesa-devel %if %suse_version > 930 BuildRequires: SDL_mixer-devel %else BuildRequires: SDL-devel SDL_mixer %endif Requires: sauerbraten-data Autoreqprov: on Packager: dmayr@suse.de Version: 2007_04_15 Summary: Sauerbraten Source: %{name}_%{version}_spring_edition_linux.tar.bz2 License: zlib BuildRoot: %{_tmppath}/%{name}-%{version}-build ### Patch: %name-glheader.patch %description %package server Summary: Sauerbraten standalone server Group: unsorted %description server %prep %setup -n %{name} ### %patch -p1 %build rm -r bin_unix mkdir -p bin_unix cd src CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \ make CXXOPTFLAGS="-Wall -fsigned-char $RPM_OPT_FLAGS" make install cd ../bin_unix mv *client client mv *server server %install mkdir -p $RPM_BUILD_ROOT/usr/lib/%name cp -a bin_unix $RPM_BUILD_ROOT/usr/lib/%name mkdir -p $RPM_BUILD_ROOT/usr/bin cat <<EOT >$RPM_BUILD_ROOT/usr/bin/%name #!/bin/sh CUBE_DIR=\$HOME/.cube if test ! -e \$CUBE_DIR then mkdir \$CUBE_DIR ln -s /usr/lib/%name/* \$CUBE_DIR fi cd \$CUBE_DIR exec bin_unix/client \$* EOT chmod 755 $RPM_BUILD_ROOT/usr/bin/%name ln -sf ../lib/%name/bin_unix/server $RPM_BUILD_ROOT/usr/bin/%name-server %{?suse_check:%{suse_check}} %clean rm -fr $RPM_BUILD_ROOT %files %defattr(-,root,root) /usr/bin/%name %dir /usr/lib/%name %dir /usr/lib/%name/bin_unix /usr/lib/%name/bin_unix/client %files server %defattr(-,root,root) /usr/bin/%name-server %dir /usr/lib/%name/bin_unix /usr/lib/%name/bin_unix/server
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor