-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththefuck.py3.spec
108 lines (87 loc) · 3.35 KB
/
thefuck.py3.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
%global debug_package %{nil}
Name: thefuck
Version: 3.15
Release: 6%{?dist}
Summary: App that corrects your previous console command
License: MIT
URL: https://github.com/nvbn/thefuck
Source0: https://github.com/nvbn/%{name}/archive/%{version}.tar.gz
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: python34-devel
BuildRequires: python34-setuptools
BuildRequires: python34-psutil
BuildRequires: python34-pip
BuildRequires: python34-six
BuildRequires: python3-decorator
BuildRequires: python34-pytest
BuildRequires: python34-mock
BuildRequires: python3-colorama
Requires: python34
Requires: python3-psutil
Requires: python34-six
Requires: python3-colorama
%else
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-psutil
BuildRequires: python3-pip
BuildRequires: python3-six
BuildRequires: python3-decorator
BuildRequires: python3-pytest
BuildRequires: python3-mock
BuildRequires: python3-colorama
Requires: python3
Requires: python3-psutil
Requires: python3-six
Requires: python3-colorama
%endif
%description
This application corrects your previous console command.
If you use BASH, you should add these lines to your .bashrc:
alias fuck='eval $(thefuck $(fc -ln -1)); history -r'
alias FUCK='fuck'
For other shells please check /usr/share/doc/thefuck/README.md
%prep
%setup -q
sed -i -e '/^#!\//, 1d' *.py
find -type f -executable -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} +
%build
%{__python3} setup.py build
%install
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
%files
%{_bindir}/thefuck
%{_bindir}/fuck
%{python3_sitelib}/thefuck-%{version}-*egg-info
%{python3_sitelib}/thefuck
%doc README.md
%license LICENSE.md
%changelog
* Sun Jun 02 2019 Casjays Developments <[email protected]> - 3.15-6
- Fixes for RHEL 8 and fedora
* Sat Jul 14 2018 Fedora Release Engineering <[email protected]> - 3.15-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <[email protected]> - 3.15-4
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <[email protected]> - 3.15-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <[email protected]> - 3.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon Mar 27 2017 Matias Kreder <[email protected]> 3.15-1
- Updated to thefuck 3.15
* Sat Feb 11 2017 Fedora Release Engineering <[email protected]> - 3.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <[email protected]> - 3.2-6
- Rebuild for Python 3.6
* Tue Jul 19 2016 Fedora Release Engineering <[email protected]> - 3.2-5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Fri Feb 05 2016 Fedora Release Engineering <[email protected]> - 3.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Nov 18 2015 Matias Kreder <[email protected]> 3.2-3
- Added buildrequires
* Wed Nov 18 2015 Matias Kreder <[email protected]> 3.2-1
- Updated to thefuck 3.2
* Tue Nov 10 2015 Fedora Release Engineering <[email protected]> - 1.48-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python2.5
* Thu Jul 2 2015 Matias Kreder <[email protected]> 1.46-1
- Initial spec