]> git.pld-linux.org Git - packages/vice.git/blobdiff - vice.spec
- unified, small pl enhancement
[packages/vice.git] / vice.spec
index 62cf2ae0c14bc8c85dcdaa2c5d6781c92949e922..268b77d994b0778a8b95abc3c7f57d8a27809959 100644 (file)
--- a/vice.spec
+++ b/vice.spec
@@ -1,20 +1,21 @@
 #
 # Conditional build:
-# _without_gnome - without GNOME support
+%bcond_without gnome   # without GNOME support
 #
 Summary:       Commodore emulator
 Summary(pl):   Emulator Commodore
 Name:          vice
-Version:       1.13
+Version:       1.16
 Release:       1
 License:       GPL
 Group:         Applications/Emulators
 Source0:       ftp://ftp.funet.fi/pub/cbm/crossplatform/emulators/VICE/%{name}-%{version}.tar.gz
-# Source0-md5: 6e7bfc52bc273ebeb057c7cb21357c5b
+# Source0-md5: 23848e7fe588b32549a5ce4ccf056207
 Patch0:                %{name}-info.patch
-Patch1:                %{name}-DESTDIR.patch
+Patch1:                %{name}-FHS.patch
 Patch2:                %{name}-gettext.patch
-URL:           http://viceteam.bei.t-online.de/
+Patch3:                %{name}-home_etc.patch
+URL:           http://www.viceteam.org/
 BuildRequires: SDL-devel >= 1.2.0
 BuildRequires: XFree86-devel
 BuildRequires: autoconf
@@ -23,10 +24,11 @@ BuildRequires:      bison
 BuildRequires: esound-devel
 BuildRequires: flex
 BuildRequires: gettext-devel
-%{!?_without_gnome:BuildRequires:      gnome-libs-devel}
+%{?with_gnome:BuildRequires:   gnome-libs-devel}
 BuildRequires: libpng-devel
 BuildRequires: readline-devel
 BuildRequires: texinfo
+Requires(post,postun): fontpostinst >= 0.1-6
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -40,17 +42,19 @@ of line anyway) and the CBM-II (aka C610).
 %description -l pl
 VICE jest wszechstronnym emulatorem 8-bitowego komputera Commodore.
 Aktualna wersja emuluje C64, C128 (wraz z trybem pracy 80 kolumnowym),
-VIC20, wszystkie modele PET (poza SuperPET 9000) oraz CBM-II (C610).
+VIC20, wszystkie modele PET (poza SuperPET 9000, który zreszt± nie
+pasowa³ do tej linii) oraz CBM-II (C610).
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__gettextize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
@@ -58,10 +62,11 @@ cd src/resid
 %{__autoconf}
 cd ../..
 %configure \
+       --libdir=%{_datadir} \
        --enable-autobpp \
        --with-sdl \
        --enable-fullscreen \
-       %{!?_without_gnome:--enable-gnomeui} \
+       %{?with_gnome:--enable-gnomeui} \
        --enable-nls \
        --without-xaw3d \
        --without-included-gettext \
@@ -71,24 +76,33 @@ cd ../..
 %install
 rm -rf $RPM_BUILD_ROOT
 
+perl -i -pe 's/SUBDIRS = html\n//' doc/Makefile
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+gzip -9n $RPM_BUILD_ROOT%{_fontsdir}/misc/*
+rm -f doc/html/{Makefile*,texi2html}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/vice/doc
+ln -sf %{_docdir}/%{name}-%{version}/html $RPM_BUILD_ROOT%{_datadir}/vice/doc
+
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
+fontpostinst misc
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %postun
+fontpostinst misc
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS Chan* FEEDBACK NEWS README
-%attr(0755,root,root) %{_bindir}/*
-%{_libdir}/vice
+%doc AUTHORS ChangeLog FEEDBACK NEWS README doc/iec-bus.txt doc/mon.txt doc/html
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/vice
+%{_fontsdir}/misc/*
 %{_mandir}/man?/*
 %{_infodir}/*.info*
This page took 0.032683 seconds and 4 git commands to generate.