Name: libLunchbox Version: 1.9.1 Release: 1%{?dist} Summary: C++ library for multi-threaded programming Group: Development/Libraries License: LGPLv2 URL: http://www.equalizergraphics.com/ #Source0: http://www.equalizergraphics.com/downloads/Lunchbox-%{version}.tar.gz Source0: https://github.com/Eyescale/Lunchbox/archive/%{version}.tar.gz#/Lunchbox-%{version}.tar.gz BuildRequires: cmake, doxygen, graphviz, boost-devel, environment-modules # Patch sent upstream Patch1: libLunchbox-1.9.1-64bit-fix.patch # Patch sent upstream Patch2: libLunchbox-1.9.1-doxygen-fix.patch # Patch sent upstream Patch3: libLunchbox-1.9.1-gnumodules-fix.patch %description Lunchbox is C++ library for multi-threaded programming, providing OS abstraction, utility classes and high-performance primitives, such as atomic variables, spin locks and lock-free containers. %package devel Summary: Development files for libLunchbox Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig, cmake %description devel Development files for libLunchbox. %package doc Summary: Documentation for libLunchbox Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for libLunchbox. %prep %setup -q -n Lunchbox-%{version} %patch1 -p1 -b .64bit-fix %patch2 -p1 -b .doxygen-fix %patch3 -p1 -b .gnumodules-fix %build %cmake -DDOC_DIR=%{_docdir}/%{name} -DDISABLE_BUILDYARD=on make %{?_smp_mflags} make %{?_smp_mflags} doxygen %install make install DESTDIR=%{buildroot} # Package rename mv %{buildroot}%{_datadir}/Lunchbox %{buildroot}%{_datadir}/libLunchbox # pkgconfig rename mv %{buildroot}%{_libdir}/pkgconfig/Lunchbox.pc %{buildroot}%{_libdir}/pkgconfig/%{name}.pc # Move cmake modules to right place mkdir -p %{buildroot}%{_libdir}/cmake/%{name} mv %{buildroot}%{_datadir}/%{name}/CMake/* %{buildroot}%{_libdir}/cmake/%{name} %check #make test %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %exclude %{_docdir}/%{name}/API %doc %{_docdir}/%{name} %{_libdir}/libLunchbox*.so.* %{_datadir}/%{name} %files devel %{_includedir}/lunchbox %{_libdir}/%{name}*.so %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/cmake/%{name} %files doc %{_docdir}/%{name}/API %changelog * Mon Jul 7 2014 Jaroslav Škarvada - 1.9.1-1 - New version * Fri Jun 21 2013 Jaroslav Škarvada - 1.4.0-1 - Initial release