|
|
|
@ -1,33 +1,37 @@
|
|
|
|
|
%global spectool_version 1.0.10
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: rpmdevtools
|
|
|
|
|
Version: 9.5
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 8.10
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Summary: RPM Development Tools
|
|
|
|
|
|
|
|
|
|
# rpmdev-setuptree is GPLv2, everything else GPLv2+
|
|
|
|
|
License: GPLv2+ and GPLv2
|
|
|
|
|
URL: https://pagure.io/rpmdevtools
|
|
|
|
|
Source0: https://releases.pagure.org/rpmdevtools/%{name}-%{version}.tar.xz
|
|
|
|
|
Source1: progressbar.py
|
|
|
|
|
|
|
|
|
|
# Fedora-specific downstream patches
|
|
|
|
|
## Force legacy datestamp by default until rhbz#1715412 is resolved
|
|
|
|
|
Patch1001: 0001-Force-legacy-datestamp-while-RHBZ-1715412-is-still-a.patch
|
|
|
|
|
|
|
|
|
|
# RHEL-specific downstream patches
|
|
|
|
|
## Remove fakeroot dependency (rhbz#1905465)
|
|
|
|
|
Patch2001: rpmdevtools-9.5-no_qa_robot.patch
|
|
|
|
|
|
|
|
|
|
Patch0: rpmdevtools-8.10-no_qa_robot.patch
|
|
|
|
|
Patch1: BZ-1826299-spectool-url-ignore-query.patch
|
|
|
|
|
Patch2: BZ-1851499-port-to-str-return-values.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# help2man, pod2man, *python for creating man pages
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: help2man
|
|
|
|
|
BuildRequires: %{_bindir}/pod2man
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
# python dependencies for spectool
|
|
|
|
|
# spectool is executed for creating man page
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3dist(requests)
|
|
|
|
|
BuildRequires: python3dist(rpm)
|
|
|
|
|
BuildRequires: python3-rpm
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python2
|
|
|
|
|
BuildRequires: python2-rpm
|
|
|
|
|
%endif
|
|
|
|
|
# emacs-common >= 1:22.3-3 for macros.emacs
|
|
|
|
|
BuildRequires: emacs-common >= 1:22.3-3
|
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
@ -35,16 +39,23 @@ BuildRequires: bash-completion
|
|
|
|
|
# xemacs-common >= 21.5.29-8 for macros.xemacs
|
|
|
|
|
BuildRequires: xemacs-common >= 21.5.29-8
|
|
|
|
|
%endif
|
|
|
|
|
Provides: spectool = %{spectool_version}
|
|
|
|
|
Requires: curl
|
|
|
|
|
Requires: diffutils
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
Requires: fakeroot
|
|
|
|
|
%endif
|
|
|
|
|
Requires: file
|
|
|
|
|
Requires: findutils
|
|
|
|
|
Requires: gawk
|
|
|
|
|
Requires: grep
|
|
|
|
|
Requires: rpm-build >= 4.4.2.3
|
|
|
|
|
Requires: python%{python3_version}dist(argcomplete)
|
|
|
|
|
Requires: python%{python3_version}dist(requests)
|
|
|
|
|
Requires: python%{python3_version}dist(rpm)
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
Requires: python3-rpm
|
|
|
|
|
%else
|
|
|
|
|
Requires: python2
|
|
|
|
|
Requires: python2-rpm
|
|
|
|
|
%endif
|
|
|
|
|
Requires: sed
|
|
|
|
|
Requires: emacs-filesystem
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
@ -62,7 +73,7 @@ rpmdev-checksig Check package signatures using alternate RPM keyring
|
|
|
|
|
rpminfo Print information about executables and libraries
|
|
|
|
|
rpmdev-md5/sha* Display checksums of all files in an archive file
|
|
|
|
|
rpmdev-vercmp RPM version comparison checker
|
|
|
|
|
rpmdev-spectool Expand and download sources and patches in specfiles
|
|
|
|
|
spectool Expand and download sources and patches in specfiles
|
|
|
|
|
rpmdev-wipetree Erase all files within dirs created by rpmdev-setuptree
|
|
|
|
|
rpmdev-extract Extract various archives, "tar xvf" style
|
|
|
|
|
rpmdev-bumpspec Bump revision in specfile
|
|
|
|
@ -70,18 +81,16 @@ rpmdev-bumpspec Bump revision in specfile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
%setup -q
|
|
|
|
|
%if ! 0%{?fedora}
|
|
|
|
|
%patch0 -p1 -b .no_qa_robot
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
grep -lF "%{_bindir}/python " * \
|
|
|
|
|
| xargs sed -i -e "s|%{_bindir}/python |%{_bindir}/python3 |"
|
|
|
|
|
|
|
|
|
|
# Let spectool find the bundled progressbar2 implementation
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
sed -i \
|
|
|
|
|
's|^\(import progressbar\)$|'\
|
|
|
|
|
'import sys\n'\
|
|
|
|
|
'sys.path.insert(1, "%{_datadir}/rpmdevtools")\n'\
|
|
|
|
|
'\1\nsys.path.pop(1)|' \
|
|
|
|
|
rpmdev-spectool
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -90,10 +99,12 @@ rpmdev-spectool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
echo %%{_datadir}/bash-completion > %{name}.files
|
|
|
|
|
[ -d %{buildroot}%{_sysconfdir}/bash_completion.d ] && \
|
|
|
|
|
[ -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d ] && \
|
|
|
|
|
echo %%{_sysconfdir}/bash_completion.d > %{name}.files
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
@ -101,18 +112,11 @@ for dir in %{_emacs_sitestartdir} %{_xemacs_sitestartdir} ; do
|
|
|
|
|
%else
|
|
|
|
|
for dir in %{_emacs_sitestartdir} ; do
|
|
|
|
|
%endif
|
|
|
|
|
install -dm 755 %{buildroot}$dir
|
|
|
|
|
ln -s %{_datadir}/rpmdevtools/rpmdev-init.el %{buildroot}$dir
|
|
|
|
|
touch %{buildroot}$dir/rpmdev-init.elc
|
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT$dir
|
|
|
|
|
ln -s %{_datadir}/rpmdevtools/rpmdev-init.el $RPM_BUILD_ROOT$dir
|
|
|
|
|
touch $RPM_BUILD_ROOT$dir/rpmdev-init.elc
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# For backwards compatibility
|
|
|
|
|
ln -sr %{buildroot}%{_bindir}/rpmdev-spectool %{buildroot}%{_bindir}/spectool
|
|
|
|
|
echo ".so man1/rpmdev-spectool.1" > %{buildroot}%{_mandir}/man1/spectool.1
|
|
|
|
|
|
|
|
|
|
cp %{SOURCE1} %{buildroot}%{_datadir}/rpmdevtools/
|
|
|
|
|
%py_byte_compile %{python3} %{buildroot}%{_datadir}/rpmdevtools/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%license COPYING
|
|
|
|
@ -130,68 +134,20 @@ cp %{SOURCE1} %{buildroot}%{_datadir}/rpmdevtools/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Dec 10 2021 Michal Domonkos <mdomonko@redhat.com> - 9.5-1
|
|
|
|
|
- Rebase to 9.5 (#2005756)
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 9.3-7
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 9.3-6
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Thu Feb 11 2021 Michal Domonkos <mdomonko@redhat.com> - 9.3-5
|
|
|
|
|
- Drop progressbar2 dependency and bundle a tiny replacement (#1927784)
|
|
|
|
|
- Drop fakeroot dependency and qa-robot scripts (#1905465)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 25 2021 Miro Hrončok <mhroncok@redhat.com> - 9.3-3
|
|
|
|
|
- spectool: Download text as text
|
|
|
|
|
|
|
|
|
|
* Fri Jan 22 2021 Michal Domonkos <mdomonko@redhat.com> - 9.3-2
|
|
|
|
|
- Replace requests-download dependency with requests
|
|
|
|
|
|
|
|
|
|
* Wed Jan 20 2021 Neal Gompa <ngompa13@gmail.com> - 9.3-1
|
|
|
|
|
- Update to 9.3
|
|
|
|
|
- Force legacy datestamp by default until rhbz#1715412 is resolved
|
|
|
|
|
|
|
|
|
|
* Mon Oct 05 2020 Neal Gompa <ngompa13@gmail.com> - 9.2-1
|
|
|
|
|
- Update to 9.2
|
|
|
|
|
|
|
|
|
|
* Thu Aug 20 2020 Neal Gompa <ngompa13@gmail.com> - 9.1-1
|
|
|
|
|
- Update to 9.1
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 16 2020 Neal Gompa <ngompa13@gmail.com> - 9.0-2
|
|
|
|
|
- Backport fix for python spec template
|
|
|
|
|
|
|
|
|
|
* Tue Jul 14 2020 Neal Gompa <ngompa13@gmail.com> - 9.0-1
|
|
|
|
|
- Update to 9.0
|
|
|
|
|
|
|
|
|
|
* Wed Mar 25 2020 Jitka Plesnikova <jplesnik@redhat.com> - 8.10-11
|
|
|
|
|
- Add perl dependencies needed for build
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
* Mon Jun 29 2020 Michal Domonkos <mdomonko@redhat.com> - 8.10-8
|
|
|
|
|
- spectool: ignore query string in URL (RHBZ#1826299)
|
|
|
|
|
- Fix TypeError in rpmdev-rmdevelrpms and rpmdev-checksig (RHBZ#1851499)
|
|
|
|
|
|
|
|
|
|
* Wed Nov 28 2018 Neal Gompa <ngompa13@gmail.com> - 8.10-7
|
|
|
|
|
- Fix regex substitution issues with Python 3.7 (rhbz#1651954)
|
|
|
|
|
* Mon Aug 13 2018 Thomas Woerner <twoerner@redhat.com> - 8.10-7
|
|
|
|
|
- removed fakeroot requirement and all qa_robot scripts (RHBZ#1615605)
|
|
|
|
|
- Fixed missing build requires for python3-devel
|
|
|
|
|
|
|
|
|
|
* Sun Sep 16 2018 Neal Gompa <ngompa13@gmail.com> - 8.10-6
|
|
|
|
|
- Fix regex related deprecation warnings (rhbz#1598089)
|
|
|
|
|
* Wed Aug 01 2018 Charalampos Stratakis <cstratak@redhat.com> - 8.10-6
|
|
|
|
|
- Rebuild for platform-python
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Tue May 15 2018 Charalampos Stratakis <cstratak@redhat.com> - 8.10-5
|
|
|
|
|
- Update some dependency naming declarations
|
|
|
|
|
- Build for Python 3 on EL > 7
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|