-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpython2-lxc.spec
51 lines (36 loc) · 1.22 KB
/
python2-lxc.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
%global commit b7ec757d2bea1e5787c3e65b1359b8893491ef90
%global commitdate 20180214
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: python2-lxc
Version: 0.1+git%{commitdate}.%{shortcommit}
Release: 0.3%{?dist}
Summary: Python 2 bindings for LXC
Group: Development/Libraries
License: LGPLv2+
URL: https://linuxcontainers.org/lxc
Source0: https://github.com/lxc/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildRequires: gcc
BuildRequires: lxc-devel >= 3
BuildRequires: python2-devel
%{?python_provide:%python_provide python2-lxc}
%description
%{summary}
%prep
%autosetup -n %{name}-%{commit}
%build
%py2_build
%install
%py2_install
%check
%files
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc README.md
%{python2_sitearch}/*
%changelog
* Sat Sep 28 2019 Reto Gantenbein <reto.gantenbein@linuxmonk.ch> 0.1+git20180214.b7ec757-0.3
- Fix build no C compiler is in the base build environment
* Sat Sep 28 2019 Reto Gantenbein <reto.gantenbein@linuxmonk.ch> 0.1+git20180214.b7ec757-0.2
- Rebuild for EPEL-8
* Mon Apr 23 2018 Reto Gantenbein <reto.gantenbein@linuxmonk.ch> 0.1+git20180214.b7ec757-0.1
- Initial package