mirror of
https://git.code.sf.net/p/quake/nuq
synced 2024-11-22 12:11:36 +00:00
these most likely won't work yet
This commit is contained in:
parent
9510116b4e
commit
6c94a67ffe
3 changed files with 78 additions and 0 deletions
2
RPM/.gitignore
vendored
Normal file
2
RPM/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
build_rpm
|
||||||
|
uquake.spec
|
27
RPM/build_rpm.in
Normal file
27
RPM/build_rpm.in
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/sh -x
|
||||||
|
|
||||||
|
version=@VERSION@
|
||||||
|
temp_dir=/var/tmp
|
||||||
|
srcdir=@srcdir@
|
||||||
|
if [ "$srcdir" = "." ]; then
|
||||||
|
srcdir=..
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf BUILD SPECS RPMS SOURCES SRPMS
|
||||||
|
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
|
||||||
|
rm -rf ${temp_dir}/quakeforge-${version}
|
||||||
|
cp -a $srcdir ${temp_dir}/quakeforge-${version}
|
||||||
|
dest_dir=$PWD
|
||||||
|
cd ${temp_dir}/quakeforge-${version}
|
||||||
|
# this is needed to ensure there is a makefile
|
||||||
|
./bootstrap
|
||||||
|
./configure
|
||||||
|
make distclean
|
||||||
|
cd ${temp_dir}
|
||||||
|
tar zcf ${dest_dir}/SOURCES/quakeforge-${version}.tar.gz quakeforge-${version}
|
||||||
|
cd ${dest_dir}
|
||||||
|
rm -rf ${temp_dir}/quakeforge-${version}
|
||||||
|
cat > rpmmacros <<EOF
|
||||||
|
%_topdir $PWD
|
||||||
|
EOF
|
||||||
|
rpm -ba quakeforge.spec --rcfile rpmrc
|
49
RPM/uquake.spec.in
Normal file
49
RPM/uquake.spec.in
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
%define name quakeforge
|
||||||
|
%define version @VERSION@
|
||||||
|
%define release 1
|
||||||
|
%define builddir $RPM_BUILD_DIR/%{name}-%{version}
|
||||||
|
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}
|
||||||
|
Vendor: The QuakeForge Project
|
||||||
|
Packager: The QuakeForge Project quake-devel@lists.sourceforge.net
|
||||||
|
#URL:
|
||||||
|
Source: %{name}-%{version}.tar.gz
|
||||||
|
#Patch:
|
||||||
|
Group: Application/Generic
|
||||||
|
Copyright: GPL
|
||||||
|
#Icon:
|
||||||
|
#Requires:
|
||||||
|
BuildRoot: /var/tmp/%{name}-%{version}
|
||||||
|
Summary: 3D game engine based on id Software's Quake engine
|
||||||
|
%description
|
||||||
|
3D game engine based on id Software's Quake engine
|
||||||
|
@configure_input@
|
||||||
|
Please edit quakeforge.spec.in to add several more lines of description
|
||||||
|
here if appropriate, and to delete these instructions.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -n %{name}-%{version}
|
||||||
|
#%patch -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
|
||||||
|
mkdir -p $RPM_BUILD_ROOT
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
# Build the file-list automagically :)
|
||||||
|
cd $RPM_BUILD_ROOT
|
||||||
|
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
|
||||||
|
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
|
||||||
|
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
rm ../file.list.%{name}
|
||||||
|
|
||||||
|
%files -f ../file.list.%{name}
|
||||||
|
%doc README
|
Loading…
Reference in a new issue