Name: liblemon Version: 1.3.1 Release: 3%{?dist} Summary: Library for Efficient Modeling and Optimization in Networks License: Boost Software License, Version 1.0 URL: https://lemon.cs.elte.hu Source0: http://lemon.cs.elte.hu/pub/sources/lemon-1.3.1.tar.gz Patch0: 0001-patch-top-cmakelist.patch Patch1: 0002-add-rename.patch Patch2: 0003-static-compile-flag-and-preflow.patch BuildRequires: cmake %description Library for Efficient Modeling and Optimization in Networks. This package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n lemon-%{version} %patch0 %patch1 %patch2 %build cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %make_install %files %{_prefix}/lib/*.a %{_includedir}/lemon/* %{_prefix}/lib/pkgconfig/lemon.pc %{_datadir}/lemon/cmake/*.cmake %changelog * Sat Jun 08 2019 zhaofeng-shu33 <616545598@qq.com> - 1.3.1-3 - Initial