2d7559f
%global _hardened_build 1
d3c2657
d3c2657
Name:           onionshare
d4baae1
Version:        1.3
b4db6ca
Release:        13%{?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
b4db6ca
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-13
b4db6ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b4db6ca
4fc416a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3-12
4fc416a
- Rebuilt for Python 3.10
4fc416a
398bcb1
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-11
398bcb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
398bcb1
16f222a
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-10
16f222a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
16f222a
9b15825
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3-9
9b15825
- Rebuilt for Python 3.9
9b15825
f7da48e
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-8
f7da48e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f7da48e
223c136
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-7
223c136
- Rebuilt for Python 3.8.0rc1 (#1748018)
223c136
9dc58bf
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-6
9dc58bf
- Rebuilt for Python 3.8
9dc58bf
e41353a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-5
e41353a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e41353a
5e90071
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4
5e90071
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5e90071
7d5fa6e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
7d5fa6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7d5fa6e
bde1dfa
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3-2
bde1dfa
- Rebuilt for Python 3.7
bde1dfa
d4baae1
* Thu Apr 05 2018 Nikos Roussos <comzeradd@fedoraproject.org> - 1.3-1
d4baae1
- Update to 1.3
d4baae1
3754504
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
3754504
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3754504
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.