2007-01-16 00:06:55 +01:00
|
|
|
#
|
2011-07-13 16:08:03 +02:00
|
|
|
# spec file for package checkmedia
|
2007-01-16 00:06:55 +01:00
|
|
|
#
|
2024-03-05 18:40:35 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-16 00:06:55 +01:00
|
|
|
#
|
2008-10-06 18:45:28 +02:00
|
|
|
# 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.
|
|
|
|
|
2021-11-12 15:20:39 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:06:55 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: checkmedia
|
2023-06-02 12:57:51 +02:00
|
|
|
Summary: Check installation or Live media
|
2018-06-29 14:18:35 +02:00
|
|
|
License: GPL-3.0-or-later
|
2007-01-16 00:06:55 +01:00
|
|
|
Group: System/Management
|
2023-06-02 12:57:51 +02:00
|
|
|
Version: 6.2
|
2013-11-05 13:53:26 +01:00
|
|
|
Release: 0
|
2021-11-12 15:20:39 +01:00
|
|
|
URL: https://github.com/openSUSE/checkmedia
|
2014-04-30 08:29:25 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2019-07-17 10:31:34 +02:00
|
|
|
BuildRequires: gpg
|
2019-07-17 12:22:45 +02:00
|
|
|
BuildRequires: xz
|
2023-06-02 12:57:51 +02:00
|
|
|
BuildRequires: rubygem(asciidoctor)
|
2007-01-16 00:06:55 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2023-06-02 12:57:51 +02:00
|
|
|
The program checks installation or Live media for errors.
|
2019-07-17 10:31:34 +02:00
|
|
|
|
|
|
|
%define libversion %(echo %version | cut -d. -f1)
|
2018-06-29 14:18:35 +02:00
|
|
|
|
|
|
|
%package -n libmediacheck%{libversion}
|
2023-06-02 12:57:51 +02:00
|
|
|
Summary: Library for checking installation or Live media
|
2018-06-29 14:18:35 +02:00
|
|
|
Group: System/Libraries
|
2019-07-17 10:31:34 +02:00
|
|
|
Requires: gpg
|
2018-06-29 14:18:35 +02:00
|
|
|
|
|
|
|
%description -n libmediacheck%{libversion}
|
2023-06-02 12:57:51 +02:00
|
|
|
Library for checking installation or Live media. Used by checkmedia and linuxrc.
|
2018-06-29 14:18:35 +02:00
|
|
|
|
|
|
|
%package -n libmediacheck-devel
|
2023-06-02 12:57:51 +02:00
|
|
|
Summary: Library for checking installation or Live media
|
2018-06-29 14:18:35 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libmediacheck%{libversion} = %version
|
|
|
|
|
|
|
|
%description -n libmediacheck-devel
|
2023-06-02 12:57:51 +02:00
|
|
|
Library for checking installation or Live media. Used by checkmedia and linuxrc.
|
2007-01-16 00:06:55 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
2011-09-19 21:06:18 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:06:55 +01:00
|
|
|
|
2018-06-29 14:18:35 +02:00
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
2007-01-16 00:06:55 +01:00
|
|
|
%install
|
2018-06-29 14:18:35 +02:00
|
|
|
install -d -m 755 %{buildroot}/usr/bin
|
2019-07-17 10:31:34 +02:00
|
|
|
%make_install
|
2023-06-02 12:57:51 +02:00
|
|
|
make doc
|
|
|
|
install -D -m 644 checkmedia.1 %{buildroot}%{_mandir}/man1/checkmedia.1
|
|
|
|
install -D -m 644 tagmedia.1 %{buildroot}%{_mandir}/man1/tagmedia.1
|
2018-06-29 14:18:35 +02:00
|
|
|
|
2019-07-17 10:31:34 +02:00
|
|
|
%post -n libmediacheck%{libversion} -p /sbin/ldconfig
|
2018-06-29 14:18:35 +02:00
|
|
|
|
2019-07-17 10:31:34 +02:00
|
|
|
%postun -n libmediacheck%{libversion} -p /sbin/ldconfig
|
2007-01-16 00:06:55 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/checkmedia
|
|
|
|
/usr/bin/tagmedia
|
2023-06-02 12:57:51 +02:00
|
|
|
%doc %{_mandir}/man1/checkmedia.*
|
|
|
|
%doc %{_mandir}/man1/tagmedia.*
|
2018-06-29 14:18:35 +02:00
|
|
|
|
|
|
|
%files -n libmediacheck%{libversion}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so.*
|
2023-06-02 12:57:51 +02:00
|
|
|
%doc README.*
|
2018-06-29 14:18:35 +02:00
|
|
|
%doc mediacheck.md
|
2021-11-08 16:56:44 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2019-07-17 13:14:57 +02:00
|
|
|
%license COPYING
|
2019-07-17 13:39:40 +02:00
|
|
|
%else
|
|
|
|
%doc COPYING
|
2019-07-17 13:14:57 +02:00
|
|
|
%endif
|
2007-01-16 00:06:55 +01:00
|
|
|
|
2018-06-29 14:18:35 +02:00
|
|
|
%files -n libmediacheck-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_includedir}/mediacheck.h
|
|
|
|
|
2008-10-06 18:45:28 +02:00
|
|
|
%changelog
|