[packages/poedit] - up to 3.3.2

baggins baggins at pld-linux.org
Fri Sep 29 10:28:31 CEST 2023


commit e9acc0fb9c6cb04bd6aeaa4fd38ca5f16b99a592
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Sep 29 09:16:15 2023 +0200

    - up to 3.3.2

 poedit-desktop.patch | 10 ----------
 poedit.spec          | 52 +++++++++++++++++++++-------------------------------
 2 files changed, 21 insertions(+), 41 deletions(-)
---
diff --git a/poedit.spec b/poedit.spec
index 4beeab4..84d384a 100644
--- a/poedit.spec
+++ b/poedit.spec
@@ -1,21 +1,22 @@
 Summary:	Gettext catalogs editor
 Summary(pl.UTF-8):	Edytor katalogów gettexta
 Name:		poedit
-Version:	1.4.6.1
-Release:	3
+Version:	3.3.2
+Release:	1
 License:	MIT
 Group:		X11/Applications/Editors
-Source0:	http://downloads.sourceforge.net/poedit/%{name}-%{version}.tar.gz
-# Source0-md5:	c63ffd991b1a6085ef356a6922356e0a
-Patch0:		%{name}-desktop.patch
-URL:		http://poedit.sourceforge.net/
+Source0:	https://github.com/vslavik/poedit/releases/download/v%{version}-oss/%{name}-%{version}.tar.gz
+# Source0-md5:	83b18a3e983c9444b31f1132a5039819
+URL:		https://poedit.net/
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake >= 1:1.9
-BuildRequires:	gtk+2-devel
-BuildRequires:	gtkspell-devel
+BuildRequires:	boost-devel
+BuildRequires:	gtk+3-devel
+BuildRequires:	gtkspell3-devel
+BuildRequires:	lucene++-devel >= 3.0.5
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.311
-BuildRequires:	wxGTK2-unicode-devel >= 2.8.0
+BuildRequires:	wxGTK3-unicode-devel >= 3.0.3
 BuildRequires:	wxWidgets-utils
 Requires(post,postun):	desktop-file-utils
 Requires(post,postun):	gtk-update-icon-cache
@@ -43,35 +44,23 @@ kliknięcie.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
-%{__aclocal} -I admin
-%{__autoconf}
-%{__automake}
 %configure \
-	--disable-transmem \
-	--with-wx-config=wx-gtk2-unicode-config \
+	--with-wx-config=wx-gtk3-unicode-config \
 	--%{?debug:en}%{!?debug:dis}able-debug
 
-%{__make} \
-	EXTRADIR="" \
-	expatlib="-lexpat"
+%{__make} V=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-	EXTRADIR="" \
+%{__make} install V=1 \
 	DESTDIR=$RPM_BUILD_ROOT
 
 # fix/update locale names
-install -d $RPM_BUILD_ROOT%{_datadir}/locale/{af,fa,pt,sq}/LC_MESSAGES
-mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{af_ZA/LC_MESSAGES/poedit.mo,af/LC_MESSAGES/poedit.mo}
-mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{fa_IR/LC_MESSAGES/poedit.mo,fa/LC_MESSAGES/poedit.mo}
-mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{pt_PT/LC_MESSAGES/poedit.mo,pt/LC_MESSAGES/poedit.mo}
-mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{sq_AL/LC_MESSAGES/poedit.mo,sq/LC_MESSAGES/poedit.mo}
-
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/co
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
 
 %find_lang %{name}
 
@@ -88,11 +77,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING NEWS README TODO
+%doc AUTHORS COPYING NEWS README.md
 %attr(755,root,root) %{_bindir}/poedit
 %{_datadir}/poedit
-%{_desktopdir}/poedit.desktop
-%{_pixmapsdir}/poedit.png
-%{_iconsdir}/hicolor/*/*/poedit.png
-%{_iconsdir}/hicolor/*/*/poedit.svg
+%{_desktopdir}/net.poedit.Poedit.desktop
+%{_desktopdir}/net.poedit.PoeditURI.desktop
+%{_metainfodir}/net.poedit.Poedit.appdata.xml
+%{_iconsdir}/hicolor/*/*/net.poedit.Poedit.png
+%{_iconsdir}/hicolor/*/*/net.poedit.Poedit.svg
 %{_mandir}/man1/poedit.1*
diff --git a/poedit-desktop.patch b/poedit-desktop.patch
deleted file mode 100644
index 0156e8b..0000000
--- a/poedit-desktop.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- poedit-1.4.4/install/poedit.desktop.org	2010-01-29 22:46:46.000000000 +0100
-+++ poedit-1.4.4/install/poedit.desktop	2010-01-29 22:47:41.000000000 +0100
-@@ -2,6 +2,7 @@
- Name=Poedit
- Comment=Gettext catalogs editor
- Comment[fr]=Outil de traduction
-+Comment[pl]=Edytor katalogów Gettexta
- MimeType=application/x-po;application/x-gettext;text/x-gettext-translation;text/x-po;
- Exec=poedit %F
- Icon=poedit
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/poedit.git/commitdiff/e9acc0fb9c6cb04bd6aeaa4fd38ca5f16b99a592



More information about the pld-cvs-commit mailing list