File dmlangsel.spec of Package dmlangsel

#
# spec file for package dmlangsel (Version 0.6)
#
# 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:           dmlangsel
BuildRequires:  gtk2-devel intltool perl-XML-Parser update-desktop-files
Version:        0.6
Release:        47
License:        GPL v2 or later
Group:          System/GUI/GNOME
Url:            http://code.google.com/p/loolixbodes/wiki/dmlangsel
Summary:        A language picker
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}-po.tar.gz 
Patch0:         include-locale.patch
Patch1:         include-string.patch
Patch2:         dmlangsel-sr_latin.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Applet to select language.



Authors:
--------
    Jacob Berkman <jberkman@novell.com>

%prep
%setup -q -a1
%patch0
%patch1
%patch2
mv po/sr@Latn.po po/sr@latin.po

%build
CFLAGS="$RPM_OPT_FLAGS" \
%configure
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%find_lang %{name}
%suse_update_desktop_file %name -G "Select a language"

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc
%{_bindir}/dmlangsel
%{_datadir}/applications/dmlangsel.desktop
%if %suse_version < 1020
%{_datadir}/locale/hy
%{_datadir}/locale/mg
%{_datadir}/locale/or
%{_datadir}/locale/si
%endif

%changelog
* Wed Feb 11 2009 ro@suse.de
- use sr@latin instead of sr@Latn
* Sat Dec 06 2008 mauro@suse.de
- Updated translations.
* Tue May 20 2008 mauro@suse.de
- Updated to version 0.6.
- This fixes bnc#378474
* Fri Feb 22 2008 gekker@suse.de
- Don't just fall back to en_US
* Wed Jan 09 2008 gekker@suse.de
- Initial import into autobuild