Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37503475
en ru br
ALT Linux repositórios
S:2.1-alt1_1

Group :: Sistema/Bibliotecas
RPM: libcerf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-mageia-compat
BuildRequires: gcc-c++
# END SourceDeps(oneline)
BuildRequires: /usr/bin/pod2man /usr/bin/pod2html
%global optflags_lto %nil
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define major 2
%define libname libcerf%{major}
%define devname libcerf-devel

Name: libcerf
Summary: Complex error functions, Dawson, Faddeeva, and Voigt function
Version: 2.1
Release: alt1_1
Group: System/Libraries
License: MIT
Url: https://jugit.fz-juelich.de/mlz/libcerf
Source0: https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires: ccmake cmake ctest
BuildRequires: clang
Source44: import.info

%description
A self-contained C library providing complex error functions, based on
Faddeeva's plasma dispersion function w(z).

Also provides Dawson's integral and Voigt's convolution of a Gaussian
and a Lorentzian.

%package -n %{libname}
Summary: Complex error functions, Dawson, Faddeeva, and Voigt function
Group: System/Libraries

%description -n %{libname}
A self-contained C library providing complex error functions, based on
Faddeeva's plasma dispersion function w(z).

Also provides Dawson's integral and Voigt's convolution of a Gaussian
and a Lorentzian.

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/Other
Requires: %{libname} = %{version}-%{release}
#Provides: %{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the development files for %{name}.

%prep
%setup -q -n %{name}-v%{version}


# Force cmake to use the paths passed at configure time

sed -i -e 's|lib/pkgconfig/|%{_lib}/pkgconfig/|' CMakeLists.txt
sed -i -e 's|DESTINATION lib|DESTINATION %{_lib}|' lib/CMakeLists.txt
sed -i -e 's|${prefix}/lib| at LIB_INSTALL_DIR at |' libcerf.pc.in
sed -i -e 's| at destination at | at CMAKE_INSTALL_PREFIX at |' libcerf.pc.in

# remove cruft

rm -rf fortran/__MACOSX

%build
%remove_optflags -frecord-gcc-switches
# for some reason %ix86 tests fails with gcc
export CC=clang
export LDFLAGS="$LDFLAGS -Wl,--build-id=sha1"
%{mageia_cmake}
%mageia_cmake_build

%install
%mageia_cmake_install

%check
%ifnarch %{ix86}
%{mageia_ctest}
%endif

%files -n %{libname}
%doc CHANGELOG README*
%doc --no-dereference LICENSE
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{version}

%files -n %{devname}
%doc %{_docdir}/cerf/
%{_includedir}/cerf.h
%{_libdir}/%{name}.so
%{_libdir}/cmake/cerf/
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/*


%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009