-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.pyc | ||
*.pyo | ||
build/ | ||
pkgs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.PHONY: all | ||
all: build | ||
|
||
PYTHON ?= python | ||
|
||
.PHONY: build | ||
build: | ||
$(PYTHON) setup.py build | ||
|
||
.PHONY: install | ||
install: | ||
$(PYTHON) setup.py install -O1 --skip-build $(PYTHON_PREFIX_ARG) --root $(DESTDIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
RPM_SPEC_FILES := rpm_spec/qubes-core-mgmt-client.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Name: qubes-core-mgmt-client | ||
Version: %(cat version) | ||
Release: 0.1%{?dist} | ||
Summary: Qubes OS management client tools | ||
|
||
Group: Qubes | ||
License: LGPLv2.1+ | ||
URL: https://www.qubes-os.org | ||
|
||
BuildRequires: python2-setuptools | ||
BuildRequires: python3-setuptools | ||
BuildRequires: python2-devel | ||
BuildRequires: python3-devel | ||
Requires: python3-qubesmgmt | ||
BuildArch: noarch | ||
|
||
%if 0%{?qubes_builder} | ||
%define _builddir %(pwd) | ||
%endif | ||
|
||
%description | ||
This package include managemt tools, like qvm-*. | ||
|
||
%package -n python2-qubesmgmt | ||
Summary: Python2 module qubesmgmt | ||
|
||
%description -n python2-qubesmgmt | ||
Python2 module qubesmgmt. | ||
|
||
%package -n python3-qubesmgmt | ||
Summary: Python3 module qubesmgmt | ||
|
||
%description -n python3-qubesmgmt | ||
Python3 module qubesmgmt. | ||
|
||
%prep | ||
%if !0%{?qubes_builder} | ||
%setup -q | ||
%endif | ||
|
||
|
||
%build | ||
make %{?_smp_mflags} PYTHON=%{__python2} | ||
make %{?_smp_mflags} PYTHON=%{__python3} | ||
|
||
|
||
%install | ||
%make_install PYTHON=%{__python2} | ||
%make_install PYTHON=%{__python3} | ||
|
||
|
||
%files | ||
%doc LICENSE | ||
|
||
%files -n python2-qubesmgmt | ||
%{python_sitelib}/qubesmgmt-*egg-info | ||
%{python_sitelib}/qubesmgmt | ||
|
||
%files -n python3-qubesmgmt | ||
%{python3_sitelib}/qubesmgmt-*egg-info | ||
%{python3_sitelib}/qubesmgmt | ||
|
||
|
||
%changelog | ||
|