Group :: Ciências/Matemática
RPM: primecount
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define soname 7
Name: primecount
Version: 7.9
Release: alt1
Summary: Count the number of primes
License: BSD-2-Clause
Group: Sciences/Mathematics
Url: https://github.com/kimwalisch/primecount
Source: https://github.com/kimwalisch/primecount/archive/v%version.tar.gz#/%name-%version.tar.gz
BuildPreReq: rpm-build-ninja ctest
BuildRequires: gcc-c++ libgomp-devel cmake asciidoc-a2x libprimesieve-devel
%description
primecount is a command-line program that counts the primes below an
integer x less than or equal to 10^31 using highly optimized implementations of the
combinatorial prime counting algorithms.
%package -n lib%name%soname
Summary: C/C++ library for counting prime numbers
Group: System/Libraries
%description -n lib%name%soname
This package contains the shared runtime library for primecount.
%package -n lib%name-devel
Summary: Development files for the primecount library
Group: Development/Other
%description -n lib%name-devel
This package contains the C/C++ header files and the configuration
files for developing applications that use the primecount library.
%prep
%setup
%build
%cmake \
-GNinja \
%ifarch %e2k
-DCMAKE_SHARED_LINKER_FLAGS="-fopenmp" \
-DCMAKE_EXE_LINKER_FLAGS="-fopenmp" \
%endif
-DBUILD_LIBPRIMESIEVE=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=OFF \
-DSTATICALLY_LINK_LIBPRIMECOUNT=OFF \
-DBUILD_MANPAGE=ON \
-DBUILD_TESTS=ON \
-DCMAKE_SKIP_RPATH:BOOL=OFF
cmake --build "%_cmake__builddir" -j%__nprocs
%install
%cmake_install
%check
cd %_cmake__builddir
ctest
%files
%doc README.md ChangeLog
%_bindir/primecount
%_man1dir/primecount.1*
%files -n lib%name%soname
%doc COPYING
%_libdir/libprimecount.so.%{soname}*
%files -n lib%name-devel
%doc doc/libprimecount.md
%_libdir/libprimecount.so
%_includedir/primecount.h
%_includedir/primecount.hpp
%_pkgconfigdir/primecount.pc
%changelog
…
Todas as alterações você pod ver aqui
Name: primecount
Version: 7.9
Release: alt1
Summary: Count the number of primes
License: BSD-2-Clause
Group: Sciences/Mathematics
Url: https://github.com/kimwalisch/primecount
Source: https://github.com/kimwalisch/primecount/archive/v%version.tar.gz#/%name-%version.tar.gz
BuildPreReq: rpm-build-ninja ctest
BuildRequires: gcc-c++ libgomp-devel cmake asciidoc-a2x libprimesieve-devel
%description
primecount is a command-line program that counts the primes below an
integer x less than or equal to 10^31 using highly optimized implementations of the
combinatorial prime counting algorithms.
%package -n lib%name%soname
Summary: C/C++ library for counting prime numbers
Group: System/Libraries
%description -n lib%name%soname
This package contains the shared runtime library for primecount.
%package -n lib%name-devel
Summary: Development files for the primecount library
Group: Development/Other
%description -n lib%name-devel
This package contains the C/C++ header files and the configuration
files for developing applications that use the primecount library.
%prep
%setup
%build
%cmake \
-GNinja \
%ifarch %e2k
-DCMAKE_SHARED_LINKER_FLAGS="-fopenmp" \
-DCMAKE_EXE_LINKER_FLAGS="-fopenmp" \
%endif
-DBUILD_LIBPRIMESIEVE=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=OFF \
-DSTATICALLY_LINK_LIBPRIMECOUNT=OFF \
-DBUILD_MANPAGE=ON \
-DBUILD_TESTS=ON \
-DCMAKE_SKIP_RPATH:BOOL=OFF
cmake --build "%_cmake__builddir" -j%__nprocs
%install
%cmake_install
%check
cd %_cmake__builddir
ctest
%files
%doc README.md ChangeLog
%_bindir/primecount
%_man1dir/primecount.1*
%files -n lib%name%soname
%doc COPYING
%_libdir/libprimecount.so.%{soname}*
%files -n lib%name-devel
%doc doc/libprimecount.md
%_libdir/libprimecount.so
%_includedir/primecount.h
%_includedir/primecount.hpp
%_pkgconfigdir/primecount.pc
%changelog
…
Todas as alterações você pod ver aqui