# This package depends on automagic byte compilation # https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2 %global _python_bytecompile_extra 1 # Filter provides from plugins. %global __provides_exclude_from ^%{_libdir}/%{name}/plugins/.*$ Name: xed Version: 2.4.2 Release: 1%{?dist} Summary: X-Apps [Text] Editor (Cross-DE, backward-compatible, GTK3, traditional UI) License: GPLv2+ URL: https://github.com/linuxmint/%{name} Source0: %url/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: meson BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: gnome-common BuildRequires: gtk-doc BuildRequires: intltool BuildRequires: libappstream-glib BuildRequires: pkgconfig(enchant) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gspell-1) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(gtksourceview-3.0) BuildRequires: pkgconfig(libpeas-gtk-1.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(iso-codes) BuildRequires: python3-gobject-base BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(xapp) >= 1.4.0 BuildRequires: python%{python3_pkgversion}-devel Requires: iso-codes Requires: libpeas-loader-python%{python3_pkgversion}%{?_isa} Requires: python%{python3_pkgversion}-gobject%{?_isa} Requires: xapps%{?_isa} Requires: zenity%{?_isa} %description Xed is a small, but powerful text editor. It has most standard text editor functions and fully supports international text in Unicode. Advanced features include syntax highlighting and automatic indentation of source code, printing and editing of multiple documents in one window. Xed is extensible through a plugin system, which currently includes support for spell checking, comparing files, viewing CVS ChangeLogs, and adjusting indentation levels. %package devel Summary: Files needed to develop plugins for %{name} Requires: %{name}%{?_isa} == %{version}-%{release} %description devel This package contains files needed to develop plugins for %{name}. %package doc Summary: Documentation files for %{name} BuildArch: noarch %description doc This package contains the documentation files for %{name}. %prep %autosetup -p 1 # Use 'classic'-theme by default. %{__sed} -i -e 's!tango!classic!g' data/org.x.editor.gschema.xml.in # Make source-files noexec. %{_bindir}/find . -type f -name '*.c' | %{_bindir}/xargs %{__chmod} -c 0644 %{_bindir}/find . -type f -name '*.h' | %{_bindir}/xargs %{__chmod} -c 0644 %build %meson \ -Ddocs=true \ -Ddeprecated_warnings=false %meson_build %install %meson_install %{__sed} -i -e '/.*.*/d' \ %{buildroot}%{_metainfodir}/%{name}.appdata.xml %{_bindir}/find %{buildroot} -name '*.a' -print -delete %{_bindir}/find %{buildroot} -name '*.la' -print -delete %find_lang %{name} %check # Validate desktop-files. %{_bindir}/desktop-file-validate \ %{buildroot}%{_datadir}/applications/%{name}.desktop # Validate AppData-files. %{_bindir}/appstream-util validate-relax --nonet \ %{buildroot}%{_metainfodir}/%{name}.appdata.xml %files -f %{name}.lang %license AUTHORS COPYING debian/copyright %doc ChangeLog README debian/changelog %exclude %{_datadir}/%{name}/gir-1.0 %exclude %{_datadir}/%{name}/gir-1.0/* %{_bindir}/%{name} %{_metainfodir}/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/dbus-1/services/org.x.editor.*service %{_datadir}/glib-2.0/schemas/org.x.editor.*gschema.xml %{_datadir}/help/*/%{name}/ %{_datadir}/%{name}/ %{_libdir}/%{name}/ %{_mandir}/man1/%{name}.1* %files devel %{_datadir}/%{name}/gir-1.0 %{_includedir}/%{name}/ %{_libdir}/pkgconfig/%{name}.pc %files doc %license %{_datadir}/licenses/%{name}* %doc %{_datadir}/doc/%{name}* %doc %{_datadir}/gtk-doc %changelog * Wed Dec 11 2019 Leigh Scott - 2.4.2-1 - Update to 2.4.2 release * Tue Nov 26 2019 Leigh Scott - 2.4.1-1 - Update to 2.4.1 release * Fri Nov 22 2019 Leigh Scott - 2.4.0-1 - Update to 2.4.0 release * Wed Jul 31 2019 Leigh Scott - 2.2.3-1 - Update to 2.2.3 release * Sat Jul 27 2019 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Jul 14 2019 Leigh Scott - 2.2.1-1 - Update to 2.2.1 release * Sat Jun 29 2019 Leigh Scott - 2.2.0-1 - Update to 2.2.0 release * Sun Feb 03 2019 Fedora Release Engineering - 2.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild post. * Sun Dec 16 2018 Leigh Scott - 2.0.2-1 - Update to 2.0.2 release * Wed Nov 28 2018 Leigh Scott - 2.0.1-1 - Update to 2.0.1 release * Mon Nov 19 2018 Leigh Scott - 2.0.0-1 - Update to 2.0.0 release * Wed Aug 15 2018 Leigh Scott - 1.8.3-1 - Update to 1.8.3 release * Sat Jul 14 2018 Fedora Release Engineering - 1.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.8.1-2 - Rebuilt for Python 3.7 * Sat Jun 02 2018 Leigh Scott - 1.8.1-1 - Update to 1.8.1 release * Sun May 06 2018 Leigh Scott - 1.8.0-1 - Update to 1.8.0 release * Sun Mar 11 2018 Kalev Lember - 1.6.4-0.2.20180309git3733860 - Rebuilt for gspell 1.8 * Fri Mar 09 2018 Leigh Scott - 1.6.4-0.1.20180309git3733860 - Update to git snapshot * Thu Feb 22 2018 Leigh Scott - 1.6.3-4 - Update patch * Fri Feb 09 2018 Fedora Release Engineering - 1.6.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Dec 29 2017 Leigh Scott - 1.6.3-2 - Update upstream pull requests * Sat Nov 25 2017 Leigh Scott - 1.6.3-1 - Update to 1.6.3 - Add upstream pull requests * Fri Nov 17 2017 Björn Esser - 1.6.2-1 - Update to 1.6.2 release (rhbz#1513985) * Fri Nov 17 2017 Björn Esser - 1.6.0-2 - Adjustments for EPEL7 * Sat Nov 04 2017 Leigh Scott - 1.6.0-1 - Update to 1.6.0 release - Fix conditional * Fri Sep 01 2017 Björn Esser - 1.4.6-6 - Some more fixes for EPEL * Fri Sep 01 2017 Björn Esser - 1.4.6-5 - Use Python34 on EPEL * Fri Sep 01 2017 Björn Esser - 1.4.6-4 - Adjustments for EPEL * Thu Aug 03 2017 Fedora Release Engineering - 1.4.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.4.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jul 16 2017 Björn Esser - 1.4.6-1 - Update to 1.4.6 release (rhbz#1471446) * Tue Jul 04 2017 Björn Esser - 1.4.5-1 - Update to 1.4.5 release (rhbz#1467641) * Fri Jun 30 2017 Björn Esser - 1.4.4-2 - Fix filtered provides * Wed Jun 28 2017 Björn Esser - 1.4.4-1 - Update to 1.4.4 release (rhbz#1463461) - Filter provides from plugins * Wed May 24 2017 Björn Esser - 1.4.2-1 - Update to 1.4.2 release (rhbz#1454988) * Sun May 07 2017 Björn Esser - 1.4.1-1 - Update to 1.4.1 release (rhbz #1448673) * Sat May 06 2017 Leigh Scott - 1.4.0-1 - Update to 1.4.0 release * Sun Apr 02 2017 Leigh Scott - 1.2.2-3 - Redo patches with latest fixes * Sat Apr 01 2017 Leigh Scott - 1.2.2-2 - Fix start up crash under wayland (rhbz #1438157) - Fix 'format not a string literal' compile error * Tue Feb 21 2017 Björn Esser - 1.2.2-1 - Initial import (rhbz#1424798) * Sun Feb 19 2017 Björn Esser - 1.2.2-0.5 - Use 'classic'-theme by default - Move devel-files to devel-pkg - Remove exec-perms from source-files * Sun Feb 19 2017 Björn Esser - 1.2.2-0.4 - Add patch to update to recent master * Sun Feb 19 2017 Björn Esser - 1.2.2-0.3 - Fix dir-ownership for %%{_datadir}/help * Sun Feb 19 2017 Björn Esser - 1.2.2-0.2 - Doc-pkg should be noarch'ed * Sun Feb 19 2017 Björn Esser - 1.2.2-0.1 - Initial rpm-release (rhbz#1424798)