CUnit-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. %global tarver 2.1-3
  2. %define pkg_name CUnit
  3. %define pkg_version 2.1.3
  4. %define pkg_release 1%{?_dist_release}
  5. Summary: Unit testing framework for C
  6. Name: %{pkg_name}
  7. Version: %{pkg_version}
  8. Release: %{pkg_release}
  9. License: LGPLv2+
  10. Group: System Environment/Libraries
  11. URL: http://cunit.sourceforge.net/
  12. Source0: http://downloads.sourceforge.net/cunit/%{name}-%{tarver}.tar.bz2
  13. %description
  14. CUnit is a lightweight system for writing, administering,
  15. and running unit tests in C. It provides C programmers a basic
  16. testing functionality with a flexible variety of user interfaces.
  17. %package devel
  18. Summary: Header files and libraries for CUnit development
  19. Requires: %{name} = %{version}-%{release}
  20. %description devel
  21. The %{name}-devel package contains the header files
  22. and libraries for use with CUnit package.
  23. %prep
  24. %setup -q -n %{name}-%{tarver}
  25. find -name *.c -exec chmod -x {} \;
  26. %build
  27. autoreconf -f -i
  28. %configure --disable-static
  29. %{__make} %{?_smp_mflags}
  30. %install
  31. %{makeinstall}
  32. %{__rm} -f `find %{buildroot} -name *.la`
  33. # work around bad docdir= in doc/Makefile*
  34. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
  35. %{__mv} ${RPM_BUILD_ROOT}%{_prefix}/doc/%{name} \
  36. ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/html
  37. # add some doc files into the buildroot manually (#1001276)
  38. for f in AUTHORS ChangeLog COPYING NEWS README TODO VERSION ; do
  39. %{__install} -p -m0644 -D $f \
  40. ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${f}
  41. done
  42. %clean
  43. %{__rm} -rf ${RPM_BUILD_ROOT}
  44. %post -p %{_syssbindir}/ldconfig
  45. %postun -p %{_syssbindir}/ldconfig
  46. %files
  47. %{_datadir}/%{name}/
  48. %{_libdir}/libcunit.so.*
  49. %dir %{_docdir}/%{name}-%{version}
  50. %{_docdir}/%{name}-%{version}/AUTHORS
  51. %{_docdir}/%{name}-%{version}/ChangeLog
  52. %{_docdir}/%{name}-%{version}/COPYING
  53. %{_docdir}/%{name}-%{version}/NEWS
  54. %{_docdir}/%{name}-%{version}/README
  55. %{_docdir}/%{name}-%{version}/TODO
  56. %{_docdir}/%{name}-%{version}/VERSION
  57. %files devel
  58. %{_docdir}/%{name}-%{version}/html/
  59. %{_includedir}/%{name}/
  60. %{_libdir}/libcunit.so
  61. %{_libdir}/pkgconfig/cunit.pc
  62. %{_mandir}/man3/CUnit.3*
  63. %changelog
  64. * Tue Mar 12 2019 Toshiaki Ara <ara_t@384.jp> 2.1.3-1
  65. - first release for Vine Linux