Name: pion-net Version: 4.0.7 Release: 1%{?dist} Summary: Pion Network Library License: Boost URL: http://www.pion.org/projects/pion-network-library Source0: http://www.pion.org/files/pion-net-4.0.7.tar.gz BuildRequires: boost-devel >= 1.35.0, libicu-devel, bzip2-devel, zlib-devel, openssl-devel, log4cpp-devel, doxygen Patch0: pion-net-asio-compatibility.patch %description Pion Network Library is a C++ framework for building lightweight HTTP interfaces. %package devel Summary: Development files for pion-net Requires: pion-net = %{version}-%{release} %description devel This package contains the pkgconfig, header files, and libraries needed to develop application that use pion-net. %package doc Summary: Documentation for pion-net Requires: pion-net-devel = %{version}-%{release} BuildArch: noarch %description doc This package contains Doxygen HTML documentation for pion-net library. %prep %setup -q %patch0 -p1 %build %configure \ --with-plugins=%{_libdir}/pion/plugins \ --with-boost-extension=-mt \ --with-pie \ --disable-static \ --with-bzlib \ --with-zlib \ --with-openssl \ --with-log4cpp \ make %{?_smp_mflags} # regenerate upstream documentation make doxygen-clean make doxygen-run %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} # delete example apps rm -f %{buildroot}%{_bindir}/PionHelloServer rm -f %{buildroot}%{_bindir}/PionWebServer # delete libtool archives rm -f %{buildroot}%{_libdir}/*.la rm -f %{buildroot}%{_libdir}/pion/plugins/*.la # install documentation install -d -m 0755 %{buildroot}%{_docdir}/pion-net-%{version} cp -arv net/doc/html %{buildroot}%{_docdir}/pion-net-%{version} %check make check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS COPYING NEWS TODO %{_libdir}/libpion-*.so %{_libdir}/pion/plugins/*.so %files devel %{_includedir}/pion/ %{_libdir}/pkgconfig/pion-net.pc %files doc %{_docdir}/pion-net-%{version}/ %changelog * Tue Nov 15 2011 Jan Vcelak 4.0.7-1 - initial package for Fedora