[xboard] 4.6.2 release

Rahul Sundaram sundaram at fedoraproject.org
Tue Feb 19 18:40:55 UTC 2013


commit 73022b1c66c172628ea55463dd14efa3440bf86c
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date:   Tue Feb 19 13:40:48 2013 -0500

    4.6.2 release
    
    - https://www.gnu.org/software/xboard/whats_new/4.6.2/index.html
    - drop xboard-4.5.1-default_engine.patch
    - update url, use find_lang macro, handle extra desktop files and mime info
    - clean up spec to follow current guidelines

 .gitignore                        |    1 +
 sources                           |    2 +-
 xboard-4.5.1-default_engine.patch |   28 ----------------------------
 xboard.spec                       |   34 ++++++++++++++++++++++++----------
 4 files changed, 26 insertions(+), 39 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a2466f3..50afd0b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ xboard-4.4.2.tar.gz
 /xboard-4.5.1.tar.gz
 
 /xboard-4.5.2a.tar.gz
+/xboard-4.6.2.tar.gz
diff --git a/sources b/sources
index 2d1bd85..88c0363 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-40cd3c42e21241e04601dfb4a4b08608  xboard-4.5.2a.tar.gz
+6e6d119fac60d68139d7836426212efb  xboard-4.6.2.tar.gz
diff --git a/xboard.spec b/xboard.spec
index 4e734cd..5904986 100644
--- a/xboard.spec
+++ b/xboard.spec
@@ -1,15 +1,13 @@
 Summary: An X Window System graphical chessboard
 Name: xboard
-Version: 4.5.2a
-Release: 4%{?dist}
+Version: 4.6.2
+Release: 1%{?dist}
 Group: Amusements/Games
-URL: http://www.tim-mann.org/xboard.html
+URL: https://www.gnu.org/software/xboard/
 Source0: ftp://ftp.gnu.org/pub/gnu/xboard/xboard-%{version}.tar.gz
 Source1: xboard.desktop
-Patch1: xboard-4.5.1-default_engine.patch
 Requires: chessprogram, xorg-x11-fonts-100dpi
 License: GPLv3+
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires(post): info
 Requires(preun): info
 BuildRequires: desktop-file-utils >= 0.2.93
@@ -18,6 +16,7 @@ BuildRequires: xorg-x11-xbitmaps, libICE-devel, libXmu-devel, libSM-devel
 BuildRequires: libXaw-devel, libXt-devel, xorg-x11-proto-devel
 BuildRequires: libXpm-devel, libXext-devel
 BuildRequires: automake
+BuildRequires: gettext
 
 %description
 Xboard is an X Window System based graphical chessboard which can be
@@ -28,7 +27,6 @@ Install the xboard package if you need a graphical chessboard.
 
 %prep
 %setup -q 
-%patch1 -p1 -b .rh1
 
 # Needed for ppc64, automake can't be run here
 cp -f %{_datadir}/automake-*/config.* .
@@ -38,21 +36,28 @@ cp -f %{_datadir}/automake-*/config.* .
 make %{?_smp_mflags}
 
 %install
-make install DESTDIR=$RPM_BUILD_ROOT
+%make_install
 
 desktop-file-install \
 	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
 	%{SOURCE1}
 
+desktop-file-install \
+	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
+	*.desktop
+
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 install -pm 755 -p cmail $RPM_BUILD_ROOT%{_bindir}
 
+%find_lang %{name}
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 /sbin/install-info --quiet --info-dir=%{_infodir} \
 	%{_infodir}/%{name}.info.gz || :
 
+/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
+
 %preun
 if [ "$1" = 0 ]; then
 	/sbin/install-info --quiet --info-dir=%{_infodir} \
@@ -65,11 +70,12 @@ if [ $1 -eq 0 ] ; then
 	gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 fi
 
+/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
+
 %posttrans
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
-%files
-%defattr(-,root,root)
+%files -f %{name}.lang
 %doc COPYING COPYRIGHT AUTHORS NEWS README FAQ.html
 %doc engine-intf.html
 %config(noreplace) %{_sysconfdir}/xboard.conf
@@ -80,9 +86,17 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_datadir}/icons/hicolor/*/apps/xboard.png
 %{_datadir}/icons/hicolor/*/apps/xboard.svg
 %{_datadir}/games/xboard
-%{_datadir}/applications/xboard.desktop
+%{_datadir}/applications/xboard*.desktop
+%{_datadir}/mime/packages/xboard.xml
 
 %changelog
+* Tue Feb 19 2013 Rahul Sundaram <sundaram at fedoraproject.org> 4.6.2-1
+- 4.6.2 release
+- https://www.gnu.org/software/xboard/whats_new/4.6.2/index.html
+- drop xboard-4.5.1-default_engine.patch
+- update url, use find_lang macro, handle extra desktop files and mime info
+- clean up spec to follow current guidelines
+
 * Fri Feb 15 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.5.2a-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list