c2548f3
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
c2548f3
Name:           sslstrip
c2548f3
Version:        0.9
5d9591e
Release:        9%{?dist}
c2548f3
Summary:        Tool that provides a demonstration of HTTPS stripping attacks
c2548f3
c2548f3
Group:          Applications/Internet
c2548f3
License:        GPLv3+
c2548f3
URL:            http://www.thoughtcrime.org/software/sslstrip/
c2548f3
Source0:        http://www.thoughtcrime.org/software/sslstrip/%{name}-%{version}.tar.gz
c2548f3
#Patch0:         sslstrip0.7-version_num.patch
c2548f3
#Patch1:         sslstrip0.7-version_num-setuppy.patch
c2548f3
c2548f3
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
c2548f3
c2548f3
BuildArch:      noarch
c2548f3
c2548f3
BuildRequires:  python >= 2.5
c2548f3
c2548f3
Requires:       python-twisted-web
c2548f3
c2548f3
%description
c2548f3
Tool that provides a demonstration of HTTPS stripping attacks that were 
c2548f3
presented at Black Hat DC 2009 by Moxie Marlinspike. It will transparently 
c2548f3
hijack HTTP traffic on a network, watch for HTTPS links and redirects, then map 
c2548f3
those links into either look-alike HTTP links or homograph-similar HTTPS links.
c2548f3
It also supports modes for supplying a favicon which looks like a lock icon, 
c2548f3
selective logging, and session denial
c2548f3
c2548f3
%prep
c2548f3
%setup -q
c2548f3
c2548f3
# Patch out the incorrect version in both the setup.py and main source file
c2548f3
##fixed in 0.9 upstream release
c2548f3
#%patch0
c2548f3
#%patch1
c2548f3
c2548f3
# Make COPYING and README not executable
c2548f3
chmod -x COPYING
c2548f3
chmod -x README
c2548f3
c2548f3
%build
c2548f3
python setup.py build
c2548f3
c2548f3
%install
c2548f3
python setup.py install --root $RPM_BUILD_ROOT
c2548f3
c2548f3
# Remove duplicate doc files
c2548f3
rm $RPM_BUILD_ROOT/usr/share/%{name}/README
c2548f3
rm $RPM_BUILD_ROOT/usr/share/%{name}/COPYING
c2548f3
c2548f3
c2548f3
%clean
c2548f3
rm -rf $RPM_BUILD_ROOT
c2548f3
c2548f3
c2548f3
%files
c2548f3
%defattr(-,root,root,-)
c2548f3
%doc COPYING README
c2548f3
%dir %{python_sitelib}/%{name}
c2548f3
%{python_sitelib}/%{name}/*.py
c2548f3
%{python_sitelib}/%{name}/*.pyc
c2548f3
%{python_sitelib}/%{name}/*.pyo
c2548f3
%{python_sitelib}/*.egg-info
c2548f3
%{_datadir}/%{name}/*
c2548f3
%{_bindir}/%{name}
c2548f3
c2548f3
%changelog
5d9591e
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-9
5d9591e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5d9591e
f63f17a
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-8
f63f17a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f63f17a
20a60b6
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-7
20a60b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
20a60b6
8d6c057
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-6
8d6c057
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8d6c057
805341a
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
805341a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
805341a
2ec3c22
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-4
2ec3c22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2ec3c22
23b99d3
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
23b99d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
23b99d3
c2548f3
* Fri Jun 10 2011 Adam Miller <maxamillion@fedoraproject.org> - 0.9-2
c2548f3
- Readded the chmods for README and COPYING
c2548f3
- Added python-twisted-web hard dep
c2548f3
c2548f3
* Tue Jun 07 2011 Adam Miller <maxamillion@fedoraproject.org> - 0.9-1
c2548f3
- New upstream release
c2548f3
c2548f3
* Thu Oct 28 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.7-3
c2548f3
- Patched out the incorrect version number, email sent upstream about it
c2548f3
c2548f3
* Thu Oct 28 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.7-2
c2548f3
- Fixed buildreq, removed duplicate docs, removed mixed use of spaces/tabs
c2548f3
c2548f3
* Thu Jan 14 2010 Adam Miller <maxamillion@fedoraproject.org> - 0.7-1
c2548f3
- First package for Fedora
c2548f3