2000-08-20 05:51:42 +00:00
|
|
|
%define name nuq
|
2000-08-19 22:57:42 +00:00
|
|
|
%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@
|
2000-08-20 05:51:42 +00:00
|
|
|
Please edit nuq.spec.in to add several more lines of description
|
2000-08-19 22:57:42 +00:00
|
|
|
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
|