-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-importlib.spec
More file actions
102 lines (80 loc) · 3.54 KB
/
python-importlib.spec
File metadata and controls
102 lines (80 loc) · 3.54 KB
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
################################################################################
%define _posixroot /
%define _root /root
%define _bin /bin
%define _sbin /sbin
%define _srv /srv
%define _home /home
%define _opt /opt
%define _usrbin /usr/bin
%define _lib32 %{_posixroot}lib
%define _lib64 %{_posixroot}lib64
%define _libdir32 %{_prefix}%{_lib32}
%define _libdir64 %{_prefix}%{_lib64}
%define _logdir %{_localstatedir}/log
%define _rundir %{_localstatedir}/run
%define _lockdir %{_localstatedir}/lock/subsys
%define _cachedir %{_localstatedir}/cache
%define _spooldir %{_localstatedir}/spool
%define _crondir %{_sysconfdir}/cron.d
%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_libdir32 %{_loc_exec_prefix}/%{_lib32}
%define _loc_libdir64 %{_loc_exec_prefix}/%{_lib64}
%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 _loc_mandir %{_loc_datarootdir}/man
%define _rpmstatedir %{_sharedstatedir}/rpm-state
%define _pkgconfigdir %{_libdir}/pkgconfig
################################################################################
%define __ln %{_bin}/ln
%define __touch %{_bin}/touch
%define __service %{_sbin}/service
%define __chkconfig %{_sbin}/chkconfig
%define __ldconfig %{_sbin}/ldconfig
%define __groupadd %{_sbindir}/groupadd
%define __useradd %{_sbindir}/useradd
################################################################################
%define package_name importlib
################################################################################
Summary: Backport of importlib.import_module() from Python 2.7
Name: python-importlib
Version: 1.0.3
Release: 0%{?dist}
License: BSD
Group: Development/Libraries
URL: https://pypi.python.org/
Source: https://pypi.python.org/packages/source/i/%{package_name}/%{package_name}-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{package_name}-%{version}-%{release}
ExclusiveArch: x86_64
################################################################################
%description
This package contains the code from importlib as found in Python 2.7. It is provided so
that people who wish to use importlib.import_module() with a version of Python prior to
2.7 or in 3.0 have the function readily available. The code in no way deviates from
what can be found in the Python 2.7 standard library.
################################################################################
%prep
%setup -qn %{package_name}-%{version}
%clean
rm -rf %{buildroot}
%build
python setup.py build
%install
rm -rf %{buildroot}
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
################################################################################
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
################################################################################
%changelog
* Sat Aug 1 2015 Gleb Goncharov <ggoncharov@simtechdev.com> - 1.0.3-0
- Initial build