Blame diffoscope.spec

438cff0
Name:          diffoscope
777236c
Version:       105
b559989
Release:       1%{?dist}
438cff0
Summary:       In-depth comparison of files, archives, and directories
438cff0
License:       GPLv3+
438cff0
URL:           https://diffoscope.org/
abcb2fd
#Source0:       https://files.pythonhosted.org/packages/source/d/diffoscope/diffoscope-%%{version}.tar.gz
abcb2fd
Source0:       https://salsa.debian.org/reproducible-builds/diffoscope/-/archive/%{version}/diffoscope-%{version}.tar.gz
438cff0
3379ae6
%global tools \
3379ae6
    acl \
3379ae6
    e2fsprogs \
3379ae6
    cpio \
3379ae6
    llvm, llvm-devel \
3379ae6
    binutils \
3379ae6
    diffutils \
3379ae6
    gzip \
3379ae6
    unzip \
3379ae6
    bzip2 \
3379ae6
    xz \
3379ae6
    tar \
81fd7d0
    sng >= 1.1.0-2 \
3379ae6
    openssh \
81fd7d0
    openssh-clients \
3379ae6
    sqlite \
3379ae6
    genisoimage \
3379ae6
    squashfs-tools \
3379ae6
    java-devel \
3379ae6
    /usr/bin/img2txt \
3379ae6
    /usr/bin/rpm2cpio \
3379ae6
    /usr/bin/msgunfmt \
3379ae6
    /usr/bin/ps2ascii \
3379ae6
    /usr/bin/qemu-img \
3379ae6
    /usr/bin/xxd \
3379ae6
    /usr/bin/ghc \
3379ae6
    /usr/bin/cd-iccdump \
3379ae6
    gnupg \
3379ae6
    findutils \
3379ae6
    file \
3379ae6
    ImageMagick \
9aae73a
    poppler-utils \
d925088
    python3-debian \
d4d9fbd
    enjarify
3379ae6
3379ae6
# missing:
3379ae6
# apktool
3379ae6
# js-beautify
3379ae6
3379ae6
%ifnarch ppc64 ppc64le
3379ae6
%global tools2 \
3379ae6
    coreboot-utils \
3379ae6
    mono-devel
3379ae6
%endif
3379ae6
3379ae6
%global toolz %(echo "%tools %?tools2" | grep . | tr '\\n' ', ')
3379ae6
438cff0
BuildArch:     noarch
438cff0
BuildRequires: python3-devel
438cff0
BuildRequires: python3-setuptools
438cff0
BuildRequires: python3-magic
438cff0
BuildRequires: python3-libguestfs
438cff0
BuildRequires: python3-libarchive-c
438cff0
BuildRequires: python3-docutils
58fe375
# for tests
58fe375
BuildRequires: python3-pytest
3379ae6
BuildRequires: %toolz
d925088
BuildRequires: help2man
58fe375
438cff0
Requires:      python3-magic
438cff0
Requires:      python3-tlsh
5bb023a
Requires:      python3-libarchive-c
3379ae6
Recommends:    %toolz
438cff0
438cff0
%description
438cff0
diffoscope will try to get to the bottom of what makes files or directories
438cff0
different. It will recursively unpack archives of many kinds and transform
438cff0
various binary formats into more human readable form to compare them. It can
438cff0
compare two tarballs, ISO images, or PDF just as easily. The differences can
438cff0
be shown in a text or HTML report.
438cff0
438cff0
diffoscope is developed as part of the "reproducible builds" Debian project and
438cff0
was formerly known as "debbindiff".
438cff0
438cff0
%prep
be966de
%autosetup -p1
753d1b4
sed -i '1{\@/usr/bin/env@d}' diffoscope/main.py
438cff0
cb3c5b4
sed -i s/python-magic/file-magic/ setup.py
cb3c5b4
438cff0
%build
438cff0
%py3_build
d925088
make -C doc
438cff0
438cff0
%install
438cff0
%py3_install
438cff0
echo %{buildroot}%{python3_sitelib}
d925088
install -Dm0644 -t %{buildroot}%{_mandir}/man1/ doc/diffoscope.1
438cff0
438cff0
%check
086a1a5
export LC_CTYPE=C.utf8
438cff0
export TZ=UTC
438cff0
export PYTHONPATH=build/lib/
b559989
# Test results are ignored because there's minor differences in
b559989
# formatting that break tests and the list of failing tests changes
b559989
# with every release. One day I should fix this properly.
b559989
%{__python3} -m pytest tests/ -vv || :
438cff0
438cff0
%files
3379ae6
%doc README.rst debian/changelog
438cff0
%license COPYING
438cff0
%{python3_sitelib}/diffoscope*
438cff0
%{_bindir}/diffoscope
438cff0
%doc %{_mandir}/man1/diffoscope.1*
438cff0
438cff0
%changelog
777236c
* Mon Nov 12 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 105-1
777236c
- Update to latest version
777236c
b559989
* Sat Sep 15 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 100-1
b559989
- Update to latest version
cb3c5b4
- Fix reference to file-magic (#1583331)
b559989
87d6406
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 98-2
87d6406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
87d6406
be966de
* Mon Jul  2 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 98-1
be966de
- Update to latest upstream version (declared python3.7 compat)
be966de
4e014e9
* Mon Jun 25 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 96-1
4e014e9
- Update to latest version
4e014e9
f02242d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 95-2
f02242d
- Rebuilt for Python 3.7
f02242d
e19c6cc
* Sun May 20 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 95-1
e19c6cc
- Update to latest version
e19c6cc
  (see https://salsa.debian.org/reproducible-builds/diffoscope/blob/516d5930f16867282d537c884e78213f9c4b8796/debian/changelog).
e19c6cc
5395ef3
* Fri Mar  2 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 91-1
5395ef3
- Update to latest version
5395ef3
65b88b1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 90-2
65b88b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
65b88b1
5395ef3
* Wed Jan 10 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 90-1
5395ef3
- Update to latest version
5395ef3
8775084
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 77-3
8775084
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8775084
d4d9fbd
* Fri Feb 24 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 77-2
d4d9fbd
- Pull in enjarify
d4d9fbd
9aae73a
* Mon Feb 13 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 77-1
9aae73a
- Update to latest version (fixes #1421770, CVE-2017-0359)
9aae73a
- Also pull in python-debian
9aae73a
3364eb8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 69-2
3364eb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3364eb8
3379ae6
* Thu Jan 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 69-1
3379ae6
- Update to latest version (upstream dropped trydiffoscope)
3379ae6
- Add more dependendencies, and pull them in as Recommends
3379ae6
adfe86d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 62-2
adfe86d
- Rebuild for Python 3.6
adfe86d
58fe375
* Tue Nov 15 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 62-1
58fe375
- Update to latest version
58fe375
5bb023a
* Mon Aug 15 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 59-1
5bb023a
- Update to latest version
5bb023a
- Require python-libarchive-c (#1367034)
5bb023a
753d1b4
* Mon Aug 15 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 58-1
753d1b4
- Update to latest version
753d1b4
51dad7d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 54-2
51dad7d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
51dad7d
c2e4bc2
* Fri Jun 10 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 54-1
c2e4bc2
- Update to latest version
c2e4bc2
438cff0
* Thu Mar 10 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 51-3
438cff0
- Change License to GPLv3+
438cff0
438cff0
* Thu Mar 10 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 51-2
438cff0
- Require python3-tlsh
438cff0
438cff0
* Wed Mar  9 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 51-1
438cff0
- Update to v 51
438cff0
- Add man page
438cff0
438cff0
* Tue Mar  8 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 48-1
438cff0
- Update to v 48, simplify packaging
438cff0
438cff0
* Sat Dec 05 2015 Dhiru Kholia <dhiru@openwall.com> - 42-1
438cff0
- Initial version