-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathatomicapp-builder.spec
66 lines (53 loc) · 1.79 KB
/
atomicapp-builder.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
# Created by pyp2rpm-1.1.2
%global pypi_name atomicapp-builder
# if you want to package a normal release, set postrelease to 0
# if you want to package a postrelease, set it to 1 or higher to ensure proper upgrade path
%global postrelease 1
%global release 1
%global commit 940d15de1064a0497a9d4ccc8e8bcfbad03af370
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: %{pypi_name}
Version: 0.0.1
%if 0%{?postrelease}
Release: %{release}.%{postrelease}.git.%{shortcommit}%{?dist}
%else
Release: %{release}%{?dist}
%endif
Summary: Application for building Atomicapps
License: BSD
URL: https://github.com/bkabrda/atomicapp-builder/
%if 0%{?postrelease}
Source0: https://github.com/bkabrda/%{pypi_name}/archive/%{commit}/%{pypi_name}-%{commit}.tar.gz
%else
Source0: https://pypi.python.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
%endif
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: python-anymarkup
Requires: python-atomic-reactor
Requires: python-requests
Requires: python-setuptools
%description
An application to build application images from Nulecule specification.
%prep
%if 0%{?postrelease}
%setup -q -n %{pypi_name}-%{commit}
%else
%setup -q -n %{pypi_name}-%{version}
%endif
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
# no check section, since tests require internet access
%files
%doc README.md LICENSE
%{_bindir}/atomicapp-builder
%{python2_sitelib}/atomicapp_builder
%{python2_sitelib}/atomicapp_builder-%{version}-py?.?.egg-info
%changelog
* Mon Jun 15 2015 Slavek Kabrda <[email protected]> - 0.0.1-1
- Initial package.