modernized spec file and makefile

This commit is contained in:
cebix 2005-06-30 21:27:26 +00:00
parent fa5ae3ab6e
commit 57609bf2fc
3 changed files with 8 additions and 17 deletions

View File

@ -1,16 +1,16 @@
%define name BasiliskII %define name BasiliskII
%define version 1.0 %define version 1.0rc1
%define release 1 %define release 1
Summary: 68k Macintosh emulator Summary: 68k Macintosh emulator
Name: %{name} Name: %{name}
Version: %{version} Version: %{version}
Release: %{release} Release: %{release}
Copyright: GPL License: GPL
Group: Applications/Emulators Group: Applications/Emulators
Source: %{name}_src_15012002.tar.gz Source0: %{name}_src_30062005.tar.gz
URL: http://www.uni-mainz.de/~bauec002/B2Main.html URL: http://www.uni-mainz.de/~bauec002/B2Main.html
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# While the data file path (/usr/share/BasiliskII) is compiled into the # While the data file path (/usr/share/BasiliskII) is compiled into the
# executable, the data files are not required for operation and their location # executable, the data files are not required for operation and their location
@ -47,22 +47,13 @@ Some features of Basilisk II:
%build %build
cd src/Unix cd src/Unix
CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir} %configure
if [ -x /usr/bin/getconf ] ; then
NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN)
if [ $NCPU -eq 0 ] ; then
NCPU=1
fi
else
NCPU=1
fi
(make -k -j $NCPU; exit 0)
make make
%install %install
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
cd src/Unix cd src/Unix
make DESTDIR=${RPM_BUILD_ROOT} install %makeinstall
%clean %clean
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}

View File

@ -57,7 +57,7 @@ $(SRCARCHIVE): $(SRCS) $(DOCS)
# RPMs (source and binary) # RPMs (source and binary)
# #
rpm: $(SRCARCHIVE) rpm: $(SRCARCHIVE)
rpm -ta --clean $(SRCARCHIVE) rpmbuild -ta --clean $(SRCARCHIVE)
# #
# Binary archive for AmigaOS # Binary archive for AmigaOS

View File

@ -2,7 +2,7 @@
Basilisk II Basilisk II
A 68k Macintosh emulator A 68k Macintosh emulator
Copyright (C) 1997-2004 Christian Bauer et al. Copyright (C) 1997-2005 Christian Bauer et al.
License License