diff --git a/pluma.spec b/pluma.spec index d1f2a0d17fcaaee1b63aee6a0224ba163053e2ae..a67bdba0a7df417332effb8b7d77ce3ad4a73958 100644 --- a/pluma.spec +++ b/pluma.spec @@ -1,34 +1,40 @@ -%define python3_version %(python3 -c "v=__import__('sys').version_info; print(v.major*1000000 + v.minor*1000 + v.micro)") - Summary: Text editor for the MATE desktop Name: pluma Version: 1.28.0 -Release: 2 -License: GPLv2+ and LGPLv2+ -URL: http://mate-desktop.org +Release: 3 +License: GPL-2.0-or-later AND LGPL-2.1-or-later +URL: https://mate-desktop.org # for downloading the tarball use 'spectool -g -R pluma.spec' # Source for release-builds. -Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz +Source0: https://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz Patch1: 0001-add-chinese-translation.patch Patch2: 0002-fix-pluma-utils-Fixed-garbled-toolTips-path-in-tab-p.patch +BuildRequires: make gcc +BuildRequires: pkgconfig(enchant-2) >= 1.6.0 +BuildRequires: pkgconfig(gio-2.0) >= 2.50.0 +BuildRequires: pkgconfig(glib-2.0) >= 2.50.0 +BuildRequires: pkgconfig(gmodule-2.0) +BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.9.3 +BuildRequires: pkgconfig(gthread-2.0) >= 2.13.0 +BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.0 +BuildRequires: pkgconfig(gtksourceview-4) >= 4.0.2 +BuildRequires: pkgconfig(ice) >= 1.0.0 +BuildRequires: pkgconfig(iso-codes) >= 0.35 +BuildRequires: pkgconfig(libpeas-1.0) >= 1.2.0 +BuildRequires: pkgconfig(libpeas-gtk-1.0) >= 1.2.0 +BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0 +BuildRequires: pkgconfig(mate-desktop-2.0) >= 1.27.1 +BuildRequires: pkgconfig(sm) >= 1.0.0 +BuildRequires: pkgconfig(x11) +BuildRequires: gtk-doc >= 1.0 +BuildRequires: python3-devel BuildRequires: desktop-file-utils -BuildRequires: enchant-devel -BuildRequires: libpeas-devel -BuildRequires: gtk3-devel -BuildRequires: gtksourceview4-devel -BuildRequires: iso-codes-devel -BuildRequires: libSM-devel BuildRequires: make BuildRequires: mate-common -BuildRequires: mate-desktop-devel -BuildRequires: python3-gobject-base -BuildRequires: python3-devel -%if 0%{?python3_version} >= 3012000 - BuildRequires: python3-setuptools -%endif +BuildRequires: python3-setuptools Requires: %{name}-data = %{version}-%{release} # needed to get a gsettings schema, #959607 @@ -62,7 +68,6 @@ This package contains shared data needed for pluma. %package devel Summary: Support for developing plugins for the pluma text editor Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: gtksourceview4-devel %description devel Development files for pluma @@ -83,23 +88,14 @@ find ./*/*/* -type f -exec chmod 644 {} \; --enable-gvfs-metadata \ --disable-schemas-compile -make %{?_smp_mflags} V=1 +%make_build %install %{make_install} - -desktop-file-install \ - --delete-original \ - --dir %{buildroot}%{_datadir}/applications \ -%{buildroot}%{_datadir}/applications/*.desktop - -# clean up all the static libs for plugins -find %{buildroot} -name '*.la' -exec rm -f {} ';' -find %{buildroot} -name '*.a' -exec rm -f {} ';' +%delete_la %find_lang %{name} --with-gnome --all-name - %files %{_bindir}/pluma %{_libdir}/pluma/ @@ -121,11 +117,13 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';' %files devel %{_includedir}/pluma/ %{_libdir}/pkgconfig/pluma.pc -%{_datadir}/gtk-doc/html/pluma/ +%doc %{_datadir}/gtk-doc/html/pluma/ %{_datadir}/gir-1.0/Pluma-1.0.gir - %changelog +* Thu Aug 07 2025 Funda Wang - 1.28.0-3 +- build with enchant2 + * Thu Apr 24 2025 yuanxing - 1.28.0-2 KYOS-B: add python3 version judgment in BuildRequires