libmodbus.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Summary: A Modbus library in C, which supports RTU communication over a serial line or a TCP link.
  2. Name: libmodbus
  3. Version: 2.0.0
  4. Release: 1
  5. License: LGPL V3+
  6. Packager: Some random Internet user
  7. URL: https://launchpad.net/libmodbus/
  8. Group: Applications/System
  9. Provides: libmodbus=2.0.0
  10. Requires: ,/bin/sh
  11. Source0: libmodbus-2.0.0.tar.bz2
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  13. BuildRequires: autoconf, automake
  14. %description
  15. A Modbus library for Linux (and OSX) wrote in C and which supports
  16. RTU communication over a serial line or a TCP link. Clean and fast!
  17. Supports controling an RTU and being an RTU.
  18. %prep
  19. %setup -q
  20. autoreconf
  21. %build
  22. %configure
  23. make
  24. %install
  25. rm -rf $RPM_BUILD_ROOT
  26. mkdir -p -m755 $RPM_BUILD_ROOT/
  27. make install DESTDIR=$RPM_BUILD_ROOT
  28. mkdir -p -m755 $RPM_BUILD_ROOT/usr/share/libmodbus/
  29. ls -lRh $RPM_BUILD_ROOT/
  30. %clean
  31. rm -rf $RPM_BUILD_ROOT
  32. %files
  33. %defattr(-,root,root)
  34. %attr(0755,root,root) %dir %{_libdir}
  35. %attr(0755,root,root) %dir %{_libdir}/pkgconfig
  36. %attr(0755,root,root) %dir %{_includedir}
  37. %attr(0755,root,root) %dir %{_includedir}/modbus/
  38. %dir %{_libdir}/libmodbus.so.2
  39. %dir %{_libdir}/libmodbus.so
  40. %attr(0755,root,root) %{_libdir}/libmodbus.so.2.0.0
  41. %attr(0755,root,root) %{_libdir}/libmodbus.la
  42. %attr(0644,root,root) %{_libdir}/pkgconfig/modbus.pc
  43. %attr(0644,root,root) %{_includedir}/modbus/modbus.h
  44. %doc AUTHORS ChangeLog INSTALL NEWS COPYING* README
  45. %changelog
  46. * Fri May 2 2008 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.0.0-1
  47. - integrate extern_for_cpp in upstream.
  48. - update the license to version LGPL v3.
  49. * Tue Apr 30 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.9.0-2
  50. - get the license corrected in the spec file.
  51. - add a URL for where to find libmodbus.
  52. - tweak the summary and description.
  53. * Tue Apr 29 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.9.0-1
  54. - upgrade to latest upstream (pre-release)
  55. - port extern_for_cpp patch to 1.9.0
  56. * Tue Apr 29 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.2.4-2_tad
  57. - add a patch to allow compiling with c++ code.
  58. * Mon Apr 28 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.2.4-1_tad
  59. - build spec file.
  60. - include patch for controling error-treat.