Browse Source

Update OpenSUSE spec file

master
Fincer 7 years ago
parent
commit
d73052d576
1 changed files with 7 additions and 9 deletions
  1. +7
    -9
      data/linux/opensuse/openra.spec

+ 7
- 9
data/linux/opensuse/openra.spec View File

@ -23,8 +23,8 @@ Summary: Recreation of the early Command & Conquer games
License: GPL-3.0 License: GPL-3.0
Group: Amusements/Games/Strategy/Real Time Group: Amusements/Games/Strategy/Real Time
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
Source2: thirdparty.tar.gz
Source3: http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
##Source2: thirdparty.tar.gz
##Source3: http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
@ -63,13 +63,13 @@ Red Alert as well as Dune 2000 if the original game files are
provided. provided.
%prep %prep
%setup -q -n %{name}-%{version} -a2
##%setup -q -n %{name}-%{version} -a2
%setup -q -n %{name}-%{version}
make version make version
%build %build
mkdir -p ./thirdparty/download
cp %{SOURCE3} ./thirdparty/download
##mkdir -p ./thirdparty/download
##cp %{SOURCE3} ./thirdparty/download
make dependencies make dependencies
make core make core
@ -84,11 +84,9 @@ make DESTDIR="%{buildroot}" prefix=%{_prefix} install-linux-appdata
make DESTDIR="%{buildroot}" prefix=%{_prefix} install-man-page make DESTDIR="%{buildroot}" prefix=%{_prefix} install-man-page
rm -rf %{buildroot}/usr/lib/openra/mods/cnc/OpenRA.Mods.Cnc.dll.mdb rm -rf %{buildroot}/usr/lib/openra/mods/cnc/OpenRA.Mods.Cnc.dll.mdb
rm -rf %{buildroot}/usr/lib/openra/mods/common/OpenRA.Mods.Common.dll.mdb
rm -rf %{buildroot}/usr/lib/openra/mods/common/{OpenRA.Mods.Common.dll.mdb,OpenRA.Mods.Cnc.dll.mdb}
rm -rf %{buildroot}/usr/lib/openra/mods/d2k/OpenRA.Mods.D2k.dll.mdb rm -rf %{buildroot}/usr/lib/openra/mods/d2k/OpenRA.Mods.D2k.dll.mdb
rm -rf %{buildroot}/usr/lib/openra/mods/ra/OpenRA.Mods.RA.dll.mdb
rm -rf %{buildroot}/usr/lib/openra/mods/ra2/{.gitattributes,.gitignore,.travis.yml,build.cake,OpenRA.Mods.RA2.dll.mdb,make.cmd,make.ps1,makefile} rm -rf %{buildroot}/usr/lib/openra/mods/ra2/{.gitattributes,.gitignore,.travis.yml,build.cake,OpenRA.Mods.RA2.dll.mdb,make.cmd,make.ps1,makefile}
rm -rf %{buildroot}/usr/lib/openra/mods/ts/OpenRA.Mods.TS.dll.mdb
%if 0%{?suse_version} %if 0%{?suse_version}
%fdupes %{buildroot}%{_prefix}/lib %fdupes %{buildroot}%{_prefix}/lib


Loading…
Cancel
Save