Blob Blame History Raw
Name:           poedit
Version:        1.4.6.1
Release:        1%{?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
BuildRequires:  db4-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


%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# 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
# 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
# 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


%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 docs/en
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*
%{_datadir}/pixmaps/*
%{_mandir}/man?/*
%{_datadir}/poedit


%changelog
* 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