File gtetrinet.spec of Package gtetrinet

#
# spec file for package gtetrinet
#
# Copyright (c) 2013 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/
#


Name:           gtetrinet
Version:        0.7.11
Release:        0
Summary:        A Client for the TetriNET Game
License:        GPL-2.0+
Group:          Amusements/Games/Logic
Url:            http://gtetrinet.sourceforge.net/
Source:         %{name}-%{version}.tar.bz2
Source1:        tetrinet.txt
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         %{name}-%{version}.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1:         gtetrinet-desktop.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch2:         gtetrinet-sr_latin.patch
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gnutls-devel
BuildRequires:  intltool
BuildRequires:  libgnomeprintui-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(libwnck-1.0)
Requires:       %{name}-lang = %{version}
Requires:       %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(pre):  filesystem
Requires(pre):  gconf2
%gconf_schemas_prereq

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

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

%build
autoreconf -fi
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="%{optflags} -Wall" \
#	./configure \
#	--prefix=%{_prefix} \
#	--libdir=%{_libdir} \
#	--sysconfdir=/etc \
#	--mandir=%{_mandir} \
#	--with-gnome-libs=%{_libdir}
%configure --disable-schemas-install
make %{?_smp_mflags}

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

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

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

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by