|
|
c89530b |
%global py_name syncthing_gtk
|
|
|
c89530b |
|
|
|
c89530b |
Name: syncthing-gtk
|
|
|
c89530b |
Summary: Syncthing GTK+ GUI
|
|
|
2ff2af6 |
Version: 0.9.3
|
|
|
2ff2af6 |
Release: 1%{?dist}
|
|
|
c89530b |
License: GPLv2
|
|
|
c89530b |
|
|
|
c89530b |
URL: https://github.com/syncthing/%{name}
|
|
|
c89530b |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
c89530b |
Source1: %{name}.appdata.xml
|
|
|
c89530b |
|
|
|
2ff2af6 |
# Upstream patch to fix some type errors
|
|
|
2ff2af6 |
Patch0: 00-fix-type-errors.patch
|
|
|
2ff2af6 |
|
|
|
c89530b |
BuildRequires: desktop-file-utils
|
|
|
c89530b |
BuildRequires: libappstream-glib
|
|
|
2ff2af6 |
BuildRequires: python2-bcrypt
|
|
|
2ff2af6 |
BuildRequires: python2-dateutil
|
|
|
c89530b |
BuildRequires: python2-devel
|
|
|
2ff2af6 |
BuildRequires: python2-inotify
|
|
|
c89530b |
BuildRequires: python2-setuptools
|
|
|
c89530b |
|
|
|
c89530b |
BuildArch: noarch
|
|
|
c89530b |
|
|
|
c89530b |
Requires: gtk3 >= 3.8
|
|
|
c89530b |
Requires: hicolor-icon-theme
|
|
|
c89530b |
Requires: psmisc
|
|
|
c89530b |
Requires: python2-bcrypt
|
|
|
c89530b |
Requires: python2-dateutil
|
|
|
2ff2af6 |
Requires: python2-gobject
|
|
|
2ff2af6 |
Requires: python2-inotify
|
|
|
c89530b |
|
|
|
c89530b |
Recommends: syncthing >= 0.13
|
|
|
c89530b |
|
|
|
c89530b |
|
|
|
c89530b |
%description
|
|
|
c89530b |
Syncthing replaces Dropbox and BitTorrent Sync with something open,
|
|
|
c89530b |
trustworthy and decentralized. Your data is your data alone and you
|
|
|
c89530b |
deserve to choose where it is stored, if it is shared with some third
|
|
|
c89530b |
party and how it's transmitted over the Internet.
|
|
|
c89530b |
|
|
|
c89530b |
Using syncthing, that control is returned to you.
|
|
|
c89530b |
|
|
|
c89530b |
This package contains the GTK+ GUI for syncthing.
|
|
|
c89530b |
|
|
|
c89530b |
|
|
|
c89530b |
%prep
|
|
|
2ff2af6 |
%autosetup -p1
|
|
|
c89530b |
|
|
|
c89530b |
|
|
|
c89530b |
%build
|
|
|
c89530b |
%py2_build
|
|
|
c89530b |
|
|
|
c89530b |
|
|
|
c89530b |
%install
|
|
|
c89530b |
%py2_install
|
|
|
c89530b |
|
|
|
c89530b |
%find_lang %{name}
|
|
|
c89530b |
|
|
|
c89530b |
# Install appdata file
|
|
|
c89530b |
mkdir -p %{buildroot}/%{_datadir}/appdata
|
|
|
c89530b |
cp -pav %{SOURCE1} %{buildroot}/%{_datadir}/appdata/
|
|
|
c89530b |
|
|
|
c89530b |
# Remove shebang from python source files
|
|
|
c89530b |
# https://fedoraproject.org/wiki/Packaging_tricks#Remove_shebang_from_Python_libraries
|
|
|
c89530b |
|
|
|
c89530b |
# in python2_sitelib/syncthing_gtk:
|
|
|
c89530b |
for lib in %{buildroot}/%{python2_sitelib}/%{py_name}/*.py; do
|
|
|
c89530b |
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
|
|
|
c89530b |
touch -r $lib $lib.new &&
|
|
|
c89530b |
mv $lib.new $lib
|
|
|
c89530b |
done
|
|
|
c89530b |
|
|
|
c89530b |
# in _datadir/syncthing-gtk:
|
|
|
c89530b |
for lib in %{buildroot}/%{_datadir}/%{name}/*.py; do
|
|
|
c89530b |
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
|
|
|
c89530b |
touch -r $lib $lib.new &&
|
|
|
c89530b |
mv $lib.new $lib
|
|
|
c89530b |
done
|
|
|
c89530b |
|
|
|
c89530b |
|
|
|
c89530b |
%check
|
|
|
c89530b |
desktop-file-validate \
|
|
|
c89530b |
%{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
|
c89530b |
|
|
|
c89530b |
appstream-util validate-relax --nonet \
|
|
|
c89530b |
%{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
c89530b |
|
|
|
c89530b |
|
|
|
c89530b |
%files -f %{name}.lang
|
|
|
c89530b |
%doc README.md
|
|
|
c89530b |
%license LICENSE
|
|
|
c89530b |
|
|
|
c89530b |
%{_bindir}/%{name}
|
|
|
c89530b |
|
|
|
c89530b |
%{python2_sitelib}/%{py_name}/
|
|
|
c89530b |
%{python2_sitelib}/%{py_name}-v%{version}-py%{python2_version}.egg-info
|
|
|
c89530b |
|
|
|
c89530b |
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
c89530b |
%{_datadir}/applications/%{name}.desktop
|
|
|
c89530b |
|
|
|
c89530b |
%{_datadir}/icons/hicolor/*/apps/%{name}*.png
|
|
|
c89530b |
%{_datadir}/icons/hicolor/*/emblems/emblem-syncthing*.png
|
|
|
c89530b |
%{_datadir}/icons/hicolor/*/status/si-syncthing*.png
|
|
|
c89530b |
|
|
|
c89530b |
%{_datadir}/pixmaps/%{name}.png
|
|
|
c89530b |
%{_datadir}/%{name}/
|
|
|
c89530b |
|
|
|
c89530b |
%{_mandir}/man1/%{name}.*
|
|
|
c89530b |
|
|
|
c89530b |
|
|
|
c89530b |
%changelog
|
|
|
2ff2af6 |
* Tue Feb 20 2018 Fabio Valentini <decathorpe@gmail.com> - 0.9.3-1
|
|
|
2ff2af6 |
- Update to version 0.9.3.
|
|
|
2ff2af6 |
|
|
|
3927c69 |
* Sat Jan 06 2018 Fabio Valentini <decathorpe@gmail.com> - 0.9.2.6-2
|
|
|
3927c69 |
- Remove icon cache scriptlets, replaced by file triggers.
|
|
|
3927c69 |
|
|
|
e42b0d5 |
* Fri Oct 06 2017 Fabio Valentini <decathorpe@gmail.com> - 0.9.2.6-1
|
|
|
e42b0d5 |
- Update to version 0.9.2.6.
|
|
|
e42b0d5 |
|
|
|
c89530b |
* Wed Aug 16 2017 Fabio Valentini <decathorpe@gmail.com> - 0.9.2.5-1
|
|
|
c89530b |
- Update to version 0.9.2.5.
|
|
|
c89530b |
|
|
|
c89530b |
* Mon Jan 23 2017 Fabio Valentini <decathorpe@gmail.com> - 0.9.2.4-1
|
|
|
c89530b |
- Update to version 0.9.2.4.
|
|
|
c89530b |
|
|
|
c89530b |
* Thu Nov 24 2016 Fabio Valentini <decathorpe@gmail.com> - 0.9.2.2-2
|
|
|
c89530b |
- Fix mistake in dependencies. Spec cleanups.
|
|
|
c89530b |
|
|
|
c89530b |
* Tue Sep 06 2016 Fabio Valentini <decathorpe@gmail.com> - 0.9.2.2-1
|
|
|
c89530b |
- Update to version 0.9.2.2.
|
|
|
c89530b |
|
|
|
c89530b |
* Mon Aug 29 2016 Fabio Valentini <decathorpe@gmail.com> - 0.9.2.1-1
|
|
|
c89530b |
- Update to version 0.9.2.1.
|
|
|
c89530b |
|
|
|
c89530b |
* Sat Aug 27 2016 Fabio Valentini <decathorpe@gmail.com> - 0.9.2-1
|
|
|
c89530b |
- Update to latest snapshot.
|
|
|
c89530b |
|
|
|
c89530b |
* Sat Aug 27 2016 Fabio Valentini <decathorpe@gmail.com> - 0.9.2-1
|
|
|
c89530b |
- Update to version 0.9.2.
|
|
|
c89530b |
|
|
|
c89530b |
* Tue Jul 19 2016 Fabio Valentini <decathorpe@gmail.com> - 0.9.1-1
|
|
|
c89530b |
- Update to version 0.9.1.
|
|
|
c89530b |
|
|
|
c89530b |
* Fri Jun 17 2016 Fabio Valentini <decathorpe@gmail.com> - 0.9.0.3-1
|
|
|
c89530b |
- Update to version 0.9.0.3.
|
|
|
c89530b |
|
|
|
c89530b |
* Tue May 24 2016 Fabio Valentini <decathorpe@gmail.com> - 0.9.0.2-1
|
|
|
c89530b |
- Update to version 0.9.0.2.
|
|
|
c89530b |
|
|
|
c89530b |
* Sat May 21 2016 Fabio Valentini <decathorpe@gmail.com> - 0.9.0.1-1
|
|
|
c89530b |
- Update to version 0.9.0.1.
|
|
|
c89530b |
|
|
|
c89530b |
* Thu Mar 10 2016 Fabio Valentini <decathorpe@gmail.com> - 0.8.3-2
|
|
|
c89530b |
- Fix build on dists without support for Recommends: tag.
|
|
|
c89530b |
|
|
|
c89530b |
* Thu Mar 10 2016 Fabio Valentini <decathorpe@gmail.com> - 0.8.3-1
|
|
|
c89530b |
- Update to version 0.8.3.
|
|
|
c89530b |
|
|
|
c89530b |
* Wed Jan 27 2016 Fabio Valentini <decathorpe@gmail.com> - 0.8.2-2
|
|
|
c89530b |
- Add Requires: python-inotify.
|
|
|
c89530b |
|
|
|
c89530b |
* Mon Jan 18 2016 Fabio Valentini <decathorpe@gmail.com> - 0.8.2-1
|
|
|
c89530b |
- Update to version 0.8.2.
|
|
|
c89530b |
|
|
|
c89530b |
* Sun Dec 20 2015 Fabio Valentini <decathorpe@gmail.com> - 0.8.1-1
|
|
|
c89530b |
- Update to version 0.8.1.
|
|
|
c89530b |
|
|
|
c89530b |
* Sat Nov 21 2015 Fabio Valentini <decathorpe@gmail.com> - 0.8.0.1-1
|
|
|
c89530b |
- Update to version 0.8.0.1. Fixes two minor bugs.
|
|
|
c89530b |
|
|
|
c89530b |
* Fri Nov 06 2015 Fabio Valentini <decathorpe@gmail.com> - 0.8-1
|
|
|
c89530b |
- Update to (incompatible) version 0.8.
|
|
|
c89530b |
|
|
|
c89530b |
* Mon Oct 12 2015 Fabio Valentini <decathorpe@gmail.com> - 0.7.6.1-2
|
|
|
c89530b |
- Update icon database correctly.
|
|
|
c89530b |
|
|
|
c89530b |
* Mon Oct 12 2015 Fabio Valentini <decathorpe@gmail.com> - 0.7.6.1-1
|
|
|
c89530b |
- Update to version 0.7.6.1.
|
|
|
c89530b |
|
|
|
c89530b |
* Sat Oct 10 2015 Fabio Valentini <decathorpe@gmail.com> - 0.7.6-1
|
|
|
c89530b |
- Update to version 0.7.6.
|
|
|
c89530b |
|
|
|
c89530b |
* Sun Sep 13 2015 Fabio Valentini <decathorpe@gmail.com> - 0.7.5.1-2
|
|
|
c89530b |
- Fix spec to include neccessary python module and package dependencies.
|
|
|
c89530b |
|
|
|
c89530b |
* Sun Sep 13 2015 Fabio Valentini <decathorpe@gmail.com> - 0.7.5.1-1
|
|
|
c89530b |
- First package for fedora.
|
|
|
c89530b |
|
|
|
c89530b |
|