File poedit.spec of Package poedit
Name: poedit
Version: 1.4.6.1
Release: 1
Summary: A cross-platform Gettext catalogs editing tool
License: MIT licence
Group: Development/Tools/Other
URL: http://www.poedit.net/
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 gcc-c++ gtkspell-devel zip
BuildRequires: update-desktop-files
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="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure
make %{?_smp_mflags}
%install
DESTDIR=$RPM_BUILD_ROOT make install
%suse_update_desktop_file -c poedit poEdit "Tool for editing po files" poedit poedit Development Translation
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,755)
%doc AUTHORS COPYING NEWS README TODO
%{_bindir}/*
%{_mandir}/man1/*
%dir %{_datadir}/poedit
%{_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