Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
games
paintown
paintown.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File paintown.spec of Package paintown
# # spec file for package paintown # # Copyright (c) 2015 SUSE LINUX 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/ # Name: paintown Version: 3.6.0 Release: 0 Summary: 2D Fighting Game License: GPL-2.0+ Group: Amusements/Games/Action/Arcade Url: http://paintown.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Source1: %{name}.desktop.in Source2: %{name}.sh # PATCH-FIX-UPSTREAM paintown-noreturnnonvoid-fix.patch Patch0: paintown-noreturnnonvoid-fix.patch # PATCH-FIX-OPENSUSE devel.suse@gmail.com: Tell cmake where to look for freetype files on openSUSE Patch1: paintown-find-freetype.patch # PATCH-FIX-OPENSUSE devel.suse@gmail.com: Fix for "program is likely to break with new gcc" Patch2: paintown-no-strict-aliasing.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: glibc-devel BuildRequires: liballeg-devel BuildRequires: libogg-devel BuildRequires: libpng-devel BuildRequires: libtool BuildRequires: libvorbis-devel BuildRequires: make BuildRequires: pkgconfig BuildRequires: python-devel BuildRequires: zlib-devel BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(sdl) %if 0%{?suse_version} BuildRequires: fdupes BuildRequires: update-desktop-files %endif Requires: %{name}-data = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Paintown is a 2D fighting game in the same style as Double Dragon and TMNT. Paintown is very extensible and comes with editors to help design new levels and animations. %package data Summary: 2D Fighting Game (Data Files) Group: Amusements/Games/Action/Arcade Requires: %{name} = %{version} BuildArch: noarch %description data Paintown is a 2D fighting game in the same style as Double Dragon and TMNT. Paintown is very extensible and comes with editors to help design new levels and animations. This package contains the data files. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 find data/ -type f -exec chmod 0644 {} \; %build # LIBSUFFIX=$(echo "%{_lib}" | sed 's|^lib||') export CFLAGS="%{optflags} -Wall" export CXXFLAGS="$CFLAGS" mkdir build pushd build cmake \ -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ -DCMAKE_VERBOSE_MAKEFILE=TRUE \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags} -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags} -DNDEBUG" \ -DCMAKE_SKIP_RPATH=TRUE \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \ -DCMAKE_STRIP="%{_bindir}/touch" \ -DDEBUG=OFF \ -DUSE_SDL=ON \ .. make %{?_smp_mflags} popd #build %install install -D -m0755 ./build/bin/%{name} %{buildroot}%{_bindir}/%{name}-bin install -d "%{buildroot}%{_datadir}" install -d "%{buildroot}%{_bindir}" cp -a data "%{buildroot}%{_datadir}/%{name}-%{version}" install -D -m0644 misc/icon.png "%{buildroot}%{_datadir}/pixmaps/%{name}.png" install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop" sed -i 's|@@BINDIR@@|%{_bindir}/%{name}-bin|g;s|@@DATADIR@@|%{_datadir}/%{name}-%{version}|g' "%{buildroot}%{_datadir}/applications/%{name}.desktop" install -D -m0755 %{SOURCE2} %{buildroot}%{_bindir}/%{name} %if 0%{?suse_version} %fdupes -s %{buildroot}%{_prefix} %suse_update_desktop_file -r "%{name}" Game ArcadeGame %endif %files %defattr(-,root,root) %doc LEGAL LICENSE README TODO scripting.txt %{_bindir}/%{name} %{_bindir}/%{name}-bin %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %files data %defattr(-,root,root) %{_datadir}/%{name}-%{version} %changelog
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