forked from pool/apfel
Accepting request 230416 from home:badshah400:heppack
New package: apfel is a high energy package for computing parton distribution function evolution. apfelgui is a package that provides an easy to use GUI for apfel. It is built out of the same source tarball but requires an installed apfel to build. NOTE FOR REVIEWER: If the package is accepted into science project, kindly create a linked package called apfelgui in the science project as well. OBS-URL: https://build.opensuse.org/request/show/230416 OBS-URL: https://build.opensuse.org/package/show/science/apfel?expand=0&rev=1
This commit is contained in:
commit
4c62046942
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
15
README
Normal file
15
README
Normal file
@ -0,0 +1,15 @@
|
||||
NEVER MODIFY apfelgui.spec DIRECTLY.
|
||||
|
||||
To ensure that apfel and apfelgui packages are always tied at the same version,
|
||||
the same package build provides both the apfel and apfelgui spec files. The
|
||||
apfelgui package in science is simply a linked version of the apfel package.
|
||||
|
||||
For packaging a version change please follow the steps:
|
||||
1. Edit the Version in the apfel.spec file as applicable,
|
||||
2. Document changes in the apfel.changes file, and
|
||||
3. Then run the pre_checkin.sh script to update the apfelgui.spec file
|
||||
appropriately
|
||||
|
||||
If any other changes to the apfelgui.spec file might be necessary (patches,
|
||||
build issues, etc.), please make these changes in the *apfelgui.spec.in* file
|
||||
and run the pre_checkin.sh script to generate the updated apfelgui.spec file.
|
3
apfel-2.0.1.tar.gz
Normal file
3
apfel-2.0.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fcdae5ceb5333d288b043b7d90eec914de0ffad6138eb4b4587e2014f0c76c11
|
||||
size 1852444
|
5
apfel.changes
Normal file
5
apfel.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 13 21:16:25 UTC 2014 - badshah400@gmail.com
|
||||
|
||||
- Initial package (version 2.0.1).
|
||||
|
123
apfel.spec
Normal file
123
apfel.spec
Normal file
@ -0,0 +1,123 @@
|
||||
#
|
||||
# spec file for package apfel
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define soname libAPFEL0
|
||||
%define pypackage python-%{name}
|
||||
|
||||
Name: apfel
|
||||
Version: 2.0.1
|
||||
Release: 0
|
||||
Summary: A PDF Evolution Library
|
||||
License: GPL-3.0+
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://apfel.hepforge.org/
|
||||
Source: http://apfel.hepforge.org/downloads/%{name}-%{version}.tar.gz
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gcc-fortran
|
||||
BuildRequires: lhapdf-devel <= 5.9.1
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||
evolution of parton distributions. It is written and maintained
|
||||
by Valerio Bertone (CERN), Stefano Carrazza (Milano) and
|
||||
Juan Rojo (CERN).
|
||||
|
||||
%package -n %{soname}
|
||||
Summary: A PDF Evolution Library
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description -n %{soname}
|
||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||
evolution of parton distributions. It is written and maintained
|
||||
by Valerio Bertone (CERN), Stefano Carrazza (Milano) and
|
||||
Juan Rojo (CERN).
|
||||
|
||||
This package provides the shared libraries for %{name}.
|
||||
|
||||
%package devel
|
||||
Summary: A PDF Evolution Library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{soname} = %{version}
|
||||
|
||||
%description devel
|
||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||
evolution of parton distributions. It is written and maintained
|
||||
by Valerio Bertone (CERN), Stefano Carrazza (Milano) and
|
||||
Juan Rojo (CERN).
|
||||
|
||||
This package provides the source files required to develop
|
||||
applications with %{name}.
|
||||
|
||||
%package -n %{pypackage}
|
||||
Summary: A PDF Evolution Library
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description -n %{pypackage}
|
||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||
evolution of parton distributions. It is written and maintained
|
||||
by Valerio Bertone (CERN), Stefano Carrazza (Milano) and
|
||||
Juan Rojo (CERN).
|
||||
|
||||
This package provides the shared libraries for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
# REMOVE libtool ARCHIVES
|
||||
rm %{buildroot}%{_libdir}/*.la
|
||||
|
||||
# REMOVE README FROM A NON-STD LOCATION, INSTALL IT USING %%doc INSTEAD
|
||||
rm -fr %{buildroot}%{_datadir}/doc/apfel
|
||||
|
||||
%post -n %{soname}
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun -n %{soname}
|
||||
/sbin/ldconfig
|
||||
|
||||
%files -n %{soname}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/APFEL/
|
||||
%doc AUTHORS ChangeLog NEWS README COPYING
|
||||
%{_bindir}/%{name}-config
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files -n %{pypackage}
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/%{name}
|
||||
%{python_sitearch}/%{name}.py
|
||||
# COMPILED OBJECT FILE CONTAINS BUILDROOT
|
||||
%exclude %{python_sitearch}/%{name}.pyc
|
||||
%{python_sitearch}/_%{name}.so
|
||||
%{python_sitearch}/APFEL-%{version}-py%{py_ver}.egg-info
|
||||
|
||||
%changelog
|
5
apfelgui.changes
Normal file
5
apfelgui.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 13 21:16:25 UTC 2014 - badshah400@gmail.com
|
||||
|
||||
- Initial package (version 2.0.1).
|
||||
|
92
apfelgui.spec
Normal file
92
apfelgui.spec
Normal file
@ -0,0 +1,92 @@
|
||||
#
|
||||
# spec file for package apfel-gui
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define bname apfel
|
||||
|
||||
Name: apfelgui
|
||||
Version: 2.0.1
|
||||
Release: 0
|
||||
Summary: A PDF Evolution Library
|
||||
License: GPL-3.0+
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://apfel.hepforge.org/
|
||||
Source: http://apfel.hepforge.org/downloads/%{bname}-%{version}.tar.gz
|
||||
BuildRequires: apfel-devel = %{version}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gcc-fortran
|
||||
BuildRequires: lhapdf-devel <= 5.9.1
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: libroot-core-devel
|
||||
BuildRequires: libroot-graf2d-gpad-devel
|
||||
BuildRequires: libroot-graf2d-graf-devel
|
||||
BuildRequires: libroot-graf2d-postscript-devel
|
||||
BuildRequires: libroot-graf3d-g3d-devel
|
||||
BuildRequires: libroot-gui-devel
|
||||
BuildRequires: libroot-hist-devel
|
||||
BuildRequires: libroot-io-devel
|
||||
BuildRequires: libroot-math-mathcore-devel
|
||||
BuildRequires: libroot-math-matrix-devel
|
||||
BuildRequires: libroot-math-physics-devel
|
||||
BuildRequires: libroot-net-devel
|
||||
BuildRequires: libroot-tree-devel
|
||||
BuildRequires: python-apfel = %{version}
|
||||
BuildRequires: python-devel
|
||||
Requires: apfel-devel = %{version}
|
||||
Requires: libroot-core-devel
|
||||
Requires: libroot-graf2d-gpad-devel
|
||||
Requires: libroot-graf2d-graf-devel
|
||||
Requires: libroot-graf2d-postscript-devel
|
||||
Requires: libroot-graf3d-g3d-devel
|
||||
Requires: libroot-gui-devel
|
||||
Requires: libroot-hist-devel
|
||||
Requires: libroot-io-devel
|
||||
Requires: libroot-math-mathcore-devel
|
||||
Requires: libroot-math-matrix-devel
|
||||
Requires: libroot-math-physics-devel
|
||||
Requires: libroot-net-devel
|
||||
Requires: libroot-tree-devel
|
||||
Requires: python-apfel = %{version}
|
||||
Requires: root-plugin-graf2d-asimage-devel
|
||||
Requires: root-plugin-hist-histpainter-devel
|
||||
Requires: root-ttf
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||
evolution of parton distributions. It is written and maintained
|
||||
by Valerio Bertone (CERN), Stefano Carrazza (Milano) and
|
||||
Juan Rojo (CERN).
|
||||
|
||||
This package provides the gui for apfel.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{bname}-%{version}/apfelGUI
|
||||
|
||||
%build
|
||||
qmake
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
# make_install script is broken
|
||||
install -D apfelgui %{buildroot}%{_bindir}/apfelgui
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/apfelgui
|
||||
|
||||
%changelog
|
92
apfelgui.spec.in
Normal file
92
apfelgui.spec.in
Normal file
@ -0,0 +1,92 @@
|
||||
#
|
||||
# spec file for package apfel-gui
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define bname apfel
|
||||
|
||||
Name: apfelgui
|
||||
Version: @version@
|
||||
Release: 0
|
||||
Summary: A PDF Evolution Library
|
||||
License: GPL-3.0+
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://apfel.hepforge.org/
|
||||
Source: http://apfel.hepforge.org/downloads/%{bname}-%{version}.tar.gz
|
||||
BuildRequires: apfel-devel = %{version}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gcc-fortran
|
||||
BuildRequires: lhapdf-devel <= 5.9.1
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: libroot-core-devel
|
||||
BuildRequires: libroot-graf2d-gpad-devel
|
||||
BuildRequires: libroot-graf2d-graf-devel
|
||||
BuildRequires: libroot-graf2d-postscript-devel
|
||||
BuildRequires: libroot-graf3d-g3d-devel
|
||||
BuildRequires: libroot-gui-devel
|
||||
BuildRequires: libroot-hist-devel
|
||||
BuildRequires: libroot-io-devel
|
||||
BuildRequires: libroot-math-mathcore-devel
|
||||
BuildRequires: libroot-math-matrix-devel
|
||||
BuildRequires: libroot-math-physics-devel
|
||||
BuildRequires: libroot-net-devel
|
||||
BuildRequires: libroot-tree-devel
|
||||
BuildRequires: python-apfel = %{version}
|
||||
BuildRequires: python-devel
|
||||
Requires: apfel-devel = %{version}
|
||||
Requires: libroot-core-devel
|
||||
Requires: libroot-graf2d-gpad-devel
|
||||
Requires: libroot-graf2d-graf-devel
|
||||
Requires: libroot-graf2d-postscript-devel
|
||||
Requires: libroot-graf3d-g3d-devel
|
||||
Requires: libroot-gui-devel
|
||||
Requires: libroot-hist-devel
|
||||
Requires: libroot-io-devel
|
||||
Requires: libroot-math-mathcore-devel
|
||||
Requires: libroot-math-matrix-devel
|
||||
Requires: libroot-math-physics-devel
|
||||
Requires: libroot-net-devel
|
||||
Requires: libroot-tree-devel
|
||||
Requires: python-apfel = %{version}
|
||||
Requires: root-plugin-graf2d-asimage-devel
|
||||
Requires: root-plugin-hist-histpainter-devel
|
||||
Requires: root-ttf
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
APFEL is a library to perform the combined QCD+QED DGLAP
|
||||
evolution of parton distributions. It is written and maintained
|
||||
by Valerio Bertone (CERN), Stefano Carrazza (Milano) and
|
||||
Juan Rojo (CERN).
|
||||
|
||||
This package provides the gui for apfel.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{bname}-%{version}/apfelGUI
|
||||
|
||||
%build
|
||||
qmake
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
# make_install script is broken
|
||||
install -D apfelgui %{buildroot}%{_bindir}/apfelgui
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/apfelgui
|
||||
|
||||
%changelog
|
4
pre_checkin.sh
Normal file
4
pre_checkin.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
vtagline=$(grep "^Version:.*$" apfel.spec)
|
||||
sed "s/^Version:.*@version@$/${vtagline}/" apfelgui.spec.in > apfelgui.spec
|
||||
cp apfel.changes apfelgui.changes
|
Loading…
Reference in New Issue
Block a user