Skip to content

Commit

Permalink
build python3
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Sep 18, 2015
1 parent 2e2dcda commit 828de0b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.rst
Expand Up @@ -39,6 +39,8 @@ simple version of the bconsole in Python
use JSON objects of API mode 2
----------------------------------

Requires: bareos >= 15.2

.. code:: python
import bareos.bsock
Expand Down
2 changes: 2 additions & 0 deletions packaging/README.md
Expand Up @@ -16,3 +16,5 @@ cp -a python-bareos_*.debian.tar.gz python-bareos_*.orig.tar.gz $OBS
cp -a python-bareos_0.2-1.dsc $OBS/python-bareos.dsc
cp -a ../packaging/*.spec $OBS
cp -a ../packaging/python-bareos.changes $OBS

# transfered to OBS _service file, to build directly from github.com
10 changes: 8 additions & 2 deletions packaging/python-bareos.spec
Expand Up @@ -26,8 +26,14 @@ License: AGPL-3.0
URL: https://github.com/joergsteffens/python-bareos/
#Source0: http://pypi.python.org/packages/source/e/%%{srcname}/%%{srcname}-%%{version}.tar.gz
Source: %{name}-%{version}.tar.gz

BuildRequires: python-devel python-setuptools
%if %{with python2}
BuildRequires: python-devel
BuildRequires: python-setuptools
%endif
%if %{with python3}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%endif
%if %noarch
BuildArch: noarch
%endif
Expand Down

0 comments on commit 828de0b

Please sign in to comment.