Rebuild poedit for pugixml 1.10

- pugixml.pc is available now in the Fedora rpm
- Drop: poedit-2.1-update_configure_check_for_pugixml.patch
- Update URL for poedit.1.de.po
This commit is contained in:
Wolfgang Stöggl 2019-09-19 14:27:20 +02:00
parent 7586efa7e4
commit a5ae063118
2 changed files with 9 additions and 133 deletions

View File

@ -1,124 +0,0 @@
--- a/configure 2018-07-23 12:48:05.000000000 +0200
+++ b/configure 2018-07-23 12:52:12.000000000 +0200
@@ -8782,6 +8782,18 @@
fi
+if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pugixml\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "pugixml") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pugixml_found=yes
+else
+ pugixml_found=no
+fi
+
+if test x"$pugixml_found" = xyes; then
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PUGIXML" >&5
@@ -8841,22 +8853,97 @@
# Put the nasty error message in config.log where it belongs
echo "$PUGIXML_PKG_ERRORS" >&5
-
-
+ pugixml_found=no
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
-
-
+ pugixml_found=no
else
PUGIXML_CFLAGS=$pkg_cv_PUGIXML_CFLAGS
PUGIXML_LIBS=$pkg_cv_PUGIXML_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
+ pugixml_found=yes
+fi
+fi
- CXXFLAGS="$CXXFLAGS $PUGIXML_CFLAGS -DHAVE_PUGIXML"
+if test x"$pugixml_found" = xno; then
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+
+ for ac_header in pugixml.hpp
+do :
+ ac_fn_cxx_check_header_mongrel "$LINENO" "pugixml.hpp" "ac_cv_header_pugixml_hpp" "$ac_includes_default"
+if test "x$ac_cv_header_pugixml_hpp" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_PUGIXML_HPP 1
+_ACEOF
+
+fi
+done
+
+ if test x"$ac_cv_header_pugixml_hpp" = xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpugixml" >&5
+$as_echo_n "checking for main in -lpugixml... " >&6; }
+if ${ac_cv_lib_pugixml_main+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpugixml $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+return main ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_pugixml_main=yes
+else
+ ac_cv_lib_pugixml_main=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pugixml_main" >&5
+$as_echo "$ac_cv_lib_pugixml_main" >&6; }
+if test "x$ac_cv_lib_pugixml_main" = xyes; then :
+
+ PUGIXML_LIBS=-lpugixml
+ pugixml_found=yes
+
+fi
+
+ fi
+
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+fi
+
+if test $pugixml_found = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Using the system version of the pugixml library" >&5
+$as_echo "$as_me: Using the system version of the pugixml library" >&6;}
+ CXXFLAGS="$CXXFLAGS $PUGIXML_CFLAGS -DHAVE_PUGIXML"
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Using bundled copy of pugixml library" >&5
+$as_echo "$as_me: Using bundled copy of pugixml library" >&6;}
fi

View File

@ -1,17 +1,13 @@
Name: poedit
Version: 2.2.3
Release: 2%{?dist}
Release: 3%{?dist}
Summary: GUI editor for GNU gettext .po files
Summary(de): Grafischer Editor für GNU Gettext-Dateien
License: MIT
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
# Workaround until a new version of pugixml is released. See also:
# https://github.com/vslavik/poedit/pull/499
# https://src.fedoraproject.org/rpms/pugixml/pull-request/1
Patch1: poedit-2.1-update_configure_check_for_pugixml.patch
Source1: https://src.fedoraproject.org/rpms/%{name}/raw/HEAD/f/%{name}.1.de.po
BuildRequires: wxGTK3-devel >= 3.0.3
BuildRequires: gtkspell3-devel
@ -30,9 +26,7 @@ BuildRequires: cld2-devel
%endif
# Use json.hpp from Fedora and not the version bundled with Poedit
BuildRequires: json-devel
# Disable pkgconfig for now until pugixml.pc is available in the Fedora rpm
# BuildRequires: pkgconfig(pugixml) >= 1.9
BuildRequires: pugixml-devel >= 1.9
BuildRequires: pkgconfig(pugixml) >= 1.9
Requires: gettext
@ -99,6 +93,12 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/net.%{nam
%changelog
* Thu Sep 19 2019 Wolfgang Stöggl <c72578@yahoo.de> - 2.2.3-3
- Rebuild poedit for pugixml 1.10
pugixml.pc is available now in the Fedora rpm
- Drop: poedit-2.1-update_configure_check_for_pugixml.patch
- Update URL for poedit.1.de.po
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild