INADDR_* macros are defined in host byte order
[libmodbus.git] / libmodbus.spec.in
blob794d3cc15882971ca38915275798f02e0c764e16
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
11 %description
12 libmodbus is a C library designed to provide a fast and robust implementation of
13 the Modbus protocol. It runs on Linux, Mac OS X, FreeBSD, QNX and Windows.
15 This package contains the libmodbus shared library.
17 %package devel
18 Summary: Development files for libmodbus
19 Group: Development/Libraries
20 Requires: %{name}%{?_isa} = %{version}-%{release}
22 %description devel
23 libmodbus is a C library designed to provide a fast and robust implementation of
24 the Modbus protocol. It runs on Linux, Mac OS X, FreeBSD, QNX and Windows.
26 This package contains libraries, header files and developer documentation needed
27 for developing software which uses the libmodbus library.
29 %prep
30 %setup -q
32 autoreconf
34 %build
35 %configure
36 make %{?_smp_mflags}
38 %install
39 make install DESTDIR=%{buildroot}
40 rm -f %{buildroot}/%{_libdir}/*.la
42 %post -p /sbin/ldconfig
44 %postun -p /sbin/ldconfig
46 %files
47 %defattr(-,root,root)
49 %doc AUTHORS MIGRATION NEWS COPYING* README.md
51 %{_libdir}/libmodbus.so.*
53 %files devel
54 %defattr(-,root,root)
55 %{_includedir}/modbus/
57 %{_libdir}/pkgconfig/libmodbus.pc
58 %{_libdir}/libmodbus.so
60 %{_mandir}/man7/*.7.*
61 %{_mandir}/man3/*.3.*
63 %changelog
64 * Mon Jul 23 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 3.0.1-2
65 - package reviewed by Peter Lemenkov <lemenkov@gmail.com> and Veeti Paananen
66 <veeti.paananen@rojekti.fi> of Fedora Quality Assurance team
68 * Mon Jul 18 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 3.0.1-1
69 - new upstream release
71 * Thu Jul 11 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 3.0.0-1
72 - revert the license to LGPLv2.1+
73 - new spec file generated by autoconf
74 - add documentation, devel package and various changes
76 * Sun Jun 5 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.9.4-1
77 - new upstream release
79 * Mon Jan 10 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.9.3-1
80 - new upstream release
82 * Mon Oct 5 2010 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.9.2-1
83 - new upstream release
85 * Fri Jul 2 2008 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.0.1-1
86 - new upstream release
88 * Fri May 2 2008 Stéphane Raimbault <stephane.raimbault@gmail.com> - 2.0.0-1
89 - integrate extern_for_cpp in upstream.
90 - update the license to version LGPL v3.
92 * Tue Apr 30 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.9.0-2
93 - get the license corrected in the spec file.
94 - add a URL for where to find libmodbus.
95 - tweak the summary and description.
97 * Tue Apr 29 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.9.0-1
98 - upgrade to latest upstream (pre-release)
99 - port extern_for_cpp patch to 1.9.0
101 * Tue Apr 29 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.2.4-2_tad
102 - add a patch to allow compiling with c++ code.
104 * Mon Apr 28 2008 Todd Denniston <Todd.Denniston@ssa.crane.navy.mil> - 1.2.4-1_tad
105 - build spec file.
106 - include patch for controling error-treat.