forked from pool/python-Automat
Accepting request 453051 from home:termim:branches:devel:languages:python
Automat is a library for concise, idiomatic Python expression of finite-state automata (particularly deterministic finite-state transducers). OBS-URL: https://build.opensuse.org/request/show/453051 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?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
|
3
Automat-0.4.0.tar.gz
Normal file
3
Automat-0.4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:24b97bc7e77804875da59383cccc7013bbec00296edf9baa7e2b5a969ed09df7
|
||||||
|
size 25791
|
5
python-Automat.changes
Normal file
5
python-Automat.changes
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 24 23:48:39 UTC 2017 - termim@gmail.com
|
||||||
|
|
||||||
|
- Initial check in version 0.4.0
|
||||||
|
|
81
python-Automat.spec
Normal file
81
python-Automat.spec
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-Automat
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 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/
|
||||||
|
|
||||||
|
|
||||||
|
Name: python-Automat
|
||||||
|
Version: 0.4.0
|
||||||
|
Release: 0
|
||||||
|
License: MIT
|
||||||
|
Summary: Self-service finite-state machines for the programmer on the go
|
||||||
|
Url: https://github.com/glyph/automat
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Source: https://pypi.org/packages/source/A/Automat/Automat-%{version}.tar.gz
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: python-setuptools_scm
|
||||||
|
BuildRequires: python-attrs
|
||||||
|
BuildRequires: python-six
|
||||||
|
Requires: python-attrs
|
||||||
|
Requires: python-six
|
||||||
|
Suggests: python-graphviz > 0.5.1
|
||||||
|
Suggests: python-Twisted >= 16.1.1
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(preun): update-alternatives
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Automat is a library for concise, idiomatic Python expression of finite-state
|
||||||
|
automata (particularly deterministic finite-state transducers).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n Automat-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
python setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
%check
|
||||||
|
python setup.py test
|
||||||
|
|
||||||
|
# Prepare for update-alternatives usage
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
|
||||||
|
mv %{buildroot}%{_bindir}/automat-visualize %{buildroot}%{_bindir}/automat-visualize-%{py_ver}
|
||||||
|
ln -s -f %{_sysconfdir}/alternatives/automat-visualize %{buildroot}%{_bindir}/automat-visualize
|
||||||
|
# create a dummy target for /etc/alternatives/automat-visualize
|
||||||
|
touch %{buildroot}%{_sysconfdir}/alternatives/automat-visualize
|
||||||
|
|
||||||
|
%post
|
||||||
|
%_sbindir/update-alternatives \
|
||||||
|
--install %{_bindir}/automat-visualize automat-visualize %{_bindir}/automat-visualize-%{py_ver} 30
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
%_sbindir/update-alternatives --remove automat-visualize %{_bindir}/automat-visualize-%{py_ver}
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc LICENSE README.md
|
||||||
|
%{_bindir}/automat-visualize
|
||||||
|
%{_bindir}/automat-visualize-%{py_ver}
|
||||||
|
%ghost %{_sysconfdir}/alternatives/automat-visualize
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
Reference in New Issue
Block a user