da6654ac9c
OBS-URL: https://build.opensuse.org/package/show/system:install:head/checkmedia?expand=0&rev=50
86 lines
2.3 KiB
RPMSpec
86 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package checkmedia
|
|
#
|
|
# Copyright (c) 2019 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: checkmedia
|
|
Summary: Check SUSE installation media
|
|
License: GPL-3.0-or-later
|
|
Group: System/Management
|
|
Version: 5.1
|
|
Release: 0
|
|
Url: https://github.com/openSUSE/checkmedia
|
|
Source: %{name}-%{version}.tar.xz
|
|
BuildRequires: gpg
|
|
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.md
|
|
%doc mediacheck.md
|
|
%license COPYING
|
|
|
|
%files -n libmediacheck-devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/*.so
|
|
%{_includedir}/mediacheck.h
|
|
|
|
%changelog
|