Blob Blame History Raw
# This package depends on automagic byte compilation
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
%global _python_bytecompile_extra 1

Name:           qtools
Version:        0.4.0
Release:        2%{?dist}
Summary:        Command-line tools for AMQP
License:        ASL 2.0
URL:            https://github.com/ssorj/qtools/releases/tag/%{version}
Source:         qtools-%{version}.tar.gz
BuildArch:      noarch
Requires:       python2
Requires:       python2-qpid-proton
BuildRequires:  make
BuildRequires:  findutils
BuildRequires:  python3
BuildRequires:  python2
BuildRequires:  python2-qpid-proton

%description
Simple command-line tools for sending and receiving AMQP messages

%prep
%setup -qn %{name}-%{version}

%build
sed -i 's/!\/usr\/bin\/env python/!\/usr\/bin\/env python3/' scripts/configure-file
sed -i 's/!\/usr\/bin\/env python/!\/usr\/bin\/env python3/' scripts/install-files
make build PREFIX=/usr %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} PREFIX=/usr %{?_smp_mflags}

%files
%license LICENSE.txt
%doc README.md
%{_datarootdir}/qtools
%{_bindir}/*

%changelog
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Tue Jan  8 2019 Irina Boverman <iboverma@redhat.com> - 0.4.0-1
- Rebased to 0.4.0

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.0-3
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Nov 29 2017 Irina Boverman <iboverma@redhat.com> - 0.3.0-1
- Initial build