trivial fixes in spec
according to RPM docs, it's better to use ! %{with ...} instead of %{without ...} Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
7c2787e018
commit
062b658437
10
0ad.spec
10
0ad.spec
|
@ -41,7 +41,7 @@ Group: Amusements/Games
|
||||||
Summary: Cross-Platform RTS Game of Ancient Warfare
|
Summary: Cross-Platform RTS Game of Ancient Warfare
|
||||||
Url: http://play0ad.com
|
Url: http://play0ad.com
|
||||||
|
|
||||||
%if %{without nvtt}
|
%if ! %{with nvtt}
|
||||||
# wget http://releases.wildfiregames.com/%%{name}-%%{version}-alpha-unix-build.tar.xz
|
# wget http://releases.wildfiregames.com/%%{name}-%%{version}-alpha-unix-build.tar.xz
|
||||||
# tar Jxf %%{name}-%%{version}-alpha-unix-build.tar.xz
|
# tar Jxf %%{name}-%%{version}-alpha-unix-build.tar.xz
|
||||||
# rm -fr %%{name}-%%{version}-alpha/libraries/nvtt
|
# rm -fr %%{name}-%%{version}-alpha/libraries/nvtt
|
||||||
|
@ -121,8 +121,8 @@ hobbyist game developers, since 2001.
|
||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}-alpha
|
%setup -q -n %{name}-%{version}-alpha
|
||||||
%patch0 -p0
|
%patch0 -p1
|
||||||
%if %{without debug}
|
%if ! %{with debug}
|
||||||
# disable debug build, and "int 0x3" to trap to debugger (x86 only)
|
# disable debug build, and "int 0x3" to trap to debugger (x86 only)
|
||||||
%patch1 -p0
|
%patch1 -p0
|
||||||
%endif
|
%endif
|
||||||
|
@ -147,7 +147,7 @@ build/workspaces/update-workspaces.sh \
|
||||||
%if %{with system_nvtt}
|
%if %{with system_nvtt}
|
||||||
--with-system-nvtt \
|
--with-system-nvtt \
|
||||||
%endif
|
%endif
|
||||||
%if %{without nvtt}
|
%if ! %{with nvtt}
|
||||||
--without-nvtt \
|
--without-nvtt \
|
||||||
%endif
|
%endif
|
||||||
%{?_smp_mflags}
|
%{?_smp_mflags}
|
||||||
|
@ -173,7 +173,7 @@ for name in AtlasUI%{dbg} Collada%{dbg}; do
|
||||||
install -p -m 755 binaries/system/lib${name}.so %{buildroot}%{_libdir}/%{name}/lib${name}.so
|
install -p -m 755 binaries/system/lib${name}.so %{buildroot}%{_libdir}/%{name}/lib${name}.so
|
||||||
done
|
done
|
||||||
|
|
||||||
%if %{with nvtt} && %{without system_nvtt}
|
%if %{with nvtt} && ! %{with system_nvtt}
|
||||||
for name in nvcore nvimage nvmath nvtt; do
|
for name in nvcore nvimage nvmath nvtt; do
|
||||||
install -p -m 755 binaries/system/lib${name}.so %{buildroot}%{_libdir}/%{name}/lib${name}.so
|
install -p -m 755 binaries/system/lib${name}.so %{buildroot}%{_libdir}/%{name}/lib${name}.so
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue