|
|
|
@ -1,28 +1,33 @@
|
|
|
|
|
Name: poedit
|
|
|
|
|
Version: 2.0.3
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 2.0.9
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: GUI editor for GNU gettext .po files
|
|
|
|
|
Summary(de): Grafischer Editor für GNU Gettext-Dateien
|
|
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.poedit.net/
|
|
|
|
|
URL: https://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
|
|
|
|
|
# Fix builds for ppc64 and ppc64le
|
|
|
|
|
# Add powerpc64 and powerpc64le to checked AC_CANONICAL_HOST, host_cpu values
|
|
|
|
|
Patch0: poedit-2.0.8-configure_ppc64_ppc64le.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: wxGTK3-devel >= 3.0.3
|
|
|
|
|
BuildRequires: gtkspell3-devel
|
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
BuildRequires: lucene++-devel
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: po4a
|
|
|
|
|
BuildRequires: libsecret-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: cpprest-devel
|
|
|
|
|
# Not yet available officially, copr c72578/cld2
|
|
|
|
|
# BuildRequires: cld2-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
|
|
|
|
|
|
|
|
|
@ -40,7 +45,7 @@ Dienstprogramme aus GNU Gettext bereit, sowie einen Katalogeditor und einen
|
|
|
|
|
Quellcode-Parser. Es hilft beim Übersetzen von Anwendungen in andere Sprachen.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
# 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 && \
|
|
|
|
@ -50,9 +55,12 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Use cld2 once the package comes up
|
|
|
|
|
# %%configure --with-wx-config=/usr/bin/wx-config-3.0 --with-cpprest --with-cld2
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -88,24 +96,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
|
|
|
|
@ -119,19 +109,37 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
* Thu Jul 12 2018 Wolfgang Stöggl <c72578@yahoo.de> - 2.0.9-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
- Update URL
|
|
|
|
|
|
|
|
|
|
* Sun Jun 10 2018 Wolfgang Stöggl <c72578@yahoo.de> - 2.0.8-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
- Add poedit-2.0.8-configure_ppc64_ppc64le.patch
|
|
|
|
|
Fixes build errors on ppc64 and ppc64le (boost library not found)
|
|
|
|
|
|
|
|
|
|
* Mon Apr 23 2018 Wolfgang Stöggl <c72578@yahoo.de> - 2.0.7-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
|
|
* Mon Feb 12 2018 Wolfgang Stöggl <c72578@yahoo.de> - 2.0.6-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 2.0.2-7
|
|
|
|
|
- Rebuilt for s390x binutils bug
|
|
|
|
|
|
|
|
|
|
* Tue Jul 18 2017 Jonathan Wakely <jwakely@redhat.com> - 2.0.2-6
|
|
|
|
|
- Rebuilt for Boost 1.64
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|