forked from pool/python-ntfy
Accepting request 592786 from home:theMarix:Python
- Initial package:
* Only packaged for Python 3 as this primarily provides the
executable ntfy.
* Source is taken from Github as the source distribution on PyPI
lacks the tests.
* The package suggests a couple Python packages which are
currently not packaged for openSUSE. Given the strict naming
convention for packaged Python packages this should be safe,
though and magically work once those packages are made
available.
- This requests supersedes the previous one as the copyright note in the spec file was broken.
OBS-URL: https://build.opensuse.org/request/show/592786
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntfy?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
||||||
15
_service
Normal file
15
_service
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<services>
|
||||||
|
<service name="obs_scm">
|
||||||
|
<param name="url">https://github.com/dschep/ntfy.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">v2.5.1</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
</service>
|
||||||
|
<service name="tar" mode="buildtime"/>
|
||||||
|
<service name="recompress" mode="buildtime">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" />
|
||||||
|
</services>
|
||||||
18
python-ntfy.changes
Normal file
18
python-ntfy.changes
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 31 19:14:54 UTC 2018 - marix@marix.org
|
||||||
|
|
||||||
|
- Fix the copyright note in the spec file.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 31 12:07:09 UTC 2018 - marix@marix.org
|
||||||
|
|
||||||
|
- Initial package:
|
||||||
|
* Only packaged for Python 3 as this primarily provides the
|
||||||
|
executable ntfy.
|
||||||
|
* Source is taken from Github as the source distribution on PyPI
|
||||||
|
lacks the tests.
|
||||||
|
* The package suggests a couple Python packages which are
|
||||||
|
currently not packaged for openSUSE. Given the strict naming
|
||||||
|
convention for packaged Python packages this should be safe,
|
||||||
|
though and magically work once those packages are made
|
||||||
|
available.
|
||||||
90
python-ntfy.spec
Normal file
90
python-ntfy.spec
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-ntfy
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 Matthias Bach <marix@marix.org>.
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
|
||||||
|
%define skip_python2 1
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
|
||||||
|
Name: python-ntfy
|
||||||
|
Version: 0 # set via _service
|
||||||
|
Release: 0
|
||||||
|
License: GPL-3.0
|
||||||
|
Summary: A utility for sending push notifications
|
||||||
|
Url: https://github.com/dschep/ntfy
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Source: ntfy-%{version}.tar.xz
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module appdirs}
|
||||||
|
BuildRequires: %{python_module requests}
|
||||||
|
BuildRequires: %{python_module ruamel.yaml}
|
||||||
|
# test requirements
|
||||||
|
BuildRequires: %{python_module emoji}
|
||||||
|
BuildRequires: %{python_module mock}
|
||||||
|
BuildRequires: %{python_module psutil}
|
||||||
|
BuildRequires: %{python_module sleekxmpp}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
Requires: python-appdirs
|
||||||
|
Requires: python-requests
|
||||||
|
Requires: python-ruamel.yaml
|
||||||
|
Suggests: python-sleekxmpp
|
||||||
|
Suggests: python-dnspython3
|
||||||
|
Suggests: python-slacker
|
||||||
|
Suggests: python-telegram-send
|
||||||
|
Suggests: python-psutil
|
||||||
|
Suggests: python-instapush
|
||||||
|
Suggests: python-rocketchat-API
|
||||||
|
Suggests: python-emoji
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
ntfy brings notification to your shell. It can automatically provide
|
||||||
|
desktop notifications when long running commands finish or it can send
|
||||||
|
push notifications to your phone when a specific command finishes.
|
||||||
|
|
||||||
|
Quickstart
|
||||||
|
----------
|
||||||
|
|
||||||
|
$ ntfy send test
|
||||||
|
# send a notification when the command `sleep 10` finishes
|
||||||
|
# this sends the message '"sleep 10" succeeded in 0:10 minutes'
|
||||||
|
$ ntfy done sleep 10
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n ntfy-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/ntfy*
|
||||||
|
|
||||||
|
%check
|
||||||
|
%python_exec setup.py test
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%python3_only %{_bindir}/ntfy
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
Reference in New Issue
Block a user