vice.spec - kopiący emulator commodorków

l00natyk majkl w op.pl
Sob, 5 Lut 2005, 02:17:52 CET


Dobra, sorki za zasmiecanie. Jak pech to pech, nie wiem jak to sie stalo
bo sprawdzalem na cvs'ie i widocznie musialem zrobic literowke i nie
zauwazyc.
Jakby co to ten juz powinien dzialac, do tego z cvs'u sie nie bede
mieszal i jak ktos zainteresowany to zrobi co bedzie uwazal. Nie wiem co
zrobic bo ten z cvs jest dziwny i np nie wymaga kernel-headers a tam
jest np. joystick.h.
-- 
l00natyk <majkl w op.pl>
Plasticine Revolution Front
-------------- następna część ---------
# $Revision:$, $Date:$
#
####################################################################
#
# without gnomeui is's very ugly and annoying, you can try it :P
#
# TODO:
#
# - nice vice.desktop
# - put emulators to separate packages
#
####################################################################
%bcond_without	gnome	# without gnome user interface
%bcond_without	ffmpeg	# without ffmpeg
%bcond_with	xaw3d	# Xaw3d will replace standard Xaw interface
%bcond_with	sdl	# build with SDL_sound
%bcond_with	full	# enable fullscreen
Summary:	VICE, the Versatile Commodore Emulator
Summary(pl):	Pakiet emulatorów Commodore
Name:		vice
Version:	1.15
Release:	1.0
License:	GPL
Group:		Applications/Emulators
Source0:	ftp://ftp.funet.fi/pub/cbm/crossplatform/emulators/VICE/%{name}-%{version}.tar.gz
# Source0-md5:	da91ecf6b8d6bf95d3a9c33929b466b4
URL:		http://www.viceteam.org/
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%{!?without_gnome:BuildRequires:	libgnomeui-devel}
%{!?without_ffmpeg:BuildRequires:	ffmpeg-devel}
%{?with_xaw3d:BuildRequires:	Xaw3d-devel}
%{?with_sdl:BuildRequires:	SDL_sound-devel}
BuildRequires:	kernel-headers
BuildRequires:	perl
BuildRequires:	gettext-devel
BuildRequires:	bison
BuildRequires:	readline-devel
BuildRequires:	imlib-devel
BuildRequires:	rpmbuild(macros) >= 1.118

%description
VICE is a set of accurate emulators for the Commodore 64, 128, VIC20,
PET, Plus4 and CBM-II 8-bit computers, all of which run under the X
Window System.

%description -l pl
Vice jest znakomitym pakietem emulującym rodzinę komputerów Commodore
działającym pod X-Windows. Emuluje maszyny Commodore 64, 128, VIC20,
PET, Plus4, CBM-II.

%prep
%setup -q

%build
CFLAGS="%{rpmcflags} -DNO_REGPARM"
%configure \
	%{!?with_sdl:--without-sdl} \
	%{!?without_gnome:--enable-gnomeui} \
	%{!?without_ffmpeg:--enable-ffmpeg} \
	%{!?with_xaw3d:--without-xaw3d} \
	%{?with_xaw3d:--with-xaw3d} \
	%{?with_sdl:--enable-sdl} \
	%{?with_full:--enable-fullscreen}

%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_prefix}/{bin,lib/vice}
install -d $RPM_BUILD_ROOT%{_prefix}/{share/man/man1,share/info}
install	-d $RPM_BUILD_ROOT%{_datadir}/locale/{pl,de,fr,it,sv,\
pl/LC_MESSAGES,\
de/LC_MESSAGES,\
fr/LC_MESSAGES,\
it/LC_MESSAGES,\
sv/LC_MESSAGES}
cp man/* $RPM_BUILD_ROOT%{_mandir}/man1/
cp doc/vice.info* $RPM_BUILD_ROOT%{_datadir}/info/
cp src/x* $RPM_BUILD_ROOT%{_bindir}/
cp src/c1541 $RPM_BUILD_ROOT%{_bindir}/
cp src/petcat $RPM_BUILD_ROOT%{_bindir}/
cp po/pl.gmo $RPM_BUILD_ROOT%{_datadir}/locale/pl/LC_MESSAGES/vice.mo
cp po/de.gmo $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/vice.mo
cp po/fr.gmo $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/vice.mo
cp po/it.gmo $RPM_BUILD_ROOT%{_datadir}/locale/it/LC_MESSAGES/vice.mo
cp po/sv.gmo $RPM_BUILD_ROOT%{_datadir}/locale/sv/LC_MESSAGES/vice.mo
cp src/arch/unix/vsid $RPM_BUILD_ROOT%{_bindir}/
cp -r data/* $RPM_BUILD_ROOT%{_prefix}/lib/vice/
mkfontdir $RPM_BUILD_ROOT%{_prefix}/lib/vice/fonts
rm -r $RPM_BUILD_ROOT/*/*/*/*/Makefile*
rm -r $RPM_BUILD_ROOT/*/*/*/Makefile*
gzip -9 $RPM_BUILD_ROOT%{_mandir}/man1/*
gzip -9 $RPM_BUILD_ROOT%{_datadir}/info/*


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS FEEDBACK INSTALL README doc/html/vice* doc/html/index.html doc/html/images/* doc/html/plain/*
%attr(755,root,root) %{_bindir}/x64
%attr(755,root,root) %{_bindir}/x128
%attr(755,root,root) %{_bindir}/xplus4
%attr(755,root,root) %{_bindir}/xvic
%attr(755,root,root) %{_bindir}/xpet
%attr(755,root,root) %{_bindir}/xcbm2
%attr(755,root,root) %{_bindir}/c1541
%attr(755,root,root) %{_bindir}/petcat
%attr(755,root,root) %{_bindir}/vsid
%{_prefix}/lib/vice/
%{_mandir}/man1/*
%{_datadir}/info/vice.info*
%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/vice.mo
%lang(de) %{_datadir}/locale/de/LC_MESSAGES/vice.mo
%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/vice.mo
%lang(it) %{_datadir}/locale/it/LC_MESSAGES/vice.mo
%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/vice.mo

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$


Więcej informacji o liście dyskusyjnej pld-devel-pl