checkmedia/checkmedia.spec

85 lines
2.2 KiB
RPMSpec

#
# spec file for package checkmedia
#
# Copyright (c) 2018 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/
#
%define libversion 4
Name: checkmedia
Summary: Check SUSE installation media
License: GPL-3.0-or-later
Group: System/Management
Version: 4.0
Release: 0
Url: https://github.com/openSUSE/checkmedia
Source: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Check SUSE installation media for errors.
%package -n libmediacheck%{libversion}
Summary: Library for checking SUSE installation media
Group: System/Libraries
PreReq: /sbin/ldconfig
%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 DESTDIR=%{buildroot}
%post -n libmediacheck4 -p /sbin/ldconfig
%postun -n libmediacheck4 -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
%doc COPYING
%files -n libmediacheck-devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_includedir}/mediacheck.h
%changelog