File salt-janus.spec of Package salt-janus
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: salt-janus
Version: 0.1.2
Release: 0
Summary: Janus execution module for SaltStack
License: GPL-3.0
Group: Productivity/Networking/Other
Url: https://github.com/meaksh/salt-janus-module.git
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(pre): salt
Requires: python-configobj
%description
An execution module for SaltStack enabling the basic administration of a Janus
Gateway instance.
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/srv/salt/_modules
install -m 0644 -D srv/salt/_modules/*.py %{buildroot}/srv/salt/_modules
%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%dir /srv/salt
%dir /srv/salt/_modules
/srv/salt/_modules/janus.py
%changelog
%post
/usr/bin/salt-call --local saltutil.sync_all