diff --git a/checkmedia-4.0.tar.xz b/checkmedia-4.0.tar.xz index 3074ea4..89c76e4 100644 --- a/checkmedia-4.0.tar.xz +++ b/checkmedia-4.0.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2f5f7866def55cfd078e5bc43016505ac0f5c921d5c04208aa2859f4a5c3d21e +oid sha256:07a2c329d145beb4f50787e190fb5fc30e88ac319e45e1b626479495c61629e6 size 45664 diff --git a/checkmedia.spec b/checkmedia.spec index f4ee55e..57b1f78 100644 --- a/checkmedia.spec +++ b/checkmedia.spec @@ -16,18 +16,36 @@ # +%define libversion 4 + Name: checkmedia -Summary: Check Installation Media -License: GPL-3.0+ +Summary: Check SUSE installation media +License: GPL-3.0-or-later Group: System/Management Version: 4.0 Release: 0 -Url: https://github.com/wfeldt/checkmedia.git +Url: https://github.com/openSUSE/checkmedia Source: %{name}-%{version}.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -Checks installation CDs and DVDs for errors. +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 @@ -35,15 +53,32 @@ Checks installation CDs and DVDs for errors. %build make %{?_smp_mflags} +%check +make test + %install - install -d -m 755 %{buildroot}/usr/bin - make install DESTDIR=%{buildroot} +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