Commit 2f911c3b91dc10e0d946a952db564efce7e7c57a
1 parent
7f75c81b
Improved libmodbus.spec by Fedora community
https://bugzilla.redhat.com/show_bug.cgi?id=724942
Showing
1 changed file
with
15 additions
and
64 deletions
libmodbus.spec.in
| 1 | Name: libmodbus | 1 | Name: libmodbus |
| 2 | Version: @PACKAGE_VERSION@ | 2 | Version: @PACKAGE_VERSION@ |
| 3 | -Release: 1%{?dist%} | 3 | +Release: 1%{?dist} |
| 4 | Summary: A Modbus library written in C | 4 | Summary: A Modbus library written in C |
| 5 | 5 | ||
| 6 | Group: Applications/System | 6 | Group: Applications/System |
| @@ -8,10 +8,8 @@ License: LGPLv2.1+ | @@ -8,10 +8,8 @@ License: LGPLv2.1+ | ||
| 8 | URL: http://www.libmodbus.org/ | 8 | URL: http://www.libmodbus.org/ |
| 9 | Source0: https://github.com/downloads/stephane/libmodbus/libmodbus-%{version}.tar.gz | 9 | Source0: https://github.com/downloads/stephane/libmodbus/libmodbus-%{version}.tar.gz |
| 10 | 10 | ||
| 11 | -Packager: Stéphane Raimbault | ||
| 12 | -Provides: libmodbus=%{version} | ||
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
| 14 | -BuildRequires: gcc, autoconf, automake, libtool | 12 | +BuildRequires: autoconf, xmlto, asciidoc |
| 15 | 13 | ||
| 16 | %description | 14 | %description |
| 17 | The library is written in C and designed to run on Linux, Mac OS X, FreeBSD and | 15 | The library is written in C and designed to run on Linux, Mac OS X, FreeBSD and |
| @@ -22,7 +20,7 @@ This package contains the libmodbus shared library. | @@ -22,7 +20,7 @@ This package contains the libmodbus shared library. | ||
| 22 | %package devel | 20 | %package devel |
| 23 | Summary: Development files for the libmodbus library | 21 | Summary: Development files for the libmodbus library |
| 24 | Group: Development/Libraries | 22 | Group: Development/Libraries |
| 25 | -Requires: %{name} = %{version}-%{release}, pkgconfig | 23 | +Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig |
| 26 | 24 | ||
| 27 | %description devel | 25 | %description devel |
| 28 | The library is written in C and designed to run on Linux, Mac OS X, FreeBSD and | 26 | The library is written in C and designed to run on Linux, Mac OS X, FreeBSD and |
| @@ -40,84 +38,37 @@ autoreconf | @@ -40,84 +38,37 @@ autoreconf | ||
| 40 | make %{?_smp_mflags} | 38 | make %{?_smp_mflags} |
| 41 | 39 | ||
| 42 | %install | 40 | %install |
| 43 | -[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} | ||
| 44 | -%{__make} check | ||
| 45 | -%makeinstall | 41 | +make install DESTDIR=%{buildroot} |
| 42 | +rm -f %{buildroot}/%{_libdir}/*.la | ||
| 46 | 43 | ||
| 47 | -%post | ||
| 48 | -/sbin/ldconfig | 44 | +%post -p /sbin/ldconfig |
| 49 | 45 | ||
| 50 | -%postun | ||
| 51 | -/sbin/ldconfig | 46 | +%postun -p /sbin/ldconfig |
| 52 | 47 | ||
| 53 | %clean | 48 | %clean |
| 54 | -[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} | ||
| 55 | 49 | ||
| 56 | %files | 50 | %files |
| 57 | %defattr(-,root,root) | 51 | %defattr(-,root,root) |
| 58 | 52 | ||
| 59 | %doc AUTHORS MIGRATION NEWS COPYING* README.rst | 53 | %doc AUTHORS MIGRATION NEWS COPYING* README.rst |
| 60 | 54 | ||
| 61 | -%{_libdir}/libmodbus.so.5 | ||
| 62 | -%{_libdir}/libmodbus.so.5.0.0 | 55 | +%{_libdir}/libmodbus.so.* |
| 63 | 56 | ||
| 64 | %files devel | 57 | %files devel |
| 65 | %defattr(-,root,root) | 58 | %defattr(-,root,root) |
| 66 | -%{_includedir}/modbus/modbus.h | ||
| 67 | -%{_includedir}/modbus/modbus-rtu.h | ||
| 68 | -%{_includedir}/modbus/modbus-tcp.h | ||
| 69 | -%{_includedir}/modbus/modbus-version.h | 59 | +%{_includedir}/modbus/ |
| 70 | 60 | ||
| 71 | -%{_libdir}/libmodbus.la | ||
| 72 | %{_libdir}/pkgconfig/libmodbus.pc | 61 | %{_libdir}/pkgconfig/libmodbus.pc |
| 73 | %{_libdir}/libmodbus.so | 62 | %{_libdir}/libmodbus.so |
| 74 | 63 | ||
| 75 | -%{_mandir}/man7/libmodbus.7.gz | ||
| 76 | -%{_mandir}/man3/modbus_close.3.gz | ||
| 77 | -%{_mandir}/man3/modbus_connect.3.gz | ||
| 78 | -%{_mandir}/man3/modbus_flush.3.gz | ||
| 79 | -%{_mandir}/man3/modbus_free.3.gz | ||
| 80 | -%{_mandir}/man3/modbus_get_byte_from_bits.3.gz | ||
| 81 | -%{_mandir}/man3/modbus_get_byte_timeout.3.gz | ||
| 82 | -%{_mandir}/man3/modbus_get_float.3.gz | ||
| 83 | -%{_mandir}/man3/modbus_get_header_length.3.gz | ||
| 84 | -%{_mandir}/man3/modbus_get_response_timeout.3.gz | ||
| 85 | -%{_mandir}/man3/modbus_get_socket.3.gz | ||
| 86 | -%{_mandir}/man3/modbus_mapping_free.3.gz | ||
| 87 | -%{_mandir}/man3/modbus_mapping_new.3.gz | ||
| 88 | -%{_mandir}/man3/modbus_new_rtu.3.gz | ||
| 89 | -%{_mandir}/man3/modbus_new_tcp_pi.3.gz | ||
| 90 | -%{_mandir}/man3/modbus_new_tcp.3.gz | ||
| 91 | -%{_mandir}/man3/modbus_read_bits.3.gz | ||
| 92 | -%{_mandir}/man3/modbus_read_input_bits.3.gz | ||
| 93 | -%{_mandir}/man3/modbus_read_input_registers.3.gz | ||
| 94 | -%{_mandir}/man3/modbus_read_registers.3.gz | ||
| 95 | -%{_mandir}/man3/modbus_receive_confirmation.3.gz | ||
| 96 | -%{_mandir}/man3/modbus_receive_from.3.gz | ||
| 97 | -%{_mandir}/man3/modbus_receive.3.gz | ||
| 98 | -%{_mandir}/man3/modbus_reply_exception.3.gz | ||
| 99 | -%{_mandir}/man3/modbus_reply.3.gz | ||
| 100 | -%{_mandir}/man3/modbus_report_slave_id.3.gz | ||
| 101 | -%{_mandir}/man3/modbus_rtu_get_serial_mode.3.gz | ||
| 102 | -%{_mandir}/man3/modbus_rtu_set_serial_mode.3.gz | ||
| 103 | -%{_mandir}/man3/modbus_send_raw_request.3.gz | ||
| 104 | -%{_mandir}/man3/modbus_set_bits_from_bytes.3.gz | ||
| 105 | -%{_mandir}/man3/modbus_set_bits_from_byte.3.gz | ||
| 106 | -%{_mandir}/man3/modbus_set_byte_timeout.3.gz | ||
| 107 | -%{_mandir}/man3/modbus_set_debug.3.gz | ||
| 108 | -%{_mandir}/man3/modbus_set_error_recovery.3.gz | ||
| 109 | -%{_mandir}/man3/modbus_set_float.3.gz | ||
| 110 | -%{_mandir}/man3/modbus_set_response_timeout.3.gz | ||
| 111 | -%{_mandir}/man3/modbus_set_slave.3.gz | ||
| 112 | -%{_mandir}/man3/modbus_set_socket.3.gz | ||
| 113 | -%{_mandir}/man3/modbus_strerror.3.gz | ||
| 114 | -%{_mandir}/man3/modbus_write_and_read_registers.3.gz | ||
| 115 | -%{_mandir}/man3/modbus_write_bits.3.gz | ||
| 116 | -%{_mandir}/man3/modbus_write_bit.3.gz | ||
| 117 | -%{_mandir}/man3/modbus_write_registers.3.gz | ||
| 118 | -%{_mandir}/man3/modbus_write_register.3.gz | 64 | +%{_mandir}/man7/*.7.* |
| 65 | +%{_mandir}/man3/*.3.* | ||
| 119 | 66 | ||
| 120 | %changelog | 67 | %changelog |
| 68 | +* Mon Jul 23 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 3.0.2-1 | ||
| 69 | +- package reviewed by Peter Lemenkov <lemenkov@gmail.com> and Veeti Paananen | ||
| 70 | + <veeti.paananen@rojekti.fi> of Fedora Quality Assurance team | ||
| 71 | + | ||
| 121 | * Mon Jul 18 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 3.0.1-1 | 72 | * Mon Jul 18 2011 Stéphane Raimbault <stephane.raimbault@gmail.com> - 3.0.1-1 |
| 122 | - new upstream release | 73 | - new upstream release |
| 123 | 74 |