forked from pool/apfel
Accepting request 665694 from science
OBS-URL: https://build.opensuse.org/request/show/665694 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apfel?expand=0&rev=10
This commit is contained in:
commit
3b18d2af3c
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 13 16:42:39 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update descriptions.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 12 15:15:56 UTC 2019 - badshah400@gmail.com
|
||||||
|
|
||||||
|
- Install pre-generated PDF manual as part of a new -doc package.
|
||||||
|
- Move ListFunctions binary into -devel package: apfel-config,
|
||||||
|
already being installed as part of the devel package, is partly
|
||||||
|
broken without this.
|
||||||
|
- Change `env` based script interpreter in apfel-config to
|
||||||
|
directly call /bin/bash instead.
|
||||||
|
- Use %%license macro to install the license file.
|
||||||
|
- Run spec-cleaner for minor specfile cleanups
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jul 14 16:58:46 UTC 2018 - badshah400@gmail.com
|
Sat Jul 14 16:58:46 UTC 2018 - badshah400@gmail.com
|
||||||
|
|
||||||
|
44
apfel.spec
44
apfel.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package apfel
|
# spec file for package apfel
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,34 +12,32 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define soname libAPFEL0
|
%define soname libAPFEL0
|
||||||
%define pypackage python-%{name}
|
%define pypackage python-%{name}
|
||||||
|
|
||||||
Name: apfel
|
Name: apfel
|
||||||
Version: 3.0.3
|
Version: 3.0.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Probability Distribution Function Evolution Library
|
Summary: A Probability Distribution Function Evolution Library
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: http://apfel.hepforge.org/
|
URL: http://apfel.hepforge.org/
|
||||||
Source: https://github.com/scarrazza/%{name}/archive/%{version}.tar.gz
|
Source: https://github.com/scarrazza/%{name}/archive/%{version}.tar.gz
|
||||||
BuildRequires: LHAPDF-devel
|
BuildRequires: LHAPDF-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gcc-fortran
|
BuildRequires: gcc-fortran
|
||||||
|
BuildRequires: python-devel
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} > 1320
|
||||||
BuildRequires: libboost_headers-devel
|
BuildRequires: libboost_headers-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||||
evolution of parton distributions.
|
evolution of parton distributions.
|
||||||
|
|
||||||
%package -n %{soname}
|
%package -n %{soname}
|
||||||
@ -47,7 +45,7 @@ Summary: A Probability Distribution Function Evolution Library
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{soname}
|
%description -n %{soname}
|
||||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||||
evolution of parton distributions.
|
evolution of parton distributions.
|
||||||
|
|
||||||
This package provides the shared libraries for %{name}.
|
This package provides the shared libraries for %{name}.
|
||||||
@ -57,9 +55,10 @@ Summary: Development files for Apfel, a PDF Evolution Library
|
|||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{soname} = %{version}
|
Requires: %{soname} = %{version}
|
||||||
Requires: LHAPDF-devel
|
Requires: LHAPDF-devel
|
||||||
|
Recommends: %{name}-doc = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||||
evolution of parton distributions.
|
evolution of parton distributions.
|
||||||
|
|
||||||
This package provides the source files required to develop
|
This package provides the source files required to develop
|
||||||
@ -70,11 +69,20 @@ Summary: A PDF Evolution Library
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
|
||||||
%description -n %{pypackage}
|
%description -n %{pypackage}
|
||||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||||
evolution of parton distributions.
|
evolution of parton distributions.
|
||||||
|
|
||||||
This package provides the shared libraries for %{name}.
|
This package provides the shared libraries for %{name}.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for APFEL, a PDF evolution library
|
||||||
|
Group: Documentation/Other
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This package provides documentation for APFEL in PDF (Portable
|
||||||
|
Document Format), a PDF (Probability Distribution Function) evolution
|
||||||
|
library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -86,7 +94,10 @@ make %{?_smp_mflags}
|
|||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
# REMOVE libtool ARCHIVES
|
# REMOVE libtool ARCHIVES
|
||||||
rm %{buildroot}%{_libdir}/*.la
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
|
# FIX env BASED SCRIPT INTERPRETER
|
||||||
|
sed -Ei "1{s|#\!\s*/usr/bin/env bash|#\!/bin/bash|}" %{buildroot}%{_bindir}/apfel-config
|
||||||
|
|
||||||
# REMOVE README FROM NON-STD LOCATIONS, INSTALL IT USING %%doc INSTEAD
|
# REMOVE README FROM NON-STD LOCATIONS, INSTALL IT USING %%doc INSTEAD
|
||||||
rm -fr %{buildroot}%{_datadir}/apfel/README
|
rm -fr %{buildroot}%{_datadir}/apfel/README
|
||||||
@ -96,25 +107,26 @@ rm -fr %{buildroot}%{_datadir}/doc/apfel
|
|||||||
%postun -n %{soname} -p /sbin/ldconfig
|
%postun -n %{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{soname}
|
%files -n %{soname}
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/APFEL/
|
%{_includedir}/APFEL/
|
||||||
%doc AUTHORS ChangeLog NEWS README COPYING
|
%license COPYING
|
||||||
|
%doc AUTHORS ChangeLog NEWS README
|
||||||
%{_bindir}/CheckAPFEL
|
%{_bindir}/CheckAPFEL
|
||||||
%{_bindir}/%{name}-config
|
%{_bindir}/%{name}-config
|
||||||
|
%{_bindir}/ListFunctions
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
|
||||||
%files -n %{pypackage}
|
%files -n %{pypackage}
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_bindir}/ListFunctions
|
|
||||||
%{python_sitearch}/%{name}.py
|
%{python_sitearch}/%{name}.py
|
||||||
# COMPILED OBJECT FILE CONTAINS BUILDROOT
|
# COMPILED OBJECT FILE CONTAINS BUILDROOT
|
||||||
%exclude %{python_sitearch}/%{name}.pyc
|
%exclude %{python_sitearch}/%{name}.pyc
|
||||||
%{python_sitearch}/_%{name}.so
|
%{python_sitearch}/_%{name}.so
|
||||||
%{python_sitearch}/APFEL-*py%{py_ver}.egg-info
|
%{python_sitearch}/APFEL-*py%{py_ver}.egg-info
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc doc/pdfs/manual.pdf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user