Sync from SUSE:SLFO:Main checkmedia revision 60c622411eea6d2eccc885b0b2ba3e47

This commit is contained in:
Adrian Schröter 2024-05-03 11:34:40 +02:00
commit f7367368e3
4 changed files with 377 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

BIN
checkmedia-6.1.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

261
checkmedia.changes Normal file
View File

@ -0,0 +1,261 @@
-------------------------------------------------------------------
Tue Nov 9 13:24:34 UTC 2021 - Steffen Winterfeldt <snwint@suse.com>
- minor spec file adjustments
--------------------------------------------------------------------
Fri Oct 8 15:15:57 UTC 2021 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#16
- fix auto-detecting a suitable signature location for rh media
(jsc#SCL-6)
- 6.1
--------------------------------------------------------------------
Fri Oct 1 13:37:18 UTC 2021 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#15
- add --version option to tagmedia
- use volume id if app id is missing for nice output
- add support for rh style meta data and digest calculation
- extend fragment calculation to suse style
- show signee if signature is ok
- add --create-signature option
- fix large file support
- updated unit tests
- enhance documentation
- add new and shiny README.adoc
- 6.0
--------------------------------------------------------------------
Wed Apr 15 09:04:13 UTC 2020 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#14
- work better with broken media (bsc#1169420)
- 5.4
--------------------------------------------------------------------
Mon Jul 29 10:56:46 UTC 2019 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#13
- mediacheck.md: fix typos
- 5.3
--------------------------------------------------------------------
Wed Jul 17 11:46:06 UTC 2019 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#12
- fix compat issue with older gcc
- 5.2
--------------------------------------------------------------------
Wed Jul 17 10:03:51 UTC 2019 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#11
- work also with older gpg versions
- 5.1
-------------------------------------------------------------------
Wed Jul 17 08:29:09 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Use noun phrase in summaries.
- Drop redundant ldconfig PreReq.
--------------------------------------------------------------------
Tue Jul 16 14:43:12 UTC 2019 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#10
- add support for signed media (bsc#1139561)
- adjust tagmedia script
- update doc
- adjust test cases
- add links to signature magic value origins
- allow to set specific gpg key for signature verification
- rearrange data structure to provide some compatibility
- check for empty signature
- better error log
- added tests for signature verification
- signature test results reference
- 5.0
--------------------------------------------------------------------
Wed Nov 28 15:35:46 UTC 2018 - snwint@suse.de
- merge gh#openSUSE/checkmedia#8
- fix digest calculation in tagmedia (bsc#1117499)
- added testcases
- adjust function descriptions
- 4.1
--------------------------------------------------------------------
Fri Jun 29 10:55:47 UTC 2018 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#6
- change tagmedia to also store checksum over partition
(bsc#1000947)
- update Makefile
- update documentation
- rewrite checkmedia to use new mediacheck library
- digestdemo: add simple demo tool for libmediacheck usage
- mediacheck library header file
- mediacheck library code
- add test tool for mediachecks
- test data
- enhance code
- fix typo in tagmedia
- 4.0
--------------------------------------------------------------------
Thu Apr 26 14:44:26 UTC 2018 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#5
- improve documentation
- fix Makefile
- update git2log script
- add simple usage examples
- 3.8
--------------------------------------------------------------------
Fri Dec 1 12:07:37 UTC 2017 - wfeldt@opensuse.org
- merge gh#openSUSE/checkmedia#4
- determine image size correctly (bsc#1070745)
- more comments
- 3.7
--------------------------------------------------------------------
Tue Sep 12 12:47:20 UTC 2017 - bwiedemann@suse.de
- merge gh#openSUSE/checkmedia#3
- sort input files (boo#1041090)
- 3.6
-------------------------------------------------------------------
Tue Sep 29 09:20:18 UTC 2015 - snwint@suse.com
- Add information about openSUSE development
- Convert README to Markdown
- 3.5
-------------------------------------------------------------------
Tue Jan 27 10:36:11 CET 2015 - snwint@suse.com
- updated git2log script
- 3.4
-------------------------------------------------------------------
Tue Oct 14 17:03:58 CEST 2014 - snwint_jenkins@suse.com
- added 'archive' Makefile target
- update git2log
- 3.3
-------------------------------------------------------------------
Wed Apr 30 08:28:53 CEST 2014 - snwint@suse.de
- ignore padding area when calculating checksum (bnc#804160)
- 3.2
-------------------------------------------------------------------
Tue Nov 5 13:57:01 CET 2013 - snwint@suse.de
- added github url to spec
-------------------------------------------------------------------
Thu Oct 31 15:28:26 UTC 2013 - dvaleev@suse.com
- make sure WORDS_BIGENDIAN is defined correctly where needed
-------------------------------------------------------------------
Wed Jan 25 11:13:55 CET 2012 - snwint@suse.de
- support more digests: md5, sha1, sha224, sha256, sha384, sha512
- changed license to gpl3
- new major version
-------------------------------------------------------------------
Sat Sep 17 22:51:40 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
- Use %_smp_mflags for parallel build
-------------------------------------------------------------------
Wed Jul 13 13:40:03 CEST 2011 - snwint@suse.de
- change isohybrid md5 calculation to report 'real' md5 sum (bnc#678739)
-------------------------------------------------------------------
Tue Oct 12 12:05:28 CEST 2010 - snwint@suse.de
- don't check the first 512 bytes to avoid problems with isohybrid
-------------------------------------------------------------------
Tue Aug 25 14:56:10 CEST 2009 - snwint@suse.de
- fixed tagmedia to use iso size from header
-------------------------------------------------------------------
Mon Oct 6 17:05:51 CEST 2008 - snwint@suse.de
- report isos > 1GB as DVD (bnc#424323)
-------------------------------------------------------------------
Tue Jun 6 18:29:39 CEST 2006 - snwint@suse.de
- add largefile support (#178812)
-------------------------------------------------------------------
Tue May 2 11:22:50 CEST 2006 - snwint@suse.de
- perl's getopt is more picky now (#170322)
-------------------------------------------------------------------
Tue Mar 14 11:22:08 CET 2006 - snwint@suse.de
- align md5sum buffers (#157711)
-------------------------------------------------------------------
Wed Jan 25 21:34:57 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Dec 16 12:55:06 CET 2005 - snwint@suse.de
- support RH CDs
-------------------------------------------------------------------
Mon Sep 12 14:52:32 CEST 2005 - snwint@suse.de
- big endian check was not active in md5.c (#116407)
-------------------------------------------------------------------
Wed Aug 17 14:37:05 CEST 2005 - snwint@suse.de
- take padding into account
-------------------------------------------------------------------
Wed Aug 10 16:37:43 CEST 2005 - snwint@suse.de
- tell test result in exit code (#102312)
-------------------------------------------------------------------
Fri Jul 22 15:20:19 CEST 2005 - snwint@suse.de
- hopefully better DVD check (#74391)
-------------------------------------------------------------------
Thu Feb 10 15:15:48 CET 2005 - snwint@suse.de
- added tagmedia script
-------------------------------------------------------------------
Thu Jan 27 17:03:43 CET 2005 - snwint@suse.de
- indicate progress
-------------------------------------------------------------------
Mon Jan 24 17:37:40 CET 2005 - snwint@suse.de
- created package

90
checkmedia.spec Normal file
View File

@ -0,0 +1,90 @@
#
# spec file for package checkmedia
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: checkmedia
Summary: Check SUSE installation media
License: GPL-3.0-or-later
Group: System/Management
Version: 6.1
Release: 0
URL: https://github.com/openSUSE/checkmedia
Source: %{name}-%{version}.tar.xz
BuildRequires: gpg
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The program checks SUSE installation media for errors.
%define libversion %(echo %version | cut -d. -f1)
%package -n libmediacheck%{libversion}
Summary: Library for checking SUSE installation media
Group: System/Libraries
Requires: gpg
%description -n libmediacheck%{libversion}
Library for checking SUSE installation media. Used by checkmedia and linuxrc.
%package -n libmediacheck-devel
Summary: Library for checking SUSE installation media
Group: Development/Libraries/C and C++
Requires: libmediacheck%{libversion} = %version
%description -n libmediacheck-devel
Library for checking SUSE installation media. Used by checkmedia and linuxrc.
%prep
%setup
%build
make %{?_smp_mflags}
%check
make test
%install
install -d -m 755 %{buildroot}/usr/bin
%make_install
%post -n libmediacheck%{libversion} -p /sbin/ldconfig
%postun -n libmediacheck%{libversion} -p /sbin/ldconfig
%files
%defattr(-,root,root)
/usr/bin/checkmedia
/usr/bin/tagmedia
%files -n libmediacheck%{libversion}
%defattr(-,root,root)
%{_libdir}/*.so.*
%doc README.adoc
%doc mediacheck.md
%if 0%{?suse_version} >= 1500
%license COPYING
%else
%doc COPYING
%endif
%files -n libmediacheck-devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_includedir}/mediacheck.h
%changelog