forked from pool/python-dennis
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dennis?expand=0&rev=13
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
dennis-1.1.0.tar.gz
Normal file
3
dennis-1.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8cfa89acbee5acd3e70714fbc45d9dc23446a2418624c17b1dcfdf0bdd33bbe0
|
||||
size 44799
|
||||
38
python-dennis.changes
Normal file
38
python-dennis.changes
Normal file
@@ -0,0 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 26 11:46:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 12 03:04:03 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- Update to version 1.1.0
|
||||
* cb9f9e5 Handle double braces when linting
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 07:22:36 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 28 07:16:05 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Add export LANG="en_US.UTF-8" to fix tests on Leap
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 13 09:45:25 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Trim filler wording from description, and fixup sentence grammar.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 13 05:10:03 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Remove tests from package distribution
|
||||
- Activate tests
|
||||
- Remove unnecessary build dependency python-devel
|
||||
- Use %license
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 16 17:44:43 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Initial version v0.9
|
||||
79
python-dennis.spec
Normal file
79
python-dennis.spec
Normal file
@@ -0,0 +1,79 @@
|
||||
#
|
||||
# spec file for package python-dennis
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-dennis
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
Summary: Utilities for working with PO and POT files
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/willkg/dennis
|
||||
Source: https://files.pythonhosted.org/packages/source/d/dennis/dennis-%{version}.tar.gz
|
||||
# Module dependencies
|
||||
BuildRequires: %{python_module click >= 6}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module polib >= 1.0.8}
|
||||
# Test runner
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-click >= 6
|
||||
Requires: python-polib >= 1.0.8
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Dennis is a set of utilities for working with PO files. They
|
||||
translate POT files to find problems with localization in code, and
|
||||
lint PO files for common problems like variable formatting,
|
||||
mismatched HTML, missing variables, etc.
|
||||
|
||||
%prep
|
||||
%setup -q -n dennis-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/dennis-cmd
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG="en_US.UTF-8"
|
||||
%pytest tests
|
||||
|
||||
%post
|
||||
%python_install_alternative dennis-cmd
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative dennis-cmd
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG README.rst
|
||||
%python_alternative %{_bindir}/dennis-cmd
|
||||
%{python_sitelib}/dennis
|
||||
%{python_sitelib}/dennis-%{version}*-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user