SHA256
1
0
forked from pool/b4
Jiri Slaby 2021-01-22 07:05:37 +00:00 committed by Git OBS Bridge
parent 6dceeb024c
commit c610de0120

21
b4.spec
View File

@ -16,8 +16,6 @@
# #
%define skip_python2 1
%define skip_python36 1
%define version_unconverted 0.6.2+4 %define version_unconverted 0.6.2+4
Name: b4 Name: b4
Version: 0.6.2+4 Version: 0.6.2+4
@ -29,8 +27,10 @@ URL: https://git.kernel.org/pub/scm/utils/b4/b4.git
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
Patch0: 0001-lift-requests-version-requirement.patch Patch0: 0001-lift-requests-version-requirement.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: %{python_module requests} # for checks
BuildRequires: %{python_module setuptools} BuildRequires: git-core
BuildRequires: python3-requests
BuildRequires: python3-setuptools
Requires: python3-dkimpy >= 1.0.5 Requires: python3-dkimpy >= 1.0.5
Requires: python3-dnspython >= 2.0.0 Requires: python3-dnspython >= 2.0.0
Requires: python3-requests >= 2.24.0 Requires: python3-requests >= 2.24.0
@ -51,17 +51,20 @@ precursor to Lore and Data in the Star Trek universe.
sed -i.old '1{/#!.*/d}' b4/*.py sed -i.old '1{/#!.*/d}' b4/*.py
%build %build
%python_build %python3_build
%install %install
%python_install %python3_install
mv %{buildroot}/%{_mandir}/man5 %{buildroot}/%{_mandir}/man.5 mv %{buildroot}/%{_mandir}/man5 %{buildroot}/%{_mandir}/man.5
%check %check
%python_exec setup.py check python3 setup.py check
export PYTHONPATH="./" export PYTHONPATH="./"
%python_exec ./b4/command.py --version >check_version THEIRS=`python3 ./b4/command.py --version`
echo %version | grep "`cat check_version`" OURS=`sed -n "s/__VERSION__ = '\(.*\)'/\1/p" b4/__init__.py`
test "$THEIRS" = "$OURS"
python3 ./b4/command.py --help |grep -q 'mbox,am,attest'
python3 ./b4/command.py mbox abc |& grep -q 'Looking up https://lore.kernel.org/r/abc'
%files %files
%doc README.rst %doc README.rst