Name: poedit Version: 1.5.4 Release: 4%{?dist} Summary: GUI editor for GNU gettext .po files Group: Development/Tools License: MIT URL: http://www.poedit.net/ Source0: http://downloads.sourceforge.net/poedit/poedit-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: wxGTK-devel >= 2.8.0 BuildRequires: gtkspell-devel %if 0%{?fedora} >= 18 BuildRequires: libdb-cxx-devel %else BuildRequires: db4-devel %endif BuildRequires: boost-devel BuildRequires: zip BuildRequires: desktop-file-utils Requires: gettext %description This program is GUI frontend to GNU Gettext utilities and catalogs editor/source code parser. It helps with translating application into another language. %prep %setup -q # Make sure docs are utf-8 for FILE in `find docs/en -name '*.hhp'`; do iconv -f iso-8859-15 -t utf-8 $FILE > $FILE.tmp && \ touch -r $FILE $FILE.tmp && \ mv -f $FILE.tmp $FILE done %build %configure make %{?_smp_mflags} V=1 %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' # Remove a few unnecessary locations where the makefile may install # copies of icons and .desktop files rm -rf \ $RPM_BUILD_ROOT%{_datadir}/applnk \ $RPM_BUILD_ROOT%{_datadir}/mimelnk \ $RPM_BUILD_ROOT%{_datadir}/gnome \ $RPM_BUILD_ROOT%{_datadir}/mime-info # Install the desktop file desktop-file-install \ --delete-original \ --vendor fedora \ --add-category=GTK \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ $RPM_BUILD_ROOT%{_datadir}/applications/poedit.desktop %{find_lang} poedit # work around for https://bugzilla.redhat.com/show_bug.cgi?id=866058 rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/*/mimetypes/text-x-gettext-translation.* %clean rm -rf $RPM_BUILD_ROOT %post update-desktop-database &> /dev/null ||: touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun update-desktop-database &> /dev/null ||: if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f poedit.lang %defattr(-,root,root,-) %doc NEWS TODO README COPYING AUTHORS docs/*.txt %{_bindir}/* %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/* %{_datadir}/pixmaps/* %{_mandir}/man?/* %{_datadir}/poedit %changelog * Thu Dec 27 2012 Christoph Wickert <cwickert@fedoraproject.org> - 1.5.4-4 - Make sure translation memory gets built (#870724) * Mon Oct 22 2012 Christoph Wickert <cwickert@fedoraproject.org> - 1.5.4-3 - Really fix file conflict, affects all sizes (#866058) * Mon Oct 15 2012 Christoph Wickert <cwickert@fedoraproject.org> - 1.5.4-2 - Fix file conflict (#866058) * Thu Oct 11 2012 Christoph Wickert <cwickert@fedoraproject.org> - 1.5.4-1 - Update to 1.5.4 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 01 2012 Christoph Wickert <cwickert@fedoraproject.org> - 1.4.6.1-6 - Don't ship docs twice (#827472) * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.4.6.1-4 - Rebuild for new libpng * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 1.4.6.1-2 - rebuilt against wxGTK-2.8.11-2 * Sat Apr 02 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.4.6.1-1 - Update to 1.4.6.1 (#579235) - New BuildRequires boost-devel - Update icon cache scriptlets * Fri Feb 05 2010 Haïkel Guémar <karlthered@gmail.com> - 1.4.5-1 * Updated to 1.4.5 * Fri Jan 29 2010 Haïkel Guémar <karlthered@gmail.com> - 1.4.4-1 * Updated to 1.4.4 * Fri Sep 18 2009 Haïkel Guémar <karlthered@gmail.com> - 1.4.3-1 * Updated to 1.4.3 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Mar 26 2009 Bill Nottingham <notting@redhat.com> - 1.4.2-4 - rebuild per bug #492193, releng ticket 1432 * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Dec 27 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.4.2-2 - We still need desktop-file-utils, just not the post/postun scriptlets * Sat Dec 27 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.4.2-1 - Upstream 1.4.2 - Do not depend on desktop-file-utils (#463047) - Fix source location * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.9-2 - Autorebuild for GCC 4.3 * Sun Dec 23 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.9-1 - Upstream 1.3.9 - Make sure all docs are utf-8 * Fri Aug 17 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.7-1 - Upstream 1.3.7 - Require gettext (#253228) * Sun Dec 17 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.6-1.2 - Rebuild for new wx in devel * Fri Nov 10 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.6-1.1 - Rebuild for newer db4 in devel * Mon Oct 30 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.6-1 - Upstream 1.3.6 * Sun Oct 29 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.5-1 - Upstream 1.3.5 * Sun Sep 03 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.4-2.1 - FC6 rebuild * Wed May 24 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.4-2 - Remove any potential places where makefile may create copies of .desktop files and icons. * Tue May 23 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.3.4-1 - Initial packaging