#!/bin/env ruby
# encoding: utf-8

class ZalandoCMDBClient < FPM::Cookery::Recipe
  description "Python client library for CMDB REST API."

  name     "zalando-cmdb-client"
  version  "1.0.14"
  revision @REVISION@
  arch      "all"
  homepage "https://stash.zalando.net/projects/PYMODULES/repos/zalando-cmdb-client/browse"
  source   "https://stash.zalando.net/scm/pymodules/zalando-cmdb-client.git", :with => :git, :tag => "#{version}"

  maintainer    "Sören König <soeren.koenig@zalando.de>"

  build_depends   "python-setuptools"

  platforms [:ubuntu, :debian] do
    depends     "python-netaddr >= 0.7.5", "python-netifaces", "python-ordereddict", "python-paramiko >= 1.7.0", "python-yaml >= 3.10"
  end

  platforms [:centos] do
    depends     "PyYAML >= 3.10", "python-argparse", "python-netaddr >= 0.7.5", "python-netifaces", "python-ordereddict", "python-paramiko >= 1.7.0", "python-setuptools"
  end

  def build
    safesystem 'python setup.py build'
  end

  def install
      safesystem 'python setup.py install --root=../../tmp-dest --no-compile --install-layout=deb'
  end
end

#!/bin/env ruby
# encoding: utf-8

class ZalandoCMDBClient < FPM::Cookery::Recipe
  description "Python client library for CMDB REST API."

  name     "zalando-cmdb-client"
  version  "1.0.14"
  revision @REVISION@
  arch      "all"
  homepage "https://stash.zalando.net/projects/PYMODULES/repos/zalando-cmdb-client/browse"
  source   "https://stash.zalando.net/scm/pymodules/zalando-cmdb-client.git", :with => :git, :tag => "#{version}"

  maintainer    "Sören König <soeren.koenig@zalando.de>"

  build_depends   "python-setuptools"

  platforms [:ubuntu, :debian] do
    depends     "python-netaddr >= 0.7.5", "python-netifaces", "python-ordereddict", "python-paramiko >= 1.7.0", "python-yaml >= 3.10"
  end

  platforms [:centos] do
    depends     "PyYAML >= 3.10", "python-argparse", "python-netaddr >= 0.7.5", "python-netifaces", "python-ordereddict", "python-paramiko >= 1.7.0", "python-setuptools"
  end

  def build
    safesystem 'python setup.py build'
  end

  def install
      safesystem 'python setup.py install --root=../../tmp-dest --no-compile'
  end
end

Revert "change package content layout"
Revert "change package content layout"

This reverts commit 35b55404a989ad090b51362bef0e696de143d851.
