66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
%global _python_bytecompile_extra 0
|
|
|
|
Name: rpmlint
|
|
Version: 1.10
|
|
Release: 18
|
|
Summary: Check the RPM package of tools for common errors
|
|
License: GPLv2
|
|
URL: https://github.com/rpm-software-management/rpmlint
|
|
Source0: https://github.com/rpm-software-management/rpmlint/archive/rpmlint-%{version}.tar.gz
|
|
Source1: rpmlint.config
|
|
Source2: rpmlint-etc.config
|
|
|
|
Patch0001: rpmlint-1.10-ignore-debuginfo-useless-provides.patch
|
|
Patch0002: rpmlint-1.10-flake-cleanups.patch
|
|
Patch0003: rpmlint-1.10-missing-files-exception.patch
|
|
Patch0004: rpmlint-1.10-py37mtime.patch
|
|
Patch0005: rpmlint-1.10-py37magic.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel rpm-python3 >= 4.4.2.2 python3-pytest sed >= 3.95
|
|
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 -n %{name}-%{name}-%{version} -p1
|
|
|
|
sed -i -e /MenuCheck/d Config.py
|
|
cp -p config config.example
|
|
install -pm 644 %{SOURCE2} config
|
|
|
|
%build
|
|
make COMPILE_PYC=1 PYTHON=%{__python3}
|
|
|
|
%install
|
|
touch rpmlint.pyc rpmlint.pyo
|
|
%make_install ETCDIR=%{_sysconfdir} MANDIR=%{_mandir} \
|
|
LIBDIR=%{_datadir}/rpmlint BINDIR=%{_bindir} PYTHON=%{__python3}
|
|
|
|
install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/rpmlint/config
|
|
|
|
|
|
%files
|
|
%doc README.md config.example COPYING
|
|
%config(noreplace) %{_sysconfdir}/rpmlint/
|
|
%{_bindir}/{rpmdiff,rpmlint}
|
|
%{_datadir}/rpmlint/
|
|
%exclude %{_sysconfdir}/bash_completion.d/
|
|
|
|
%files help
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* Tue Feb 18 2020 wanjiankang <wanjiankang@huawei.com> - 1.10-18
|
|
- Package init
|