Name: divine Version: 4.3.2 Release: 1%{?dist} Summary: Foo License: ISC URL: https://divine.fi.muni.cz/ Source0: https://divine.fi.muni.cz/download/%{name}-%{version}.tar.gz PATCH1: disable-VC-checks.patch PATCH2: make_release.patch Buildrequires: gcc cmake libedit-devel ninja-build libstdc++-static glibc-static libatomic-static libcxxabi-devel libcxx-devel %description bar #%package devel #Summary: Development files for lz4 #Requires: %{name}%{?_isa} = %{version}-%{release} #%description devel #This package contains the header(.h) and library(.so) files required to build #applications using liblz4 library. #%package static #Summary: Static library for lz4 #%description static #LZ4 is an extremely fast loss-less compression algorithm. This package #contains static libraries for static linking of applications. %prep %autosetup -p1 -v #sed -i 's/add_compile_flags_if_supported("\/std:/#/' dios/libcxx/CMakeLists.txt %build make CC=clang CXX=clang++ CXXFLAGS=-std=c++11 CMAKE_GENERATE_VC=OFF static %install #%configure #%make_install LIBDIR=%{_libdir} PREFIX=%{_prefix} INSTALL="install -p" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files #%license programs/COPYING lib/LICENSE #%doc NEWS #%{_bindir}/lz4 #%{_bindir}/lz4c #%{_bindir}/lz4cat #%{_bindir}/unlz4 #%{_mandir}/man1/lz4.1* #%{_mandir}/man1/lz4c.1* #%{_mandir}/man1/lz4cat.1* #%{_mandir}/man1/unlz4.1* #%{_libdir}/liblz4.so.* #%files devel #%doc lib/LICENSE #%{_includedir}/lz4*.h #%{_libdir}/liblz4.so #%{_libdir}/pkgconfig/liblz4.pc #%files static #%doc lib/LICENSE #%{_libdir}/liblz4.a %changelog * Tue Jul 2 2019 Jakub Martisko - 4.3.2-1 - Initial version