File osmo-oohmi.spec of Package osmo-oohmi

#
# spec file for package osmo-oohmi
#
# Copyright (c) 2014, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           osmo-oohmi
Version:        0.0.0.git1407855863.624ac1f
Release:        0
Summary:        OpenBSC and OsmoSGSN HLR Management Web Interface (OOHMI)
License:        AGPL-3.0+
Group:          Productivity/Telephony/Utilities
Url:            http://cgit.osmocom.org/python/osmo-oohmi/
Source:         %{name}-%{version}.tar.xz
Patch1:         0001-remove-debian-specific-stuff.patch
Patch2:         0002-use-etc-osmocom-directory-configfiles.patch
Patch3:         0003-minor-init-script-changes.patch
BuildRequires:  python-Chameleon >= 1.2.3
BuildRequires:  python-PasteDeploy >= 1.5.0
BuildRequires:  python-WebOb >= 1.2dev
BuildRequires:  python-coverage
BuildRequires:  python-devel
BuildRequires:  python-nose
BuildRequires:  python-pyramid_debugtoolbar
BuildRequires:  python-pyramid_exclog
BuildRequires:  python-pyramid_mako
BuildRequires:  python-pysqlite
BuildRequires:  python-repoze.lru >= 0.4
BuildRequires:  python-setuptools
BuildRequires:  python-translationstring >= 0.4
BuildRequires:  python-venusian >= 1.0
BuildRequires:  python-waitress
BuildRequires:  python-zope.deprecation >= 3.5.0
BuildRequires:  python-zope.interface >= 3.8.0
Requires:       python-Chameleon >= 1.2.3
Requires:       python-Mako >= 0.3.6
Requires:       python-PasteDeploy >= 1.5.0
Requires:       python-WebOb >= 1.2dev
Requires:       python-coverage
Requires:       python-pyramid
Requires:       python-pyramid_debugtoolbar
Requires:       python-pyramid_exclog
Requires:       python-pyramid_mako
Requires:       python-pysqlite
Requires:       python-repoze.lru >= 0.4
Requires:       python-translationstring >= 0.4
Requires:       python-venusian >= 1.0
Requires:       python-waitress
Requires:       python-zope.deprecation >= 3.5.0
Requires:       python-zope.interface >= 3.8.0
#Recommends:	openbsc
#Recommends:	lrc
#Recommends:	openggsn
#Recommends:	asterisk
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Web Management interface for OpenBSC, OsmoSGSN, GGSN, Asterisk and LCR services.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
python setup.py build

%install
mkdir -p %{buildroot}/%{_sysconfdir}/init.d
mkdir -p %{buildroot}/%{_sysconfdir}/osmocom
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
#python setup.py nosetests

%files
%defattr(-,root,root)
%doc CHANGES.txt COPYING.txt README.txt
%dir %{_sysconfdir}/osmocom
%config %{_sysconfdir}/osmocom/production.ini
%config %{_sysconfdir}/init.d/osmocom-oohmi
%{python_sitelib}/

%changelog
openSUSE Build Service is sponsored by