File poedit.spec of Package poedit
#
# spec file for package poedit
#
# Copyright (c) 2011 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: poedit
Version: 1.4.6.1
Release: 1
License: MIT licence
Summary: A cross-platform Gettext catalogs editing tool
Url: http://www.poedit.net/
Group: Development/Tools/Other
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} <= 1130
BuildRequires: wxGTK-devel
%else
BuildRequires: wxWidgets-devel
%endif
BuildRequires: db-devel
BuildRequires: gcc-c++
BuildRequires: gtkspell-devel
BuildRequires: update-desktop-files
BuildRequires: zip
Requires: gettext-tools
%description
poEdit is cross-platform gettext catalogs (.po files) editor.
It is built with wxWidgets toolkit and can run on any platform
supported by it. It aims to provide more convenient approach to
editing catalogs than launching vi and editing the file by hand.
%prep
%setup -q
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
%configure
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file -c poedit poEdit "Tool for editing po files" poedit poedit Development Translation
%find_lang %{name}
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root,755)
%doc AUTHORS COPYING NEWS README TODO
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/poedit/
%{_datadir}/applications/poedit.desktop
%{_datadir}/pixmaps/poedit.png
%{_datadir}/icons/*
%if 0%{?suse_version} < 1120
%dir %{_datadir}/locale/af_ZA
%dir %{_datadir}/locale/af_ZA/LC_MESSAGES
%dir %{_datadir}/locale/fa_IR
%dir %{_datadir}/locale/fa_IR/LC_MESSAGES
%endif
%changelog