libmodbus.spec.in 3.1 KB

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