This repo contains software to build linux from scratch and package it into rpm files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

46 lines
1.7 KiB

  1. #TARBALL: https://github.com/libcheck/check/releases/download/0.14.0/check-0.14.0.tar.gz
  2. #MD5SUM: 270e82a445be6026040267a5e11cc94b;SOURCES/check-0.14.0.tar.gz
  3. #-----------------------------------------------------------------------------
  4. Summary: Check is a unit testing framework for C.
  5. Name: check
  6. Version: 0.14.0
  7. Release: 1
  8. License: GPLv2
  9. URL: Any
  10. Group: LFS/Base
  11. Source: https://github.com/libcheck/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
  12. Requires: filesystem
  13. %description
  14. Check is a unit testing framework for C.
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. %build
  19. ./configure \
  20. --prefix=%{_prefix}
  21. make %{?_smp_mflags}
  22. %install
  23. make DESTDIR=%{buildroot} install
  24. sed -i '1 s/tools/usr/' ${RPM_BUILD_ROOT}/usr/bin/checkmk
  25. #-----------------------------------------------------------------------------
  26. # Copy license/copying file
  27. install -D -m644 COPYING.LESSER %{buildroot}/usr/share/licenses/%{name}/LICENSE
  28. #-----------------------------------------------------------------------------
  29. # Create file list
  30. rm %{buildroot}%{_infodir}/dir
  31. find %{buildroot} -name '*.la' -delete
  32. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  33. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  34. sed -i '/man\/man/d' filelist.list
  35. sed -i '/\/usr\/share\/info/d' filelist.list
  36. #-----------------------------------------------------------------------------
  37. %files -f filelist.list
  38. %defattr(-,root,root)
  39. %{_infodir}/*
  40. %{_mandir}/man1/*
  41. #-----------------------------------------------------------------------------
  42. %changelog
  43. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 0.14.0-1
  44. * Sat Jul 28 2018 baho-utot <baho-utot@columbus.rr.com> 0.12.0-1
  45. - Initial build. First version