diff --git a/exo-0.12.11.tar.bz2 b/exo-0.12.11.tar.bz2 deleted file mode 100644 index 18ab718..0000000 Binary files a/exo-0.12.11.tar.bz2 and /dev/null differ diff --git a/exo-0.7.2-remove-xfce-category.patch b/exo-0.7.2-remove-xfce-category.patch deleted file mode 100644 index 6a417f4..0000000 --- a/exo-0.7.2-remove-xfce-category.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nur exo-0.7.2.orig/exo-helper/exo-preferred-applications.desktop.in exo-0.7.2/exo-helper/exo-preferred-applications.desktop.in ---- exo-0.7.2.orig/exo-helper/exo-preferred-applications.desktop.in 2012-03-28 09:15:15.000000000 -0600 -+++ exo-0.7.2/exo-helper/exo-preferred-applications.desktop.in 2012-04-01 21:19:24.762754983 -0600 -@@ -3,7 +3,7 @@ - Exec=exo-preferred-applications - Icon=preferences-desktop-default-applications - Type=Application --Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings; -+Categories=X-XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings; - OnlyShowIn=XFCE; - Terminal=false - StartupNotify=true diff --git a/exo-4.16.2.tar.bz2 b/exo-4.16.2.tar.bz2 new file mode 100644 index 0000000..7d7c865 Binary files /dev/null and b/exo-4.16.2.tar.bz2 differ diff --git a/exo.spec b/exo.spec index d055624..1fd4dd1 100644 --- a/exo.spec +++ b/exo.spec @@ -1,17 +1,12 @@ -%global xfceversion 4.14 +%global xfceversion 4.16 Name: exo -Version: 0.12.11 +Version: 4.16.2 Release: 1 Summary: An extension library to Xfce License: LGPLv2+ and GPLv2+ #Group: Development/Libraries URL: http://xfce.org/ -Source0: http://archive.xfce.org/src/xfce/%{name}/0.12/%{name}-%{version}.tar.bz2 - -# replace mailto handler with python version -# https://bugzilla.xfce.org/show_bug.cgi?id=9964 -Source1: mailtoparse.py -Patch1: exo-0.7.2-remove-xfce-category.patch +Source0: https://archive.xfce.org/src/xfce/exo/4.16/exo-4.16.2.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #BuildArch: noarch @@ -22,7 +17,7 @@ BuildRequires: perl-URI BuildRequires: pkgconfig(glib-2.0) >= 2.24.0 BuildRequires: pkgconfig(gtk+-2.0) >= 2.20.0 BuildRequires: pkgconfig(libxfce4util-1.0) >= %{xfceversion} -BuildRequires: pkgconfig(libxfce4ui-1) >= %{xfceversion} +BuildRequires: pkgconfig(libxfce4ui-2) >= %{xfceversion} BuildRequires: libnotify-devel BuildRequires: intltool >= 0.31 BuildRequires: chrpath @@ -44,8 +39,6 @@ Development tools and static libraries and header files for the exo library. %prep %setup -q -%patch1 -p1 - %build %configure --enable-gtk-doc --disable-static %make_build @@ -55,50 +48,30 @@ Development tools and static libraries and header files for the exo library. find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' -chrpath --delete %{buildroot}%{_bindir}/exo-desktop-item-edit -chrpath --delete %{buildroot}%{_bindir}/exo-open -chrpath --delete %{buildroot}%{_libdir}/xfce4/exo-*/exo-helper-* - -%find_lang exo-1 - -for file in %{buildroot}/%{_datadir}/applications/%{name}-*.desktop ; do - desktop-file-validate $file -done - -# replace upstream perl script with python one. -rm -f %{buildroot}%{_libdir}/xfce4/exo-1/exo-compose-mail-1 -install -Dpm 0755 %{SOURCE1} %{buildroot}%{_libdir}/xfce4/exo-1/exo-compose-mail-1 +%find_lang exo-2 %ldconfig_scriptlets -%files -f exo-1.lang +%files -f exo-2.lang %license COPYING -%doc AUTHORS ChangeLog NEWS README THANKS -%dir %{_sysconfdir}/xdg/xfce4 -%config(noreplace) %{_sysconfdir}/xdg/xfce4/helpers.rc -%{_bindir}/exo-csource +%doc AUTHORS ChangeLog NEWS THANKS %{_bindir}/exo-desktop-item-edit %{_bindir}/exo-open -%{_bindir}/exo-preferred-applications -%{_libdir}/libexo-1.so.0 -%{_libdir}/libexo-1.so.0.1.0 %{_libdir}/libexo-2.so.0 %{_libdir}/libexo-2.so.0.1.0 -%{_libdir}/xfce4/ -%{_datadir}/xfce4/ -%{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/*/* %{_datadir}/pixmaps/exo %{_mandir}/man1/exo-open.1.* -%{_mandir}/man1/exo-csource.1.* %files devel -%doc TODO %doc %{_datadir}/gtk-doc %{_includedir}/exo* %{_libdir}/lib*.so %{_libdir}/pkgconfig/*.pc -%changelog +%ChangeLog +* Wed Jul 28 2021 Wenlong Ding - 4.16.2-1 +- Update to 4.16.2 + * Tue Jul 7 2020 Dillon Chen - 0.12.11-1 - Init Package diff --git a/mailtoparse.py b/mailtoparse.py deleted file mode 100644 index 4b3b62c..0000000 --- a/mailtoparse.py +++ /dev/null @@ -1,178 +0,0 @@ -#!/usr/bin/python3 -tt -# skvidal@fedoraproject.org -# (c) red hat, inc 2013, 2015 -# gpl whatever -# this is a direct port of exo-compos-mail-1 from xfce -# from perl to python -# the idea is to dump the 2000000000 perl pkgs pulled in -# by this for a single item :( -# it should handle all the behaviour the same -# it probably has bugs - -# TODO: -# - figure out what the attachment parsing is trying to do -# - figure out if rebuilding the mailto for evo, sylpheed and balsa -# is actually necessary or not - feels silly but I'm not shocked by silly -# - would be nice to have an actual set of tests :) - - -import sys -import posix -import os -import urllib.parse - - -def parse_url(mailto): - url = urllib.parse.urlparse(mailto, 'mailto') - res = {} - to = [] - query = None - - if url.query or '?' not in url.path: - if url.path: - to.append(urllib.parse.unquote(url.path)) - - else: - (thisto, ques, query) = url.path.partition('?') - if thisto.strip(): - to.append(urllib.parse.unquote(thisto)) - - if not query: - query = url.query - - q_dict = urllib.parse.parse_qs(query) - to.extend(q_dict.get('to', [])) - res['to'] = to - if 'to' in q_dict: - del(q_dict['to']) - - res.update(q_dict) - return res - - -if len(sys.argv) < 3: - sys.stderr.write("Usage: %s