summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-16 12:29:55 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-16 12:29:55 +0000
commit86d3c7db241eb357eea851464e3c1f7f9ee690e6 (patch)
tree5300e7e0ba4286c2d5367cad6e9cb9315998854e
parent37cba936419145a191b9eef3f52eeffaa4dda0b6 (diff)
automatic import of rpmlintopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--rpmlint.spec62
-rw-r--r--sources1
3 files changed, 64 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cccd2d5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/2.6.1.tar.gz
diff --git a/rpmlint.spec b/rpmlint.spec
new file mode 100644
index 0000000..75a4d96
--- /dev/null
+++ b/rpmlint.spec
@@ -0,0 +1,62 @@
+%global _python_bytecompile_extra 0
+
+Name: rpmlint
+Version: 2.6.1
+Release: 1
+Summary: Check the RPM package of tools for common errors
+License: GPL-2.0-or-later
+URL: https://github.com/rpm-software-management/rpmlint
+Source0: https://github.com/rpm-software-management/rpmlint/archive/refs/tags/%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python3-devel rpm-python3 >= 4.4.2.2 python3-pytest sed >= 3.95 git
+Requires: python3 rpm-python3 >= 4.4.2.2
+Requires: perl-interpreter cpio binutils desktop-file-utils gzip bzip2 xz %{_bindir}/groff
+
+%description
+Rpmlint is to check the RPM package of tools for common errors. You can
+check Binary and source packages as well as spec files.
+
+%package help
+Summary: Help document for the rpmlint package
+
+%description help
+Help document for the rpmlint package.
+
+%prep
+%autosetup -p1 -Sgit
+
+sed -i 's/python-magic/file-magic/g' setup.py
+
+sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg
+
+sed -i '/^@pytest.mark.no_cover/d' test/test_lint.py
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+
+%files
+%doc README.md COPYING
+%{_bindir}/{rpmdiff,rpmlint}
+%{python3_sitelib}/rpmlint*
+
+%files help
+
+
+%changelog
+* Sat Nov 16 2024 Funda Wang <fundawang@yeah.net> - 2.6.1-1
+- update to 2.6.1
+
+* Sun Jun 25 2023 liyanan <thistleslyn@163.com> - 2.4.0-1
+- Update to 2.4.0
+
+* Wed Nov 4 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 1.10-19
+- Ugly workaroud for RPM 4.14 vs 4.15 python3 bindings incompatibility
+
+* Tue Feb 18 2020 wanjiankang <wanjiankang@huawei.com> - 1.10-18
+- Package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..bd0aede
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+767e7fa006cb7cbc7101a867d57de6a1 2.6.1.tar.gz