%undefine _debugsource_packages Summary: hoppet -Higher Order Perturbative Parton Evolution Toolkit Name: hoppet Version: 1.2.0 Release: 2%{?dist} License: GPL Prefix: %{_prefix} Summary: Higher Order Perturbative Parton Evolution Toolkit Source: http://hoppet.hepforge.org/downloads/hoppet-%{version}.tgz BuildRequires: gcc-gfortran perl Requires: libgfortran %description HOPPET is a Fortran 95 package for carrying out QCD DGLAP evolution and other common manipulations of parton distribution functions (PDFs). It has been developed by Gavin Salam on an occasional basis since 2001 with contributions from Juan Rojo, Frédéric Dreyer and Alexander Karlberg. %prep %setup -q %build ./configure --prefix=%{buildroot}/usr make %install make DESTDIR=%{buildroot} install sed -i "s|${RPM_BUILD_ROOT}||g" $RPM_BUILD_ROOT/usr/bin/* sed -i "s|/lib|"/%_lib"|g" $RPM_BUILD_ROOT/usr/bin/hoppet-config mv %{buildroot}/usr/lib %{buildroot}/usr/%_lib %files %defattr(-,root,root) /usr/bin/* /usr/%_lib/* /usr/include/* %clean rm -rf %{buildroot} %post ldconfig %changelog * Thu Nov 23 2017 Andrii Verbytskyi andrii.verbytskyi@mpp.mpg.de - Initial