Accepting request 433083 from devel:languages:python3
OBS-URL: https://build.opensuse.org/request/show/433083 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffoscope?expand=0&rev=1
This commit is contained in:
commit
8d0dc838a7
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
diffoscope-54.tar.gz
Normal file
3
diffoscope-54.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f62020c4b21eb6295a334c1816f5763f329b0fae88e4fd30ad8352f6b93764b7
|
||||||
|
size 387267
|
113
diffoscope.changes
Normal file
113
diffoscope.changes
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 23 12:39:50 UTC 2016 - sleep_walker@opensuse.org
|
||||||
|
|
||||||
|
- update to 54:
|
||||||
|
* In the directory comparator, fall back to current directory instead of
|
||||||
|
empty name. (Closes: #820624)
|
||||||
|
* Improve deb(5) support. (Closes: #818414)
|
||||||
|
* debian/control: add myself to Uploaders.
|
||||||
|
* Clean up temporary debuglink files.
|
||||||
|
* Fix FileNotFoundError with broken symlinks. (Closes: #818856)
|
||||||
|
* Decode Md5sumsFile in utf-8. (Closes: #823874)
|
||||||
|
* Always suffix temporary files with '_diffoscope'.
|
||||||
|
* Rewrite sanity check for the version to always run every time debian/rules
|
||||||
|
is invoked, not only during a binary build.
|
||||||
|
* Add FreeBSD packages for required tools.
|
||||||
|
* Add README.rst to MANIFEST.in.
|
||||||
|
* debian/gbp.conf: add a conf to have gbp tag the releases how we like them.
|
||||||
|
* Drop transitional debbindiff package.
|
||||||
|
* debian/control: Drop XS-Prefix from Testsuite: field, thanks lintian.
|
||||||
|
* Mention --max-report-size only once in the manpage. (Closes: #819956)
|
||||||
|
* Fix typo in documentation.
|
||||||
|
* Bump Standards-Version to 3.9.8, no changes required.
|
||||||
|
* Let objdump demangle symbols for better readability.
|
||||||
|
* Install bin/diffoscope instead of auto-generated script. (Closes: #821777)
|
||||||
|
* Team upload.
|
||||||
|
* Re-upload, the last uploaded tarball was broken, missing test files.
|
||||||
|
* Remove myself from uploaders
|
||||||
|
* Show line ordering variation in deb md5sums
|
||||||
|
* Reset mtimes of test directories and ignore ctimes (Closes: #815171)
|
||||||
|
* Add comparator for Postscript files
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 8 07:16:40 UTC 2016 - arun@gmx.de
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* updated source url to files.pythonhosted.org
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 10 16:09:58 UTC 2016 - arun@gmx.de
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* fix update alternative (use %{py3_ver}, touch sysconfig dir)
|
||||||
|
|
||||||
|
- update to version 51:
|
||||||
|
* Team upload.
|
||||||
|
* Re-upload, the last uploaded tarball was broken, missing test
|
||||||
|
files.
|
||||||
|
|
||||||
|
- changes from version 50:
|
||||||
|
* Remove myself from uploaders (Jérémy Bobbio)
|
||||||
|
* Show line ordering variation in deb md5sums
|
||||||
|
* Reset mtimes of test directories and ignore ctimes (Closes:
|
||||||
|
#815171)
|
||||||
|
* Add comparator for Postscript files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 13 08:47:51 UTC 2016 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
- We require python3-setuptools at runtime to work
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 18 04:51:10 UTC 2016 - arun@gmx.de
|
||||||
|
|
||||||
|
- update to version 49:
|
||||||
|
* Don't crash when we can't find the debug file in a matching debug
|
||||||
|
package. This repairs diffoscope for xserver-xorg and other
|
||||||
|
packages.
|
||||||
|
* Use libarchive to read metadata from ar archives. The output is
|
||||||
|
more precise and less dependent on binutils version. The command
|
||||||
|
line `ar` tool is not used any more so remove it from the required
|
||||||
|
tools.
|
||||||
|
* Split readelf --debug-dump output when examining ELF files. Based
|
||||||
|
on a patch by Dhole.
|
||||||
|
* Keep both .debug_str and .zdebug_str as ElfSection. Thanks to
|
||||||
|
Niels Thykier for noticing the problem.
|
||||||
|
* Fix a logic error in _install_debug_symbols. Thanks anthraxx for
|
||||||
|
the report and the fix.
|
||||||
|
* Use recursive containers for directory and only look at files with
|
||||||
|
ending in .deb when looking for Build IDs. Both avoid looking at
|
||||||
|
too many files when searching for matching debug packages. Thanks
|
||||||
|
Helmut Grohne and Steven Chamberlain for the reports and
|
||||||
|
tests. (Closes: #813052)
|
||||||
|
* Add support for ICC profiles. This adds a Recommends on colord in
|
||||||
|
Debian.
|
||||||
|
* Harmonize spaces and commas in package list.
|
||||||
|
* Update PPU files test data for FPC 3.0.0.
|
||||||
|
* Update exepcted javap output for OpenJDK 1.8.
|
||||||
|
* Stop specializing files from directories earlier than necessary.
|
||||||
|
* Adding cd-iccdump package reference for Arch Linux.
|
||||||
|
* Use HTTPS in Vcs-Git.
|
||||||
|
* Bump standards version to 3.9.7, no changes needed.
|
||||||
|
* Use /git/ instead /cgit/ in Vcs-Browser.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 2 10:23:46 UTC 2016 - sleep_walker@opensuse.org
|
||||||
|
|
||||||
|
- clean with spec-cleaner
|
||||||
|
- change Recommends: to Suggests:
|
||||||
|
- use update-alternatives mechanism for binary not to conflict with
|
||||||
|
python2 variant of the package when there is one
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 31 16:15:19 UTC 2016 - sleep_walker@opensuse.org
|
||||||
|
|
||||||
|
- add recommendations for tools which allows to interpret content
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 31 10:22:18 UTC 2016 - sleep_walker@opensuse.org
|
||||||
|
|
||||||
|
- let there be diffoscope for openSUSE!
|
||||||
|
|
134
diffoscope.spec
Normal file
134
diffoscope.spec
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
#
|
||||||
|
# spec file for package diffoscope
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: diffoscope
|
||||||
|
Version: 54
|
||||||
|
Release: 0
|
||||||
|
Summary: In-depth comparison of files, archives, and directories
|
||||||
|
License: GPL-3.0+
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Url: https://diffoscope.org/
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/d/diffoscope/diffoscope-%{version}.tar.gz
|
||||||
|
BuildRequires: python3-libarchive-c
|
||||||
|
BuildRequires: python3-nose
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-python-magic
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
Requires: python3-libarchive-c
|
||||||
|
Requires: python3-python-magic
|
||||||
|
Requires: python3-setuptools
|
||||||
|
# Tools required for proper function of this program
|
||||||
|
# for getfacl
|
||||||
|
Suggests: acl
|
||||||
|
# for ar, readelf, objcopy and objdump
|
||||||
|
Suggests: binutils
|
||||||
|
Suggests: bzip2
|
||||||
|
# for img2txt
|
||||||
|
Suggests: caca-utils
|
||||||
|
# for isoinfo
|
||||||
|
Suggests: cdrkit-cdrtools-compat
|
||||||
|
# for cbfstool
|
||||||
|
Suggests: coreboot-utils
|
||||||
|
# for stat
|
||||||
|
Suggests: coreutils
|
||||||
|
Suggests: cpio
|
||||||
|
# for cmp and diff
|
||||||
|
Suggests: diffutils
|
||||||
|
# for lsattr
|
||||||
|
Suggests: e2fsprogs
|
||||||
|
# for ppudump
|
||||||
|
Suggests: fpc
|
||||||
|
# for msgunfmt
|
||||||
|
Suggests: gettext-tools
|
||||||
|
# for ghc
|
||||||
|
Suggests: ghc-compiler
|
||||||
|
Suggests: gzip
|
||||||
|
# for pedump
|
||||||
|
Suggests: mono-devel
|
||||||
|
Suggests: pdftk
|
||||||
|
# for pdftotext
|
||||||
|
Suggests: poppler-tools
|
||||||
|
# for RPM unpacking
|
||||||
|
Suggests: python3-rpm
|
||||||
|
Suggests: sqlite3
|
||||||
|
# for unsquashfs
|
||||||
|
Suggests: squashfs
|
||||||
|
# for zipinfo
|
||||||
|
Suggests: unzip
|
||||||
|
# for xxd
|
||||||
|
Suggests: vim
|
||||||
|
Suggests: xz
|
||||||
|
# currently missing:
|
||||||
|
# enjarify, javap, lipo, otool, showttf, sng
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
|
||||||
|
%description
|
||||||
|
diffoscope will try to get to the bottom of what makes files or
|
||||||
|
directories different. It will recursively unpack archives of many kinds
|
||||||
|
and transform various binary formats into more human readable form to
|
||||||
|
compare them. It can compare two tarballs, ISO images, or PDF just as
|
||||||
|
easily.
|
||||||
|
|
||||||
|
It can be scripted through error codes, and a report can be produced
|
||||||
|
with the detected differences. The report can be text or HTML.
|
||||||
|
When no type of report has been selected, diffoscope defaults
|
||||||
|
to write a text report on the standard output.
|
||||||
|
|
||||||
|
diffoscope is developed as part of the `“reproducible builds” Debian
|
||||||
|
project <https://wiki.debian.org/ReproducibleBuilds>`_.
|
||||||
|
It is meant to be able to quickly understand why two builds of the same
|
||||||
|
package produce different outputs. diffoscope was previously named
|
||||||
|
debbindiff.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
python3 setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
mv %{buildroot}%{_bindir}/diffoscope %{buildroot}%{_bindir}/diffoscope-%{py3_ver}
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
ln -s -f %{_sysconfdir}/alternatives/diffoscope %{buildroot}%{_bindir}/diffoscope
|
||||||
|
touch %{buildroot}%{_sysconfdir}/alternatives/diffoscope
|
||||||
|
|
||||||
|
%post
|
||||||
|
%_sbindir/update-alternatives --install \
|
||||||
|
%{_bindir}/diffoscope diffoscope %{_bindir}/diffoscope-%{py3_ver} 10
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ "$1" = 0 ] ; then
|
||||||
|
%_sbindir/update-alternatives --remove diffoscope %{_bindir}/diffoscope-%{py3_ver}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# FIXME: tests are failing yet I don't think that problem is on our side
|
||||||
|
#%%check
|
||||||
|
#nosetests
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING README.rst
|
||||||
|
%{_bindir}/diffoscope
|
||||||
|
%{_bindir}/diffoscope-%{py3_ver}
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
%ghost %{_sysconfdir}/alternatives/diffoscope
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user