Name: libcutl Version: 1.7.1 Release: 1%{?dist} Summary: C++ utility library from Code Synthesis Group: System Environment/Libraries License: MIT URL: http://www.codesynthesis.com/projects/libcutl/ Source0: http://www.codesynthesis.com/download/libcutl/1.7/%{name}-%{version}.tar.bz2 Patch0: libcutl_no_boost_license.patch # Set BuildRoot for compatibility with EPEL <= 5 # See: http://fedoraproject.org/wiki/EPEL:Packaging#BuildRoot_tag BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Requires boost to build BuildRequires: boost-devel # Other BuildRequires from auto-buildrequires (except those that are supposed to be excluded) # See: http://fedoraproject.org/wiki/Packaging:Guidelines#BuildRequires BuildRequires: binutils BuildRequires: glibc-common BuildRequires: net-tools BuildRequires: pkgconfig %description libcutl is a C++ utility library. It contains a collection of generic and fairly independent components. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %patch0 %build %configure --disable-static --with-external-boost make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc LICENSE %{_libdir}/libcutl-1.7.so # Exclude the documentation that doesn't need to be packaged %exclude %{_datadir}/doc/%{name}/INSTALL %exclude %{_datadir}/doc/%{name}/LICENSE %exclude %{_datadir}/doc/%{name}/NEWS %exclude %{_datadir}/doc/%{name}/README %exclude %{_datadir}/doc/%{name}/version %files devel %doc NEWS %{_includedir}/cutl/ %{_includedir}/cutl/* %{_libdir}/libcutl.so %{_libdir}/pkgconfig/libcutl.pc %changelog * Mon Jun 10 2013 Dave Johansen 1.7.1-1 - Initial build