|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
Name: poedit
|
|
|
|
|
Version: 1.8.12
|
|
|
|
|
Version: 2.0.7
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: GUI editor for GNU gettext .po files
|
|
|
|
|
Summary(de): Grafischer Editor für GNU Gettext-Dateien
|
|
|
|
@ -10,14 +10,23 @@ URL: http://www.poedit.net/
|
|
|
|
|
Source0: https://github.com/vslavik/%{name}/releases/download/v%{version}-oss/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: http://pkgs.fedoraproject.org/cgit/rpms/%{name}.git/plain/%{name}.1.de.po
|
|
|
|
|
|
|
|
|
|
BuildRequires: wxGTK3-devel >= 3.0.0
|
|
|
|
|
BuildRequires: wxGTK3-devel >= 3.0.3
|
|
|
|
|
BuildRequires: gtkspell3-devel
|
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
BuildRequires: lucene++-devel
|
|
|
|
|
BuildRequires: libdb-cxx-devel
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: po4a
|
|
|
|
|
BuildRequires: libsecret-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: cpprest-devel
|
|
|
|
|
# cld2 is not available for ppc64 s390x
|
|
|
|
|
%ifnarch ppc64 s390x
|
|
|
|
|
BuildRequires: cld2-devel
|
|
|
|
|
%endif
|
|
|
|
|
# Use json.hpp from Fedora and not the version bundled with Poedit
|
|
|
|
|
BuildRequires: json-devel
|
|
|
|
|
|
|
|
|
|
Requires: gettext
|
|
|
|
|
|
|
|
|
@ -33,7 +42,7 @@ Dienstprogramme aus GNU Gettext bereit, sowie einen Katalogeditor und einen
|
|
|
|
|
Quellcode-Parser. Es hilft beim Übersetzen von Anwendungen in andere Sprachen.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%autosetup
|
|
|
|
|
# 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 && \
|
|
|
|
@ -43,7 +52,12 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --with-wx-config=/usr/bin/wx-config-3.0
|
|
|
|
|
%ifarch ppc64 s390x
|
|
|
|
|
# cld2 is not available for ppc64 s390x
|
|
|
|
|
%configure --with-wx-config=/usr/bin/wx-config-3.0 --with-cpprest
|
|
|
|
|
%else
|
|
|
|
|
%configure --with-wx-config=/usr/bin/wx-config-3.0 --with-cpprest --with-cld2
|
|
|
|
|
%endif
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -65,9 +79,6 @@ desktop-file-install \
|
|
|
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
|
|
|
%{buildroot}%{_datadir}/applications/poedit.desktop
|
|
|
|
|
|
|
|
|
|
# work around for https://bugzilla.redhat.com/show_bug.cgi?id=866058
|
|
|
|
|
rm -f %{buildroot}%{_datadir}/icons/hicolor/*/mimetypes/text-x-gettext-translation.*
|
|
|
|
|
|
|
|
|
|
# Generate and install localized man pages
|
|
|
|
|
mkdir -p man/de
|
|
|
|
|
po4a-translate -M utf-8 -f man \
|
|
|
|
@ -82,24 +93,6 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.ap
|
|
|
|
|
|
|
|
|
|
%{find_lang} poedit --with-man
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
%doc NEWS README AUTHORS docs/*.txt
|
|
|
|
|
%license COPYING
|
|
|
|
@ -107,22 +100,56 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
|
%{_datadir}/icons/hicolor/*/mimetypes/*
|
|
|
|
|
%{_datadir}/poedit
|
|
|
|
|
%{_datadir}/pixmaps/*
|
|
|
|
|
%{_libexecdir}/poedit-dump-legacy-tm
|
|
|
|
|
%{_mandir}/man?/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Feb 19 2017 Mario Blättermann <mario.blaettermann@gmail.com> - 1.8.12-1
|
|
|
|
|
* Mon Apr 23 2018 Wolfgang Stöggl <c72578@yahoo.de> - 2.0.7-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.11-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
* Mon Feb 12 2018 Wolfgang Stöggl <c72578@yahoo.de> - 2.0.6-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
|
|
* Sat Jan 28 2017 Jonathan Wakely <jwakely@redhat.com> - 1.8.11-2
|
|
|
|
|
- Rebuilt for Boost 1.63
|
|
|
|
|
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.4-3
|
|
|
|
|
- Remove obsolete scriptlets
|
|
|
|
|
|
|
|
|
|
* Fri Oct 13 2017 Wolfgang Stöggl <c72578@yahoo.de> - 2.0.4-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
- Configure without cld2 for ppc64 s390x (instead of ExcludeArch)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 28 2017 Mario Blättermann <mario.blaettermann@gmail.com> - 2.0.3-3
|
|
|
|
|
- Add ExcludeArch: ppc64 s390x (no cld2 there)
|
|
|
|
|
- Use cld2-devel for language detection
|
|
|
|
|
- Add BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
|
|
* Wed Jul 26 2017 Mario Blättermann <mario.blaettermann@gmail.com> - 2.0.3-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
- Use cpprest-devel for Crowdin support
|
|
|
|
|
|
|
|
|
|
* Sat Jun 03 2017 Mario Blättermann <mario.blaettermann@gmail.com> - 2.0.2-5
|
|
|
|
|
- Thanks to Wolfgang Stöggl <c72578@yahoo.de> for the following changes:
|
|
|
|
|
- Add upstream fix to enable opening of .po files again in Poedit 2.0.2
|
|
|
|
|
- Fix DrawRoundedRectangle assert with wxGTK 3.0
|
|
|
|
|
- Add dependency on json-devel (use json.hpp from Fedora and not the version
|
|
|
|
|
bundled with Poedit
|
|
|
|
|
- Fixed spurious assert in wxGTK wxDataViewCtrl::EditItem()
|
|
|
|
|
- Compile with CLD2 language detection from copr c72578/cld2
|
|
|
|
|
- Compile with Crowdin integration using cpprest from copr c72578/cpprest
|
|
|
|
|
- Remove outdated BuildRequires
|
|
|
|
|
|
|
|
|
|
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 15 2017 Mario Blättermann <mario.blaettermann@gmail.com> - 2.0.2-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
|
|
* Fri May 12 2017 Mario Blättermann <mario.blaettermann@gmail.com> - 2.0.1-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
|
|
* Sun Feb 19 2017 Mario Blättermann <mario.blaettermann@gmail.com> - 1.8.12-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
|
|
* Sun Oct 30 2016 Mario Blättermann <mario.blaettermann@gmail.com> - 1.8.11-1
|
|
|
|
|
- New upstream version
|
|
|
|
|