From a9d7fcd6c19fdd8392039183489fc32312c58ab0436ec83b7b8de0ec7908304a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 11:46:52 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dennis?expand=0&rev=13 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + dennis-1.1.0.tar.gz | 3 ++ python-dennis.changes | 38 +++++++++++++++++++++ python-dennis.spec | 79 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 144 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 dennis-1.1.0.tar.gz create mode 100644 python-dennis.changes create mode 100644 python-dennis.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/dennis-1.1.0.tar.gz b/dennis-1.1.0.tar.gz new file mode 100644 index 0000000..1bab645 --- /dev/null +++ b/dennis-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8cfa89acbee5acd3e70714fbc45d9dc23446a2418624c17b1dcfdf0bdd33bbe0 +size 44799 diff --git a/python-dennis.changes b/python-dennis.changes new file mode 100644 index 0000000..bc9692c --- /dev/null +++ b/python-dennis.changes @@ -0,0 +1,38 @@ +------------------------------------------------------------------- +Mon May 26 11:46:33 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed Oct 12 03:04:03 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 1.1.0 + * cb9f9e5 Handle double braces when linting + +------------------------------------------------------------------- +Tue May 26 07:22:36 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Thu Feb 28 07:16:05 UTC 2019 - John Vandenberg + +- Add export LANG="en_US.UTF-8" to fix tests on Leap + +------------------------------------------------------------------- +Wed Feb 13 09:45:25 UTC 2019 - Jan Engelhardt + +- Trim filler wording from description, and fixup sentence grammar. + +------------------------------------------------------------------- +Wed Feb 13 05:10:03 UTC 2019 - John Vandenberg + +- 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 diff --git a/python-dennis.spec b/python-dennis.spec new file mode 100644 index 0000000..911a172 --- /dev/null +++ b/python-dennis.spec @@ -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