libmodbus.spec.in 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Name: libmodbus
  2. Version: @PACKAGE_VERSION@
  3. Release: 1%{?dist}
  4. Summary: A Modbus library
  5. Group: Applications/System
  6. License: LGPLv2+
  7. URL: http://www.libmodbus.org/
  8. Source0: https://github.com/downloads/stephane/libmodbus/libmodbus-%{version}.tar.gz
  9. BuildRequires: autoconf, automake, libtool, xmlto, asciidoc
  10. %description
  11. libmodbus is a C library designed to provide a fast and robust implementation of
  12. the Modbus protocol. It runs on Linux, Mac OS X, FreeBSD, QNX and Windows.
  13. This package contains the libmodbus shared library.
  14. %package devel
  15. Summary: Development files for libmodbus
  16. Group: Development/Libraries
  17. Requires: %{name}%{?_isa} = %{version}-%{release}
  18. %description devel
  19. libmodbus is a C library designed to provide a fast and robust implementation of
  20. the Modbus protocol. It runs on Linux, Mac OS X, FreeBSD, QNX and Windows.
  21. This package contains libraries, header files and developer documentation needed
  22. for developing software which uses the libmodbus library.
  23. %prep
  24. %setup -q
  25. autoreconf
  26. %build
  27. %configure
  28. make %{?_smp_mflags}
  29. %install
  30. make install DESTDIR=%{buildroot}
  31. rm -f %{buildroot}/%{_libdir}/*.la
  32. %post -p /sbin/ldconfig
  33. %postun -p /sbin/ldconfig
  34. %files
  35. %defattr(-,root,root)
  36. %doc AUTHORS MIGRATION NEWS COPYING* README.rst
  37. %{_libdir}/libmodbus.so.*
  38. %files devel
  39. %defattr(-,root,root)
  40. %{_includedir}/modbus/
  41. %{_libdir}/pkgconfig/libmodbus.pc
  42. %{_libdir}/libmodbus.so
  43. %{_mandir}/man7/*.7.*
  44. %{_mandir}/man3/*.3.*
  45. %changelog
  46. * Mon Jul 23 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 3.0.1-2
  47. - package reviewed by Peter Lemenkov <lemenkov@gmail.com> and Veeti Paananen
  48. <veeti.paananen@rojekti.fi> of Fedora Quality Assurance team
  49. * Mon Jul 18 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 3.0.1-1
  50. - new upstream release
  51. * Thu Jul 11 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 3.0.0-1
  52. - revert the license to LGPLv2.1+
  53. - new spec file generated by autoconf
  54. - add documentation, devel package and various changes
  55. * Sun Jun 5 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.9.4-1
  56. - new upstream release
  57. * Mon Jan 10 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.9.3-1
  58. - new upstream release
  59. * Mon Oct 5 2010 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.9.2-1
  60. - new upstream release
  61. * Fri Jul 2 2008 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.0.1-1
  62. - new upstream release
  63. * Fri May 2 2008 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.0.0-1
  64. - integrate extern_for_cpp in upstream.
  65. - update the license to version LGPL v3.
  66. * Tue Apr 30 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.9.0-2
  67. - get the license corrected in the spec file.
  68. - add a URL for where to find libmodbus.
  69. - tweak the summary and description.
  70. * Tue Apr 29 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.9.0-1
  71. - upgrade to latest upstream (pre-release)
  72. - port extern_for_cpp patch to 1.9.0
  73. * Tue Apr 29 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.2.4-2_tad
  74. - add a patch to allow compiling with c++ code.
  75. * Mon Apr 28 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.2.4-1_tad
  76. - build spec file.
  77. - include patch for controling error-treat.