From 0335eaf86c0651cfc7efe1243748b70977c6913c Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 04:32:29 +0100 Subject: [PATCH] automatic rebuild by autodist [release 1.8.5-2mamba;Fri Jul 12 2013] --- README.md | 4 + libgtksourceview1-1.8.5-build-fix.patch | 15 +++ libgtksourceview1-1.8.5-gcc-4.8.patch | 14 +++ libgtksourceview1.spec | 121 ++++++++++++++++++++++++ 4 files changed, 154 insertions(+) create mode 100644 libgtksourceview1-1.8.5-build-fix.patch create mode 100644 libgtksourceview1-1.8.5-gcc-4.8.patch create mode 100644 libgtksourceview1.spec diff --git a/README.md b/README.md index e4b6584..dd92495 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # libgtksourceview1 +GtkSourceView is a text widget that extends the standard gtk+ 2.x text widget. +It improves the gtk+ text widget by implementing syntax highlighting and other features typical of a source editor. +It is part of the GNOME Desktop Environment and it is currently being used by gedit, MonoDevelop, Glimmer and several other projects. + diff --git a/libgtksourceview1-1.8.5-build-fix.patch b/libgtksourceview1-1.8.5-build-fix.patch new file mode 100644 index 0000000..48b104d --- /dev/null +++ b/libgtksourceview1-1.8.5-build-fix.patch @@ -0,0 +1,15 @@ +--- gtksourceview-1.8.5/gtksourceview/gtksourceregex.c.orig 2013-07-11 01:04:55.514801451 +0200 ++++ gtksourceview-1.8.5/gtksourceview/gtksourceregex.c 2013-07-11 01:06:13.305915128 +0200 +@@ -26,12 +26,7 @@ + #include + #include + +-#ifdef NATIVE_GNU_REGEX +-#include +-#include +-#else + #include "gnu-regex/regex.h" +-#endif + + #include "gtksourceregex.h" + diff --git a/libgtksourceview1-1.8.5-gcc-4.8.patch b/libgtksourceview1-1.8.5-gcc-4.8.patch new file mode 100644 index 0000000..2944964 --- /dev/null +++ b/libgtksourceview1-1.8.5-gcc-4.8.patch @@ -0,0 +1,14 @@ +--- gtksourceview-1.8.5/gtksourceview/gnu-regex/regex.h.orig 2013-07-12 12:05:44.379187659 +0200 ++++ gtksourceview-1.8.5/gtksourceview/gnu-regex/regex.h 2013-07-12 12:05:36.205270418 +0200 +@@ -22,11 +22,6 @@ + #ifndef _REGEX_H + #define _REGEX_H 1 + +-#define regcomp gtksourceview_regcomp +-#define regexec gtksourceview_regexec +-#define regerror gtksourceview_regerror +-#define regfree gtksourceview_regfree +- + /* Allow the use in C++ code. */ + #ifdef __cplusplus + extern "C" { diff --git a/libgtksourceview1.spec b/libgtksourceview1.spec new file mode 100644 index 0000000..868725b --- /dev/null +++ b/libgtksourceview1.spec @@ -0,0 +1,121 @@ +Name: libgtksourceview1 +Version: 1.8.5 +Release: 2mamba +Summary: A text widget that extends the standard GTK+ 2.x text widget +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://gtksourceview.sourceforge.net +Source: http://ftp.gnome.org/pub/gnome/sources/gtksourceview/1.8/gtksourceview-%{version}.tar.gz +Patch0: libgtksourceview1-1.8.5-build-fix.patch +Patch1: libgtksourceview1-1.8.5-gcc-4.8.patch +License: GPL +BuildRequires: gettext-devel +BuildRequires: perl-XML-Parser +BuildRequires: libpcre-devel +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: gtk-doc +BuildRequires: libart_lgpl-devel +BuildRequires: libatk-devel +BuildRequires: libcairo-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libglib-devel +BuildRequires: libgnomeprint-devel +BuildRequires: libgtk-devel +BuildRequires: libpango-devel +BuildRequires: libxml2-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +GtkSourceView is a text widget that extends the standard gtk+ 2.x text widget. +It improves the gtk+ text widget by implementing syntax highlighting and other features typical of a source editor. +It is part of the GNOME Desktop Environment and it is currently being used by gedit, MonoDevelop, Glimmer and several other projects. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +GtkSourceView is a text widget that extends the standard gtk+ 2.x text widget. +It improves the gtk+ text widget by implementing syntax highlighting and other features typical of a source editor. +It is part of the GNOME Desktop Environment and it is currently being used by gedit, MonoDevelop, Glimmer and several other projects. + +This package contains static libraries and header files need for development. + +%package apidocs +Group: Documentation +Summary: API documentation for %{name} +Requires: gtk-doc + + +%description apidocs +GtkSourceView is a text widget that extends the standard gtk+ 2.x text widget. +It improves the gtk+ text widget by implementing syntax highlighting and other features typical of a source editor. +It is part of the GNOME Desktop Environment and it is currently being used by gedit, MonoDevelop, Glimmer and several other projects. +This package contains the API documentation needed for development. + +%prep +%setup -q -n gtksourceview-%{version} +%patch0 -p1 +%patch1 -p1 + +%build +%configure --enable-gtk-doc +%make LDFLAGS="`pkg-config --libs gtk+-2.0`" + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang gtksourceview-1.0 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files -f gtksourceview-1.0.lang +%defattr(-,root,root) +%{_libdir}/libgtksourceview-1.0.so.* +%dir %{_datadir}/gtksourceview-1.0 +%dir %{_datadir}/gtksourceview-1.0/language-specs +%{_datadir}/gtksourceview-1.0/language-specs/*.lang +%{_datadir}/gtksourceview-1.0/language-specs/language.dtd +%{_datadir}/gtksourceview-1.0/language-specs/language.rng +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/gtksourceview-1.0/gtksourceview +%{_includedir}/gtksourceview-1.0/gtksourceview/*.h +%{_libdir}/libgtksourceview-1.0.la +%{_libdir}/libgtksourceview-1.0.so +%{_exec_prefix}/lib/pkgconfig/gtksourceview-1.0.pc +%doc ChangeLog NEWS README + +%files apidocs +%defattr(-,root,root) +%dir %{_datadir}/gtk-doc/html/gtksourceview +%{_datadir}/gtk-doc/html/gtksourceview/*.html +#%{_datadir}/gtk-doc/html/gtksourceview/gtksourceview.devhelp +%{_datadir}/gtk-doc/html/gtksourceview/gtksourceview.devhelp2 +%{_datadir}/gtk-doc/html/gtksourceview/*.png +%{_datadir}/gtk-doc/html/gtksourceview/index.sgml +%{_datadir}/gtk-doc/html/gtksourceview/style.css + +%changelog +* Fri Jul 12 2013 Automatic Build System 1.8.5-2mamba +- automatic rebuild by autodist + +* Wed Feb 04 2009 Silvan Calarco 1.8.5-1mamba +- automatic update by autodist + +* Mon Sep 29 2008 Stefano Cotta Ramusino 1.8.4-1mamba +- this version is required by boo