15
0

Accepting request 646622 from home:pluskalm:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/646622
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutt-ics?expand=0&rev=1
This commit is contained in:
2018-11-06 11:23:28 +00:00
committed by Git OBS Bridge
commit 0d272b29f2
5 changed files with 116 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

3
mutt_ics-0.8.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9aa9e514d878792eaa8ecc0e7d4523faefb7f528b11cf0b2a84c782a95b64b67
size 3670

4
python-mutt-ics.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Nov 6 10:06:35 UTC 2018 - Martin Pluskal <mpluskal@suse.com>
- Initial changelog entry for version 0.8

85
python-mutt-ics.spec Normal file
View File

@@ -0,0 +1,85 @@
#
# spec file for package python-mutt_ics
#
# Copyright (c) 2018 SUSE LINUX 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_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mutt_ics
Version: 0.8
Release: 0
License: MIT
Summary: A tool to show calendar event details in Mutt
Url: https://github.com/dmedvinsky/mutt-ics
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/m/mutt-ics/mutt_ics-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
Requires: python-icalendar >= 3.9.0
BuildArch: noarch
%python_subpackages
%description
Mutt ICS
========
Ever received a meeting notification in an email? Ever wanted to have a quick
glance at that `.ics` file and know what is that meeting about, where is it
going to happen and who is participating?
I did. So I made this little script.
Usage
-----
The package is on PyPI so it is pip-installable, but I recommend using PIP
Script Installer ([pipsi](https://github.com/mitsuhiko/pipsi)).
After installing with
pipsi install mutt_ics
and making sure the `mutt-ics` executable is in your path, you should configure
mutt to use it to render ICS files. To do that, complete the following steps:
1. Add the following lines to your `.mailcap` file:
text/calendar; mutt-ics; copiousoutput
application/ics; mutt-ics; copiousoutput
2. Add the following line to your `.muttrc` file:
auto_view text/calendar application/ics
You're done. I guess. Maybe I forgot something. Please, file a ticket if I did.
%prep
%setup -q -n mutt_ics-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md
%python3_only %{_bindir}/mutt-ics
%{python_sitelib}/*
%changelog