[packages/regexxer] - up to 0.10 (GTK 3 based)
qboosh
qboosh at pld-linux.org
Wed Mar 19 19:39:50 CET 2025
commit e2abc617b06cdcbf75e0f404d28eaf232efd8a84
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Mar 19 19:23:59 2025 +0100
- up to 0.10 (GTK 3 based)
regexxer-includes.patch | 32 ++++++++++++++++++++++++++++
regexxer.spec | 56 +++++++++++++++++++++++++++++++------------------
2 files changed, 68 insertions(+), 20 deletions(-)
---
diff --git a/regexxer.spec b/regexxer.spec
index 85eae72..8f8dea5 100644
--- a/regexxer.spec
+++ b/regexxer.spec
@@ -1,18 +1,26 @@
Summary: GUI search/replace tool
Summary(pl.UTF-8): Graficzne narzędzie do wyszukiwania i zamiany
Name: regexxer
-Version: 0.8
+Version: 0.10
Release: 1
-License: GPL
+License: GPL v2+
Group: X11/Applications
-Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: acaa19b119cc7159c42b7f93e02f9fbd
-URL: http://regexxer.sourceforge.net/
-BuildRequires: gconfmm-devel >= 2.6.1
-BuildRequires: gtkmm-devel >= 2.4.0
-BuildRequires: libglademm-devel >= 2.4.0
-BuildRequires: pcre-devel >= 4.4-3
-Requires(post): GConf2 >= 2.6.0
+Source0: https://download.gnome.org/sources/regexxer/0.10/%{name}-%{version}.tar.xz
+# Source0-md5: 782c775e573f4ed76d5c905f5ce48b3a
+Patch0: %{name}-includes.patch
+URL: https://regexxer.sourceforge.net/
+BuildRequires: gdk-pixbuf2-devel >= 2.0
+BuildRequires: gettext-tools >= 0.11
+BuildRequires: glibmm-devel >= 2.28
+BuildRequires: gtkmm3-devel >= 3.0.0
+BuildRequires: gtksourceviewmm3-devel >= 3.0
+BuildRequires: intltool >= 0.35
+BuildRequires: rpmbuild(macros) >= 1.596
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires(post,postun): glib2 >= 1:2.26
+Requires(post,postun): gtk-update-icon-cache
+Requires: hicolor-icon-theme
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -25,31 +33,39 @@ zamiany, wykorzystującym wyrażenia regularne w stylu Perla.
%prep
%setup -q
+%patch -P0 -p1
%build
%configure \
- --disable-schemas-install
+ --disable-schemas-compile
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ GLIB_COMPILE_SCHEMAS=true
%find_lang %{name}
-%post
-%gconf_schema_install
-
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%glib_compile_schemas
+%update_icon_cache hicolor
+
+%postun
+%glib_compile_schemas
+%update_icon_cache hicolor
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
-%{_desktopdir}/*.desktop
-%{_pixmapsdir}/*.png
-%{_sysconfdir}/gconf/schemas/%{name}.schemas
+%attr(755,root,root) %{_bindir}/regexxer
+%{_datadir}/glib-2.0/schemas/org.regexxer.gschema.xml
+%{_datadir}/regexxer
+%{_desktopdir}/regexxer.desktop
+%{_iconsdir}/hicolor/48x48/apps/regexxer.png
diff --git a/regexxer-includes.patch b/regexxer-includes.patch
new file mode 100644
index 0000000..d2863b1
--- /dev/null
+++ b/regexxer-includes.patch
@@ -0,0 +1,32 @@
+--- regexxer-0.10/src/fileshared.h.orig 2011-10-06 14:50:48.000000000 +0200
++++ regexxer-0.10/src/fileshared.h 2025-03-19 17:42:07.778423594 +0100
+@@ -23,6 +23,7 @@
+
+ #include "sharedptr.h"
+
++#include <glibmm/regex.h>
+ #include <gtkmm/textbuffer.h>
+ #include <functional>
+ #include <utility>
+--- regexxer-0.10/src/globalstrings.h.orig 2011-10-06 14:50:48.000000000 +0200
++++ regexxer-0.10/src/globalstrings.h 2025-03-19 17:44:19.814374960 +0100
+@@ -21,7 +21,7 @@
+ #ifndef REGEXXER_GLOBALSTRINGS_H_INCLUDED
+ #define REGEXXER_GLOBALSTRINGS_H_INCLUDED
+
+-#include <glib/gutils.h> /* for G_DIR_SEPARATOR_S */
++#include <glib.h> /* for G_DIR_SEPARATOR_S */
+
+ namespace Regexxer
+ {
+--- regexxer-0.10/src/translation.h.orig 2011-10-06 14:50:48.000000000 +0200
++++ regexxer-0.10/src/translation.h 2025-03-19 17:47:03.360155623 +0100
+@@ -21,7 +21,7 @@
+ #ifndef REGEXXER_TRANSLATION_H_INCLUDED
+ #define REGEXXER_TRANSLATION_H_INCLUDED
+
+-#include <glib/gmacros.h>
++#include <glib.h>
+ #include <glibmm/ustring.h>
+
+ #ifndef gettext_noop
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/regexxer.git/commitdiff/e2abc617b06cdcbf75e0f404d28eaf232efd8a84
More information about the pld-cvs-commit
mailing list