libmodbus.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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.3
  4. Release: 1
  5. License: LGPL V3+
  6. Packager: Stéphane Raimbault
  7. URL: https://launchpad.net/libmodbus/
  8. Group: Applications/System
  9. Provides: libmodbus=2.0.3
  10. Requires: ,/bin/sh
  11. Source0: libmodbus-2.0.3.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. %prep
  18. %setup -q
  19. autoreconf
  20. %build
  21. %configure
  22. make
  23. %install
  24. rm -rf $RPM_BUILD_ROOT
  25. mkdir -p -m755 $RPM_BUILD_ROOT/
  26. make install DESTDIR=$RPM_BUILD_ROOT
  27. mkdir -p -m755 $RPM_BUILD_ROOT/usr/share/libmodbus/
  28. ls -lRh $RPM_BUILD_ROOT/
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %files
  32. %defattr(-,root,root)
  33. %attr(0755,root,root) %dir %{_libdir}
  34. %attr(0755,root,root) %dir %{_libdir}/pkgconfig
  35. %attr(0755,root,root) %dir %{_includedir}
  36. %attr(0755,root,root) %dir %{_includedir}/modbus/
  37. %dir %{_libdir}/libmodbus.so.2
  38. %dir %{_libdir}/libmodbus.so
  39. %attr(0755,root,root) %{_libdir}/libmodbus.so.2.0.3
  40. %attr(0755,root,root) %{_libdir}/libmodbus.la
  41. %attr(0644,root,root) %{_libdir}/pkgconfig/libmodbus.pc
  42. %attr(0644,root,root) %{_includedir}/modbus/modbus.h
  43. %doc AUTHORS ChangeLog INSTALL NEWS COPYING* README
  44. %changelog
  45. * Sun Mar 22 2009 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.0.3-1
  46. - new upstream release
  47. * Sun Aug 10 2008 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.0.2-1
  48. - new upstream release
  49. * Fri Jul 2 2008 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.0.1-1
  50. - new upstream release
  51. * Fri May 2 2008 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.0.0-1
  52. - integrate extern_for_cpp in upstream.
  53. - update the license to version LGPL v3.
  54. * Tue Apr 30 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.9.0-2
  55. - get the license corrected in the spec file.
  56. - add a URL for where to find libmodbus.
  57. - tweak the summary and description.
  58. * Tue Apr 29 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.9.0-1
  59. - upgrade to latest upstream (pre-release)
  60. - port extern_for_cpp patch to 1.9.0
  61. * Tue Apr 29 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.2.4-2_tad
  62. - add a patch to allow compiling with c++ code.
  63. * Mon Apr 28 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.2.4-1_tad
  64. - build spec file.
  65. - include patch for controling error-treat.