Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Sep 18, 2015
1 parent 2365103 commit 2e2dcda
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 11 deletions.
1 change: 1 addition & 0 deletions debian/compat
@@ -0,0 +1 @@
7
31 changes: 31 additions & 0 deletions debian/control
@@ -0,0 +1,31 @@
Source: python-bareos
Maintainer: Joerg Steffens <joerg.steffens@bareos.com>
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7.4.3)
Standards-Version: 3.9.1

Package: python-bareos
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Description: Network socket connection to the Bareos backup system.
python-bareos
=============
.
Python libraries to access Bareos
.
## Example
.
.
### preperation
.
```
export PYTHONPATH=.
python
```
.
### calling bareos-director user agent commands
.
```
import bareos.bsock
.
7 changes: 7 additions & 0 deletions debian/rules
@@ -0,0 +1,7 @@
#!/usr/bin/make -f

# This file was automatically generated by stdeb 0.6.0+git at
# Mon, 07 Sep 2015 16:46:19 +0200

%:
dh $@ --with python2 --buildsystem=python_distutils
1 change: 1 addition & 0 deletions debian/source/format
@@ -0,0 +1 @@
1.0
1 change: 1 addition & 0 deletions packaging/debian.debtransform
@@ -0,0 +1 @@
# this file is only required to activate debtransform from Open Build Service (OBS)
7 changes: 4 additions & 3 deletions packaging/python-bareos.changes
@@ -1,5 +1,6 @@
-------------------------------------------------------------------
Mon Sep 7 14:26:48 UTC 2015 - joerg.steffens@dass-it.de
python-bareos (0.3.0-1) unstable; urgency=low

- initial
* initial

-- Joerg Steffens <joerg.steffens@bareos.com> Mon, 24 Aug 2015 11:45:40 +0200

10 changes: 10 additions & 0 deletions packaging/python-bareos.dsc
@@ -0,0 +1,10 @@
Format: 1.0
Source: python-bareos
Binary: python-bareos
Architecture: all
Version: 0.3-1
Maintainer: Joerg Steffens <joerg.steffens@bareos.com>
Standards-Version: 3.9.1
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7.4.3)
DEBTRANSFORM-RELEASE: 1
Files:
11 changes: 5 additions & 6 deletions packaging/python-bareos.spec
Expand Up @@ -18,14 +18,14 @@
%global pyXcmd python%{PYVER}

Name: python-%{srcname}
Version: 0.2
Version: 0.3
Release: 1%{?dist}
Summary: Python module to interact with a Bareos backup system

Group: Productivity/Archiving/Backup
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}.orig.tar.gz
Source: %{name}-%{version}.tar.gz

BuildRequires: python-devel python-setuptools
%if %noarch
Expand All @@ -34,7 +34,7 @@ BuildArch: noarch
%{?python_provide:%python_provide python-%{srcname}}

%description
A python module to interact with a Bareos backup system.
A python module to interact with a Bareos backup system. Also some tools based on this module.

%define pyX_sitelib %(%{pyXcmd} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")

Expand All @@ -60,7 +60,6 @@ A python module to interact with a Bareos backup system.
%defattr(-,root,root,-)
%doc README.rst
%{pyX_sitelib}/*
%{_bindir}/bconsole.py
%{_bindir}/bconsole-json.py
%{_bindir}/*

%changelog
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -4,11 +4,11 @@

setup(
name='python-bareos',
version='0.2',
version='0.3',
author='Joerg Steffens',
author_email='joerg.steffens@bareos.com',
packages=find_packages(),
scripts=['bin/bconsole.py', 'bin/bconsole-json.py'],
scripts=['bin/bconsole.py', 'bin/bconsole-json.py', 'bin/bareos-fuse.py'],
url='https://github.com/joergsteffens/python-bareos/',
# What does your project relate to?
keywords='bareos',
Expand Down

0 comments on commit 2e2dcda

Please sign in to comment.