-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-mrglog.spec
50 lines (40 loc) · 1.3 KB
/
python-mrglog.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
# Updated by spec2scl-1.1.3
%{?scl:%scl_package python-%{pypi_name}}
%{!?scl:%global pkg_name %{name}}
# Created by pyp2rpm-3.2.1
%global pypi_name mrglog
Name: %{?scl_prefix}python-%{pypi_name}
Version: 0.1.1
Release: 1%{?dist}
Summary: MRG log module
License: Apache 2.0
URL: https://github.com/ltrilety/mrglog
Source0: %{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{?scl_prefix_python}python-devel
BuildRequires: %{?scl_prefix_python}python-setuptools
%{?scl:BuildRequires: %{scl}-build %{scl}-runtime}
%{?scl:Requires: %{scl}-runtime}
%description
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%{?scl:scl enable %{scl} - << \EOF}
%{__python} setup.py build
%{?scl:EOF}
%install
%{?scl:scl enable %{scl} - << \EOF}
%{__python} setup.py install --skip-build --root %{buildroot} --install-purelib %{python_sitelib} --install-scripts %{python_sitelib}/../../../bin
%{?scl:EOF}
%files
%doc README.rst
%{_bindir}/mrglog_demo.py
%dir %{python_sitelib}/__pycache__/
%{python_sitelib}/__pycache__/*
%{python_sitelib}/%{pypi_name}.py
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Tue Nov 08 2016 Martin Bukatovic <[email protected]> - 0.1.1-1
- Initial package.