2d7559f
%global _hardened_build 1
d3c2657
d3c2657
Name:           onionshare
2c31b89
Version:        1.2
f420cf1
Release:        1%{?dist}
d3c2657
Summary:        Securely and anonymously share files of any size
d3c2657
d3c2657
License:        GPLv3
d3c2657
URL:            https://onionshare.org/
2d7559f
Source0:        https://github.com/micahflee/%{name}/archive/v%{version}.tar.gz
2d7559f
Patch0:         %{name}-appdata.patch
d3c2657
d3c2657
BuildArch:      noarch
2d7559f
BuildRequires:  python3-devel
2d7559f
BuildRequires:  desktop-file-utils
2d7559f
BuildRequires:  libappstream-glib
2d7559f
Requires:       python3-flask
2d7559f
Requires:       python3-stem
2d7559f
Requires:       python3-qt5
2d7559f
Requires:       nautilus-python
f420cf1
Requires:       tor
2d7559f
d3c2657
d3c2657
%description
d3c2657
OnionShare lets you securely and anonymously share files of any size. It works
d3c2657
by starting a web server, making it accessible as a Tor hidden service, and
d3c2657
generating an unguessable URL to access and download files. It doesn't require
d3c2657
setting up a server on the internet somewhere or using a third party
d3c2657
file sharing service. You host files on your own computer and use a Tor
d3c2657
hidden service to make it temporarily accessible over the internet. The other
d3c2657
user just needs to use Tor Browser to download a file from you.
d3c2657
d3c2657
d3c2657
%prep
2d7559f
%setup -qn %{name}-%{version}
2d7559f
%patch0 -p1 -b .orig
d3c2657
d3c2657
d3c2657
%build
2d7559f
%{__python3} setup.py build
d3c2657
d3c2657
d3c2657
%install
2d7559f
%{__python3} setup.py install --skip-build --root %{buildroot}
d3c2657
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
2d7559f
mkdir -p %{buildroot}%{_datadir}/appdata/
2d7559f
install -m 644 %{_builddir}/%{name}-%{version}/install/%{name}.appdata.xml \
2d7559f
    %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
f420cf1
chmod +x %{buildroot}/%{_datadir}/nautilus-python/extensions/%{name}-nautilus*
2d7559f
2d7559f
%check
2d7559f
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
d3c2657
d3c2657
d3c2657
%files
d3c2657
%doc LICENSE README.md
18366c4
%{_datadir}/appdata/%{name}.*
d3c2657
%{_datadir}/pixmaps/*
d3c2657
%{_datadir}/%{name}/*
d3c2657
%{_datadir}/applications/*
2d7559f
%{_datadir}/nautilus-python/extensions/%{name}-nautilus*
d3c2657
%{_bindir}/%{name}
d3c2657
%{_bindir}/%{name}-gui
2d7559f
%{python3_sitelib}/%{name}*
d3c2657
d3c2657
d3c2657
%changelog
2c31b89
* Thu Feb 01 2018 Kushal Das <kushal@fedoraproject.org> - 1.2-1
2c31b89
- Update to 1.2
2c31b89
f420cf1
* Mon Nov 27 2017 Kushal Das <kushal@fedoraproject.org> - 1.1-1
f420cf1
- Update to 1.1
f420cf1
25009f0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
25009f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
25009f0
cb281a0
* Sat Feb 25 2017 pjp <comzeradd@fedoraproject.org> - 1.0-1
cb281a0
- Update to 1.0
cb281a0
3657aca
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
3657aca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3657aca
cb281a0
* Tue Jan 03 2017 pjp <comzeradd@fedoraproject.org> - 0.9.1-1
2d7559f
- Update to 0.9.1
2d7559f
ceda50b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-4
ceda50b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ceda50b
Rex Dieter 0bd7dd2
* Wed Mar 02 2016 Rex Dieter <rdieter@fedoraproject.org> 0.8.1-3
Rex Dieter 0bd7dd2
- Requires: pyqt4-webkit
Rex Dieter 0bd7dd2
7d6a1d2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-2
7d6a1d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7d6a1d2
18366c4
* Wed Dec 30 2015 robyduck <robyduck@fedoraproject.org> - 0.8.1-1
18366c4
- Fixed crash in Windows 7
18366c4
- Fixed crash related to non-ephemeral hidden services in Linux
18366c4
- Fixed minor bugs
18366c4
f428ec9
* Mon Aug 31 2015 pjp <robyduck@fedoraproject.org> - 0.7.1-1
f428ec9
- Upstream release v0.7.1-1
f428ec9
685d97e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-6
685d97e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
685d97e
d3c2657
* Tue Oct 14 2014 pjp <pjp@fedoraproject.org> - 0.6-5
d3c2657
- Fixed spec file as per review BZ#1151747#c8,9.
d3c2657
d3c2657
* Mon Oct 13 2014 pjp <pjp@fedoraproject.org> - 0.6-4
d3c2657
- Fixed this spec file as per review BZ#1151747#c6.
d3c2657
d3c2657
* Sun Oct 12 2014 pjp <pjp@fedoraproject.org> - 0.6-3
d3c2657
- Fixed Source0 definition as per review BZ#1151747#c4.
d3c2657
d3c2657
* Sat Oct 11 2014 pjp <pjp@fedoraproject.org> - 0.6-2
d3c2657
- Fixed oname and Source0 definition as per review BZ#1151747#c2.
d3c2657
d3c2657
* Sat Oct 11 2014 pjp <pjp@fedoraproject.org> - 0.6-1
d3c2657
- Initial release onionshare v0.6.