diff --git a/SOURCES/no-regex-replace.patch b/SOURCES/no-regex-replace.patch new file mode 100644 index 0000000..9292615 --- /dev/null +++ b/SOURCES/no-regex-replace.patch @@ -0,0 +1,38 @@ +diff -up glibmm-2.56.0/tools/extra_defs_gen/generate_extra_defs.cc.no-regex-replace glibmm-2.56.0/tools/extra_defs_gen/generate_extra_defs.cc +--- glibmm-2.56.0/tools/extra_defs_gen/generate_extra_defs.cc.no-regex-replace 2018-06-09 12:23:09.263360049 -0400 ++++ glibmm-2.56.0/tools/extra_defs_gen/generate_extra_defs.cc 2018-06-09 12:42:26.490317489 -0400 +@@ -36,6 +36,25 @@ void add_signal_flag_if(std::string& str + + } // anonymous namespace + ++static std::string ++string_replace (const char *input, ++ const char *old_token, ++ const char *new_token) ++{ ++ char **split_string; ++ char *c_output; ++ std::string output; ++ ++ split_string = g_strsplit (input, old_token, -1); ++ c_output = g_strjoinv (new_token, split_string); ++ g_strfreev (split_string); ++ ++ output = c_output; ++ g_free (c_output); ++ ++ return output; ++} ++ + std::string + get_property_with_node_name( + GParamSpec* pParamSpec, const std::string& strObjectName, const std::string& strNodeName) +@@ -87,7 +106,7 @@ get_property_with_node_name( + // Replace newlines with \n. + // A string default value can contain newline characters. + // gmmproc removes all newlines when it reads .defs files. +- defString = std::regex_replace(defCString, std::regex("\n"), "\\n"); ++ defString = string_replace (defCString, "\n", "\\n"); + } + else + defString = ""; // A NULL string pointer becomes an empty string. diff --git a/SPECS/glibmm24.spec b/SPECS/glibmm24.spec new file mode 100644 index 0000000..5f44477 --- /dev/null +++ b/SPECS/glibmm24.spec @@ -0,0 +1,488 @@ +# first two digits of version +%define release_version %(echo %{version} | awk -F. '{print $1"."$2}') + +%global glib2_version 2.50.0 +%global libsigc_version 2.9.1 + +Name: glibmm24 +Version: 2.56.0 +Release: 1%{?dist} +Summary: C++ interface for the GLib library + +License: LGPLv2+ +URL: http://www.gtkmm.org/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/glibmm/%{release_version}/glibmm-%{version}.tar.xz + +BuildRequires: glib2-devel >= %{glib2_version} +BuildRequires: libsigc++20-devel >= %{libsigc_version} +BuildRequires: m4 +BuildRequires: perl +%if !0%{?rhel} +BuildRequires: perl-generators +%endif +BuildRequires: perl(Getopt::Long) + +Requires: glib2%{?_isa} >= %{glib2_version} +Requires: libsigc++20%{?_isa} >= %{libsigc_version} + +Patch0: no-regex-replace.patch + +%description +glibmm is the official C++ interface for the popular cross-platform +library GLib. It provides non-UI API that is not available in standard +C++ and makes it possible for gtkmm to wrap GObject-based APIs. + + +%package devel +Summary: Headers for developing programs that will use %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains the static libraries and header files needed for +developing glibmm applications. + + +%package doc +Summary: Documentation for %{name}, includes full API docs +BuildArch: noarch +Requires: %{name} = %{version}-%{release} +Requires: libsigc++20-doc + +%description doc +This package contains the full API documentation for %{name}. + + +%prep +%setup -q -n glibmm-%{version} +%patch0 -p1 -b .no-regex-replace + + +%build +%configure +# removing rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{?_smp_mflags} + + +%install +%make_install +find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%license COPYING +%doc AUTHORS NEWS README +%{_libdir}/*.so.* + +%files devel +%{_includedir}/glibmm-2.4/ +%{_includedir}/giomm-2.4/ +%{_libdir}/*.so +%{_libdir}/glibmm-2.4/ +%{_libdir}/giomm-2.4/ +%{_libdir}/pkgconfig/*.pc + +%files doc +%doc %{_datadir}/devhelp/ +%doc %{_docdir}/glibmm-2.4/ + + +%changelog +* Fri Jun 08 2018 Ray Strode - 2.56.0-1 +- Update to 2.56.0 + Resolves: #1567380 + +* Tue Sep 20 2016 Kalev Lember - 2.50.0-1 +- Update to 2.50.0 +- Resolves: #1386875 + +* Mon Mar 23 2015 Richard Hughes - 2.42.0-1 +- Update to 2.42.0 +- Resolves: #1174565 + +* Fri Jan 24 2014 Daniel Mach - 2.36.2-4 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 2.36.2-3 +- Mass rebuild 2013-12-27 + +* Fri Jun 21 2013 Matthias Clasen - 2.36.2-2 +- Don't install ChangeLog + +* Thu May 02 2013 Kalev Lember - 2.36.2-1 +- Update to 2.36.2 + +* Mon Apr 29 2013 Kalev Lember - 2.36.1-1 +- Update to 2.36.1 + +* Wed Apr 17 2013 Kalev Lember - 2.36.0-1 +- Update to 2.36.0 + +* Wed Mar 20 2013 Kalev Lember - 2.35.9-1 +- Update to 2.35.9 + +* Fri Feb 22 2013 Kalev Lember - 2.35.8-1 +- Update to 2.35.8 + +* Wed Feb 13 2013 Fedora Release Engineering - 2.34.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Nov 10 2012 Kalev Lember - 2.34.1-1 +- Update to 2.34.1 + +* Mon Oct 22 2012 Kalev Lember - 2.34.0-1 +- Update to 2.34.0 + +* Tue Oct 16 2012 Kalev Lember - 2.33.14-1 +- Update to 2.33.14 + +* Wed Sep 26 2012 Kalev Lember - 2.33.13-1 +- Update to 2.33.13 + +* Thu Jul 19 2012 Fedora Release Engineering - 2.33.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jul 10 2012 Kalev Lember - 2.33.3-1 +- Update to 2.33.3 + +* Thu Jun 21 2012 Kalev Lember - 2.33.2-1 +- Update to 2.33.2 + +* Tue Jun 12 2012 Kalev Lember - 2.33.1-1 +- Update to 2.33.1 + +* Wed Apr 11 2012 Kalev Lember - 2.32.0-1 +- Update to 2.32.0 + +* Wed Mar 07 2012 Kalev Lember - 2.31.20-1 +- Update to 2.31.20 + +* Mon Feb 27 2012 Kalev Lember - 2.31.18.1-1 +- Update to 2.31.18.1 + +* Sun Feb 26 2012 Kalev Lember - 2.31.18-1 +- Update to 2.31.18 + +* Tue Feb 07 2012 Kalev Lember - 2.31.16-1 +- Update to 2.31.16 +- Drop upstreamed patches + +* Fri Jan 13 2012 Fedora Release Engineering - 2.31.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Dec 4 2011 Haïkel Guémar - 2.31.2-2 +- close RHBZ #759644 (patch accepted upstream) + +* Sat Dec 3 2011 Haïkel Guémar - 2.31.2-1 +- upstream 2.31.2 (unstable) +- do not use glib deprecated API (RHBZ #759644) + +* Thu Dec 01 2011 Dan Horák 2.30.1-1 +- Update to 2.30.1 - fixes FTBFS with latest glib + +* Wed Sep 28 2011 Ray Strode 2.30.0-1 +- Update to 2.30.0 + +* Wed Sep 07 2011 Kalev Lember - 2.29.13-1 +- Update to 2.29.13 + +* Wed Aug 31 2011 Matthias Clasen - 2.29.12-1 +- Update to 2.29.12 + +* Mon Jul 25 2011 Kalev Lember - 2.29.11-1 +- Update to 2.29.11 + +* Sat Jul 09 2011 Kalev Lember - 2.29.10-1 +- Update to 2.29.10 + +* Tue Jun 14 2011 Kalev Lember - 2.28.2-1 +- Update to 2.28.2 +- Use .xz compressed tarballs +- Clean up the spec file for modern rpmbuild + +* Mon May 09 2011 Kalev Lember - 2.28.1-1 +- Update to 2.28.1 + +* Tue Apr 05 2011 Kalev Lember - 2.28.0-1 +- Update to 2.28.0 + +* Thu Mar 24 2011 Kalev Lember - 2.27.99-1 +- Update to 2.27.99 +- Dropped BR mm-common which is no longer needed for tarball builds +- BR stable glib2 release + +* Wed Mar 23 2011 Kalev Lember - 2.27.98-1 +- Update to 2.27.98 + +* Fri Mar 18 2011 Kalev Lember - 2.27.97-1 +- Update to 2.27.97 +- BuildRequire mm-common as the doctools are no longer bundled + with glibmm tarball. + +* Tue Mar 01 2011 Kalev Lember - 2.27.94-2 +- Spec cleanup +- Actually co-own /usr/share/devhelp/ directory +- Require base package from -doc subpackage + +* Mon Feb 21 2011 Haïkel Guémar - 2.27.94-1 +- upstream 2.27.94 +- fix documentation location +- co-own /usr/share/devhelp + +* Thu Feb 03 2011 Kalev Lember - 2.27.93-1 +- Update to 2.27.93 + +* Thu Jan 13 2011 Kalev Lember - 2.27.91-1 +- Update to 2.27.91 + +* Fri Dec 03 2010 Kalev Lember - 2.27.4-1 +- Update to 2.27.4 + +* Thu Nov 11 2010 Kalev Lember - 2.27.3-1 +- Update to 2.27.3 + +* Tue Nov 02 2010 Kalev Lember - 2.27.2-1 +- Update to 2.27.2 +- Use macro for automatically calculating ftp directory name with + first two digits of tarball version. + +* Mon Nov 01 2010 Kalev Lember - 2.27.1-1 +- Update to 2.27.1 + +* Wed Sep 29 2010 Tom "spot" Callaway - 2.25.5-1 +- update to 2.25.5 + +* Wed Sep 29 2010 jkeating - 2.24.2-2 +- Rebuilt for gcc bug 634757 + +* Mon Sep 13 2010 Kalev Lember - 2.24.2-1 +- Update to 2.24.2 +- Reworked description and summary +- Fixed macro-in-changelog rpmlint warning +- Build doc subpackage as noarch and require base package as + per new licensing guidelines +- Co-own gtk-doc directory (#604169) + +* Thu Apr 29 2010 Haikel Guémar - 2.24.1-1 +- Update to upstream 2.24.1 + +* Wed Apr 7 2010 Denis Leroy - 2.24.0-1 +- Update to stable 2.24.0 + +* Mon Mar 8 2010 Denis Leroy - 2.23.3-1 +- Update to upstream 2.23.3, several bug fixes + +* Thu Feb 18 2010 Denis Leroy - 2.23.2-1 +- Update to upstream 2.23.2 + +* Sun Jan 17 2010 Denis Leroy - 2.23.1-1 +- Update to upstream 2.23.1, new unstable branch to follow glib2 + +* Fri Sep 25 2009 Denis Leroy - 2.22.1-1 +- Update to upstream 2.22.1 + +* Tue Sep 15 2009 Denis Leroy - 2.21.5-2 +- Better fix for devhelp file broken tags + +* Mon Sep 14 2009 Denis Leroy - 2.21.5-1 +- Update to upstream 2.21.5 +- Keep datadir/glibmm-2.4, for doc scripts + +* Wed Sep 2 2009 Denis Leroy - 2.21.4.2-1 +- Update to upstream 2.21.4.2 + +* Sun Aug 30 2009 Denis Leroy - 2.21.4-1 +- Update to upstream 2.21.4 + +* Sun Aug 16 2009 Denis Leroy - 2.21.3-1 +- Update to upstream 2.21.3 + +* Fri Jul 24 2009 Fedora Release Engineering - 2.21.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Jul 9 2009 Denis Leroy - 2.21.1-1 +- Update to upstream 2.21.1 +- Switch to unstable branch, to follow glib2 version + +* Sat Mar 21 2009 Denis Leroy - 2.20.0-1 +- Update to 2.20.0 + +* Tue Feb 24 2009 Fedora Release Engineering - 2.19.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Feb 14 2009 Denis Leroy - 2.19.2-1 +- Update to upstream 2.19.2 +- Some new API, memory leak fix + +* Wed Jan 14 2009 Denis Leroy - 2.19.1-1 +- Update to upstream 2.19.1 + +* Thu Dec 11 2008 Mamoru Tasaka - 2.18.1-2 +- Rebuild for pkgconfig provides + +* Tue Oct 21 2008 Denis Leroy - 2.18.1-1 +- Update to upstream 2.18.1, many bug fixes +- Patch for define conflict upstreamed + +* Sat Oct 11 2008 Denis Leroy - 2.18.0-4 +- Split documentation in new doc sub-package +- Fixed some devhelp documentation links + +* Sun Oct 05 2008 Adel Gadllah - 2.18.0-3 +- Patch error.h directly rather than error.hg + +* Sun Oct 05 2008 Adel Gadllah - 2.18.0-2 +- Backport upstream fix that resolves HOST_NOT_FOUND + symbol conflicts (GNOME #529496) + +* Tue Sep 23 2008 Denis Leroy - 2.18.0-1 +- Update to upstream 2.18.0 + +* Sun Aug 24 2008 Denis Leroy - 2.17.2-1 +- Update to upstream 2.17.2 + +* Wed Jul 23 2008 Denis Leroy - 2.17.1-1 +- Update to upstream 2.17.1 + +* Thu Jul 3 2008 Denis Leroy - 2.17.0-1 +- Update to unstable branch 2.17 + +* Sat May 17 2008 Denis Leroy - 2.16.2-1 +- Update to upstream 2.16.2 + +* Sat Apr 12 2008 Denis Leroy - 2.16.1-1 +- Update to upstream 2.16.1, filechooser refcount bugfix + +* Wed Mar 12 2008 Denis Leroy - 2.16.0-1 +- Update to upstream 2.16.0, added --disable-fulldocs + +* Tue Feb 12 2008 Denis Leroy - 2.15.5-1 +- Update to 2.15.5, skipping borked 2.15.4, CHANGES file gone + +* Wed Jan 23 2008 Denis Leroy - 2.15.2-1 +- Update to upstream 2.15.2 + +* Tue Jan 8 2008 Denis Leroy - 2.15.0-1 +- Update to 2.15 branch, to follow up with glib2 +- Now with giomm goodness + +* Sun Nov 4 2007 Denis Leroy - 2.14.2-1 +- Update to 2.14.2, BRs update + +* Fri Sep 14 2007 Denis Leroy - 2.14.0-1 +- Update to new stable tree 2.14.0 + +* Thu Sep 6 2007 Denis Leroy - 2.13.9-3 +- Removed Perl code autogeneration tools (#278191) + +* Wed Aug 22 2007 Denis Leroy - 2.13.9-2 +- License tag update + +* Wed Aug 1 2007 Denis Leroy - 2.13.9-1 +- Update to 2.13.9 + +* Tue Jul 3 2007 Mamoru Tasaka - 2.13.6-3 +- Rebuild against newest GLib (due to #245141, #245634) + +* Fri Jun 22 2007 Denis Leroy - 2.13.6-2 +- Moved documentation to devhelp directory + +* Thu Jun 21 2007 Denis Leroy - 2.13.6-1 +- Update to unstable 2.13 tree to follow glib2 version + +* Mon Apr 30 2007 Denis Leroy - 2.12.8-1 +- Update to 2.12.8 + +* Thu Mar 15 2007 Denis Leroy - 2.12.7-1 +- Update to 2.12.7 + +* Sun Jan 28 2007 Denis Leroy - 2.12.5-1 +- Update to 2.12.5, some spec cleanups + +* Tue Jan 9 2007 Denis Leroy - 2.12.4-1 +- Update to 2.12.4, number of bug fixes + +* Mon Dec 4 2006 Denis Leroy - 2.12.3-1 +- Update to 2.12.3 +- Added dist tag + +* Mon Oct 2 2006 Denis Leroy - 2.12.2-1 +- Update to 2.12.2 + +* Mon Aug 28 2006 Denis Leroy - 2.12.0-2 +- FE6 Rebuild + +* Mon Aug 21 2006 Denis Leroy - 2.12.0-1 +- Update to 2.12.0 + +* Sun Jun 25 2006 Denis Leroy - 2.10.4-1 +- Update to 2.10.4 + +* Sun May 7 2006 Denis Leroy - 2.10.1-1 +- Update to 2.10.1 + +* Mon Mar 20 2006 Denis Leroy - 2.10.0-1 +- Update to 2.10.0, requires newer glib + +* Tue Feb 28 2006 Denis Leroy - 2.8.4-1 +- Update to 2.8.4 +- Added optional macro to enable static libs + +* Sat Dec 17 2005 Denis Leroy - 2.8.3-1 +- Update to 2.8.3 + +* Fri Nov 25 2005 Denis Leroy - 2.8.2-1 +- Update to 2.8.2 +- Disabled static libraries + +* Mon Sep 19 2005 Denis Leroy - 2.8.0-1 +- Upgrade to 2.8.0 +- Updated glib2 version dependency + +* Fri Sep 2 2005 Michael Schwendt - 2.6.1-2 +- rebuild for gcc-c++-4.0.1-12 + result for GLIBMM_CXX_ALLOWS_STATIC_INLINE_NPOS check changed + +* Sat Apr 9 2005 Denis Leroy - 2.6.1-1 +- Update to version 2.6.1 + +* Fri Apr 7 2005 Michael Schwendt +- rebuilt + +* Wed Nov 17 2004 Denis Leroy - 0:2.4.5-1 +- Upgrade to glibmm 2.4.5 + +* Mon Jun 27 2004 Denis Leroy - 0:2.4.4-0.fdr.1 +- Upgrade to 2.4.4 +- Moved docs to regular directory + +* Fri Dec 6 2002 Gary Peck - 2.0.2-1 +- Removed "--without docs" option and simplified the spec file since the + documentation is included in the tarball now + +* Thu Dec 5 2002 Walter H. van Holst - 1.0.2 +- Removed reference to patch +- Added the documentation files in %%files + +* Thu Oct 31 2002 Gary Peck - 2.0.0-gp1 +- Update to 2.0.0 + +* Wed Oct 30 2002 Gary Peck - 1.3.26-gp3 +- Added "--without docs" option to disable DocBook generation + +* Sat Oct 26 2002 Gary Peck - 1.3.26-gp2 +- Update to 1.3.26 +- Spec file cleanups +- Removed examples from devel package +- Build html documentation (including a Makefile patch) + +* Mon Oct 14 2002 Gary Peck - 1.3.24-gp1 +- Initial release of gtkmm2, using gtkmm spec file as base +