-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-pip.spec
103 lines (74 loc) · 3.35 KB
/
python-pip.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
## Extra macros ################################################################
%define _logdir %{_localstatedir}/log
%define _rundir %{_localstatedir}/run
%define _lockdir %{_localstatedir}/lock
%define _loc_prefix %{_prefix}/local
%define _loc_exec_prefix %{_loc_prefix}
%define _loc_bindir %{_loc_exec_prefix}/bin
%define _loc_libdir %{_loc_exec_prefix}/%{_lib}
%define _loc_libexecdir %{_loc_exec_prefix}/libexec
%define _loc_sbindir %{_loc_exec_prefix}/sbin
%define _loc_bindir %{_loc_exec_prefix}/bin
%define _loc_datarootdir %{_loc_prefix}/share
%define _loc_includedir %{_loc_prefix}/include
%define full_name python-pip
%define short_name pip
## Info ########################################################################
Summary: Tool for installing and managing Python packages
Name: %{full_name}
Version: 8.1.1
Release: 0%{?dist}
License: MIT
Group: Development/Libraries
URL: http://www.pip-installer.org/
Vendor: Python Packaging Authority
Source0: http://pypi.python.org/packages/source/p/pip/%{short_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{short_name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: python-setuptools python-devel
BuildRequires: python-devel python-setuptools-devel
Provides: %{short_name} = %{version}-%{release}
%description
pip is a tool for installing and managing Python packages,
such as those found in the Python Package Index.
It’s a replacement for easy_install.
## Build & Install #############################################################
%prep
%setup -qn %{short_name}-%{version}
%{__sed} -i '1d' %{short_name}/__init__.py
%build
%{__python} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%{__rm} -rf %{buildroot}%{_bindir}/%{short_name}-*
%clean
%{__rm} -rf %{buildroot}
## Files #######################################################################
%files
%defattr(-, root, root, -)
%doc PKG-INFO docs
%attr(755, root, root) %{_bindir}/%{short_name}*
%{python_sitelib}/%{short_name}*
## Changelog ###################################################################
%changelog
* Sun Mar 20 2016 Gleb Goncharov <ggoncharov@simtechdev.com> - 8.1.1-0
- Updated to latest stable release
* Thu Mar 10 2016 Gleb Goncharov <ggoncharov@simtechdev.com> - 8.1.0-0
- Updated to latest stable release
* Tue Feb 23 2016 Gleb Goncharov <ggoncharov@simtechdev.com> - 8.0.2-0
- Updated to latest stable release
* Wed Dec 30 2015 Gleb Goncharov <ggoncharov@simtechdev.com> - 7.1.2-0
- Updated to latest stable release
* Wed Jan 22 2014 Anton Novojilov <andy@essentialkaos.com> - 1.5.1-0
- Updated to latest stable release
* Tue Jan 14 2014 Anton Novojilov <andy@essentialkaos.com> - 1.5-0
- Updated to latest stable release
* Mon Nov 18 2013 Anton Novojilov <andy@essentialkaos.com> - 1.4.1-0
- Updated to latest stable release
* Thu Apr 11 2013 Anton Novojilov <andy@essentialkaos.com> - 1.3.1-0
- Updated to latest stable release
* Thu Apr 11 2013 Anton Novojilov <andy@essentialkaos.com> - 1.3-0
- Updated to latest stable release
* Fri Jun 29 2012 Anton Novojilov <andy@essentialkaos.com> - 1.1-0
- Updated to latest stable release