From c89530be09fdf5e9c4efde39a0054cab75bfe7eb Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Aug 18 2017 11:45:54 +0000 Subject: Initial import (#1482205). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..02c3ede --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/syncthing-gtk-0.9.2.5.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0b96168..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# syncthing-gtk - -The syncthing-gtk package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..049573f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (syncthing-gtk-0.9.2.5.tar.gz) = 01fa9d1df82ae179400cf28d45a30519594a3e1cc278d23f70e683ec3b2cf2c532617367864797dbd57c59e1dbabae1b7c7a6aa1b2386e5931a1d35817af36b4 diff --git a/syncthing-gtk.appdata.xml b/syncthing-gtk.appdata.xml new file mode 100644 index 0000000..9e8b5e6 --- /dev/null +++ b/syncthing-gtk.appdata.xml @@ -0,0 +1,35 @@ + + + syncthing-gtk.desktop + CC0-1.0 + GPL-2.0 + Syncthing-GTK + GTK3 & Python based GUI and notification area icon for Syncthing + +

GTK3 & Python based GUI and notification area icon for Syncthing.

+

Supported Syncthing features:

+
    +
  • Everything what WebUI can display
  • +
  • Adding / editing / deleting nodes
  • +
  • Adding / editing / deleting repositories
  • +
  • Restart / shutdown server
  • +
  • Editing daemon settings
  • +
+

Additional features:

+
    +
  • First run wizard for initial configuration
  • +
  • Running Syncthing daemon in background
  • +
  • Half-automatic setup for new nodes and repositories
  • +
  • Filesystem watching and instant synchronization using inotify
  • +
  • Nautilus (a.k.a. Files), Nemo and Caja integration
  • +
  • Desktop notifications
  • +
+
+ syncthing-gtk.desktop + + syncthing-gtk + + decathorpe_AT_fedoraproject.org + https://github.com/syncthing/syncthing-gtk + https://github.com/syncthing/syncthing-gtk/issues +
diff --git a/syncthing-gtk.spec b/syncthing-gtk.spec new file mode 100644 index 0000000..6ce51b9 --- /dev/null +++ b/syncthing-gtk.spec @@ -0,0 +1,189 @@ +%global py_name syncthing_gtk + +Name: syncthing-gtk +Summary: Syncthing GTK+ GUI +Version: 0.9.2.5 +Release: 1%{?dist} +License: GPLv2 + +URL: https://github.com/syncthing/%{name} +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +Source1: %{name}.appdata.xml + +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: python2-devel +BuildRequires: python2-setuptools + +BuildArch: noarch + +Requires: gtk3 >= 3.8 +Requires: hicolor-icon-theme +Requires: psmisc +Requires: python2-bcrypt +Requires: python2-dateutil +Requires: python-gobject + +Recommends: syncthing >= 0.13 + + +%description +Syncthing replaces Dropbox and BitTorrent Sync with something open, +trustworthy and decentralized. Your data is your data alone and you +deserve to choose where it is stored, if it is shared with some third +party and how it's transmitted over the Internet. + +Using syncthing, that control is returned to you. + +This package contains the GTK+ GUI for syncthing. + + +%prep +%autosetup + + +%build +%py2_build + + +%install +%py2_install + +%find_lang %{name} + +# Install appdata file +mkdir -p %{buildroot}/%{_datadir}/appdata +cp -pav %{SOURCE1} %{buildroot}/%{_datadir}/appdata/ + +# Remove shebang from python source files +# https://fedoraproject.org/wiki/Packaging_tricks#Remove_shebang_from_Python_libraries + +# in python2_sitelib/syncthing_gtk: +for lib in %{buildroot}/%{python2_sitelib}/%{py_name}/*.py; do + sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && + touch -r $lib $lib.new && + mv $lib.new $lib +done + +# in _datadir/syncthing-gtk: +for lib in %{buildroot}/%{_datadir}/%{name}/*.py; do + sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && + touch -r $lib $lib.new && + mv $lib.new $lib +done + + +%check +desktop-file-validate \ + %{buildroot}/%{_datadir}/applications/%{name}.desktop + +appstream-util validate-relax --nonet \ + %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml + + +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + +%files -f %{name}.lang +%doc README.md +%license LICENSE + +%{_bindir}/%{name} + +%{python2_sitelib}/%{py_name}/ +%{python2_sitelib}/%{py_name}-v%{version}-py%{python2_version}.egg-info + +%{_datadir}/appdata/%{name}.appdata.xml +%{_datadir}/applications/%{name}.desktop + +%{_datadir}/icons/hicolor/*/apps/%{name}*.png +%{_datadir}/icons/hicolor/*/emblems/emblem-syncthing*.png +%{_datadir}/icons/hicolor/*/status/si-syncthing*.png + +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/%{name}/ + +%{_mandir}/man1/%{name}.* + + +%changelog +* Wed Aug 16 2017 Fabio Valentini - 0.9.2.5-1 +- Update to version 0.9.2.5. + +* Mon Jan 23 2017 Fabio Valentini - 0.9.2.4-1 +- Update to version 0.9.2.4. + +* Thu Nov 24 2016 Fabio Valentini - 0.9.2.2-2 +- Fix mistake in dependencies. Spec cleanups. + +* Tue Sep 06 2016 Fabio Valentini - 0.9.2.2-1 +- Update to version 0.9.2.2. + +* Mon Aug 29 2016 Fabio Valentini - 0.9.2.1-1 +- Update to version 0.9.2.1. + +* Sat Aug 27 2016 Fabio Valentini - 0.9.2-1 +- Update to latest snapshot. + +* Sat Aug 27 2016 Fabio Valentini - 0.9.2-1 +- Update to version 0.9.2. + +* Tue Jul 19 2016 Fabio Valentini - 0.9.1-1 +- Update to version 0.9.1. + +* Fri Jun 17 2016 Fabio Valentini - 0.9.0.3-1 +- Update to version 0.9.0.3. + +* Tue May 24 2016 Fabio Valentini - 0.9.0.2-1 +- Update to version 0.9.0.2. + +* Sat May 21 2016 Fabio Valentini - 0.9.0.1-1 +- Update to version 0.9.0.1. + +* Thu Mar 10 2016 Fabio Valentini - 0.8.3-2 +- Fix build on dists without support for Recommends: tag. + +* Thu Mar 10 2016 Fabio Valentini - 0.8.3-1 +- Update to version 0.8.3. + +* Wed Jan 27 2016 Fabio Valentini - 0.8.2-2 +- Add Requires: python-inotify. + +* Mon Jan 18 2016 Fabio Valentini - 0.8.2-1 +- Update to version 0.8.2. + +* Sun Dec 20 2015 Fabio Valentini - 0.8.1-1 +- Update to version 0.8.1. + +* Sat Nov 21 2015 Fabio Valentini - 0.8.0.1-1 +- Update to version 0.8.0.1. Fixes two minor bugs. + +* Fri Nov 06 2015 Fabio Valentini - 0.8-1 +- Update to (incompatible) version 0.8. + +* Mon Oct 12 2015 Fabio Valentini - 0.7.6.1-2 +- Update icon database correctly. + +* Mon Oct 12 2015 Fabio Valentini - 0.7.6.1-1 +- Update to version 0.7.6.1. + +* Sat Oct 10 2015 Fabio Valentini - 0.7.6-1 +- Update to version 0.7.6. + +* Sun Sep 13 2015 Fabio Valentini - 0.7.5.1-2 +- Fix spec to include neccessary python module and package dependencies. + +* Sun Sep 13 2015 Fabio Valentini - 0.7.5.1-1 +- First package for fedora. + +