Name: libserial Version: 0.5.2 Release: 2%{?dist} Summary: Library to access serial ports on POSIX systems Group: System Environment/Libraries License: GPLv2 URL: http://sourceforge.net/projects/%{name} Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch1: libserial-0.5.2.headers.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: doxygen %description A collection of C++ classes which allow the serial port on POSIX systems to be accessed like an iostream object. Special functions are provided for setting various parameters of the serial port such as the baud rate, character size, flow control and others. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %patch1 -b headers %build %configure --disable-static make %{?_smp_mflags} doxygen doxygen.conf rm doc/man/man3/todo.3 %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3 cp -p %{_builddir}/%{buildsubdir}/doc/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3/ %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc README INSTALL AUTHORS ChangeLog %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc README INSTALL ChangeLog doc/html %{_includedir}/* %{_libdir}/*.so %{_mandir}/man3/* %changelog * Thu Mar 12 2009 Alex71 0.5.2-2 - written better and meaningful changelog - removed explicit gzip for manpages - removed generic and misleading todo.3 from man pages - removed superflous BuildRequired entries - fixed other minor bugs (cp flags, residual debug message, replaced libserial with {name}) * Wed Mar 11 2009 Alex71 0.5.2-1 - First release for Fedora