-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelloworld-python-binding.spec
More file actions
47 lines (36 loc) · 1.12 KB
/
helloworld-python-binding.spec
File metadata and controls
47 lines (36 loc) · 1.12 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
%global debug_package %{nil}
Name: helloworld-python-binding
Version: 1.0.0
Release: 1%{?dist}
Summary: A package for the HelloWorld Binding in Python3
License: Apache 2.0
URL: https://github.com/redpesk-samples/helloworld-python-binding.git
Source0: %{name}-%{version}.tar.gz
BuildRequires: python3
BuildRequires: python3-setuptools
BuildRequires: python3-rpm-macros
Requires: python3-devel
Requires: afb-libpython
Requires: afb-ui-devtools
%description
A package for the HelloWorld Binding in Python3.
%prep
%setup -q
%build
python3 setup.py build
%install
rm -rf %{buildroot}
python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
mkdir -p %{buildroot}%{_unitdir}/
mkdir -p %{buildroot}%{_sysconfdir}/redpesk/helloworld-python-binding/
mkdir -p %{buildroot}%{_datadir}/helloworld-python-binding/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%dir %{_sysconfdir}/redpesk/helloworld-python-binding/
%{python3_sitelib}/helloworld_python_binding
%{python3_sitelib}/helloworld_python_binding-*.egg-info
%changelog