File gtetrinet.spec of Package gtetrinet

#
# spec file for package gtetrinet (Version 0.7.11)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           gtetrinet
BuildRequires:  fdupes gnutls-devel intltool libglade2-devel libgnomeprintui-devel libgnomeui-devel libwnck-devel perl-XML-Parser update-desktop-files
License:        GPL v2 or later
Group:          Amusements/Games/Logic
AutoReqProv:    on
PreReq:         filesystem gconf2
Version:        0.7.11
Release:        235
Summary:        A Client for the TetriNET Game
Url:            http://gtetrinet.sourceforge.net/
Source:         %{name}-%{version}.tar.bz2
Source1:        tetrinet.txt
Patch0:         %{name}-%{version}.patch
Patch1:         gtetrinet-desktop.patch
Patch2:         gtetrinet-sr_latin.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}
%gconf_schemas_prereq

%description
GTetrinet is a client program for the popular Tetrinet game, a
multiplayer tetris game that is played over the Internet.



Authors:
--------
    Ka-shu Wong (kswong@zip.com.au)
    James Antill <james@and.org>
    Jordi Mallach <jordi@sindominio.net>
    Dani Carbonell <bocata@panete.net>

%lang_package
%prep
%setup -q
cp %{S:1} .
%patch0
%patch1
%patch2
mv po/sr@Latn.po po/sr@latin.po

%build
%{suse_update_config -f}
rm -f aclocal.m4
# It doesn't compile with gettextize. Not fixed yet, not necessary. 
#gettextize -f -c  
aclocal 
automake -ac
autoconf
# Uncommment this if gettextize above is uncommented 
#mv po/Makevars.template po/Makevars
#CFLAGS="$RPM_OPT_FLAGS -Wall" \
#	./configure \
#	--prefix=%{_prefix} \
#	--libdir=%{_prefix}/%{_lib} \
#	--sysconfdir=/etc \
#	--mandir=%{_prefix}/share/man \
#	--with-gnome-libs=%{_prefix}/%{_lib}
%configure --disable-schemas-install
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
gzip -9nf $RPM_BUILD_ROOT%{_prefix}/share/man/man?/*.?
%suse_update_desktop_file gtetrinet
%find_gconf_schemas
%find_lang %{name}
cat %{name}.schemas_list >%{name}.lst
%fdupes $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lst
%defattr(-,root,root)
%doc %{_prefix}/share/man/man?/*
%doc AUTHORS COPYING ChangeLog NEWS README TODO tetrinet.txt
%{_prefix}/bin/gtetrinet
%{_prefix}/share/applications/*
%{_prefix}/share/%{name}
%{_prefix}/share/pixmaps/*

%files lang -f %{name}.lang

%changelog
* Wed Feb 11 2009 ro@suse.de
- use sr@latin instead of sr@Latn
* Sun Jan 25 2009 vuntz@novell.com
- Call %%suse_update_desktop_file on all desktop files. Part of
  bnc#445728.
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Tue Aug 07 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage.
* Mon Mar 12 2007 lmichnovic@suse.cz
- fixed gconf_schemas
- now using find_lang macro
* Mon Jan 15 2007 lmichnovic@suse.cz
- changed prefix to /usr and sysconfdir to /etc due GNOME move
  to /usr
* Mon Dec 11 2006 lmichnovic@suse.cz
- update to version 0.9.11
  * Fix a long-standing hang/crash when executing GTetrinet for
  the first time
  * Remember game mode setting
  * New and updated translations
* Wed Sep 27 2006 lmichnovic@suse.cz
- update to version 0.9.10
  * security fix CVE-2006-3125 (obsoletes sec_check.patch)
  * some minor fixes in manpage
* Wed Aug 16 2006 lmichnovic@suse.cz
- fixed possible remote code execution [#199665] (sec_check.patch)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 03 2006 lmichnovic@suse.cz
- update to version 0.7.9
* Wed Dec 15 2004 hvogel@suse.de
- fix desktop file
* Tue Nov 02 2004 ro@suse.de
- locale rename: no -> nb
* Wed Jun 02 2004 ro@suse.de
- do not define GTK_DISABLE_DEPRECATED and GNOME_DISABLE_DEPRECATED
* Tue May 11 2004 sbrabec@suse.cz
- Fixed gconftool-2 prerequirements.
* Mon Mar 15 2004 sbrabec@suse.cz
- FHS 2.3 fix (mandir, infodir, #35821).
* Wed Mar 10 2004 sbrabec@suse.cz
- Fixed gconf schemas installation (#33114).
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Thu Oct 09 2003 ltinkl@suse.cz
- update to version 0.7.5
* Tue Aug 12 2003 ro@suse.de
- remove outdated aclocal.m4
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Wed Jul 09 2003 ltinkl@suse.cz
- update to version 0.7.3
- repackaged sources to tar.bz2
* Fri Jun 20 2003 mjancar@suse.cz
- update to 0.7.2
- fix filelist
* Mon May 05 2003 ro@suse.de
- call autoreconf
* Mon Feb 17 2003 vbobek@suse.cz
- updated to version 0.5.2:
  * GNOME2 port
  * bug fixes
  * added new minor features
- added patch for gnome2
* Thu Nov 14 2002 prehak@suse.cz
- initial version 0.4.4 of this package
openSUSE Build Service is sponsored by