2016-10-30 06:47:59 +00:00
#
# spec file for package ColorFull
#
2024-05-16 16:33:43 +00:00
# Copyright (c) 2024 SUSE LLC
2016-10-30 06:47:59 +00:00
#
# 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.
2024-05-16 16:33:43 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2016-10-30 06:47:59 +00:00
#
%define shlib lib%{name}0
Name : ColorFull
2017-08-02 19:55:56 +00:00
Version : 1.1
2016-10-30 06:47:59 +00:00
Release : 0
2016-10-31 00:18:02 +00:00
Summary : C++ library for calculations in QCD (SU(Nc)) color space
2024-05-16 16:33:43 +00:00
License : GPL-2.0-only
2016-10-30 06:47:59 +00:00
Group : Productivity/Scientific/Physics
2024-05-16 16:33:43 +00:00
URL : http://colorfull.hepforge.org/
2016-10-30 06:47:59 +00:00
Source0 : http://colorfull.hepforge.org/%{name} -%{version} .tar.gz
2017-08-02 19:55:56 +00:00
Source1 : %{name} -rpmlintrc
2016-10-30 06:47:59 +00:00
# PATCH-FIX-UPSTREAM ColorFull-install-pkgconfig-file.patch badshah400@gmail.com -- Add a pkgconfig file and modify the autotool files to install it to an appropriate location
Patch2 : ColorFull-install-pkgconfig-file.patch
BuildRequires : gcc-c++
BuildRequires : libtool
BuildRequires : pkgconfig
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
2016-10-31 00:18:02 +00:00
%{name} is a C++ library for calculations in QCD (SU(Nc)) color space. It can
2016-10-30 06:47:59 +00:00
* Square any QCD color amplitude and calculate any interference.
* Create a trace type basis for any number of quarks and gluons.
* Read in and write out color bases.
* Calculate scalar product matrices, i.e., the matrices of scalar products
between the basis vectors.
* Describe the effect of gluon exchange, including calculating the color
soft anomalous dimension matrices.
* Describe the effect of gluon emission.
* Be interfaced to Herwig++ (>= 2.7) via Matchbox.
%package -n %{shlib}
2016-10-31 00:18:02 +00:00
Summary : C++ library for calculations in QCD (SU(Nc)) color space
Group : System/Libraries
2016-10-30 06:47:59 +00:00
%description -n %{shlib}
2016-10-31 00:18:02 +00:00
%{name} is a C++ library for calculations in QCD (SU(Nc)) color space. It can
2016-10-30 06:47:59 +00:00
* Square any QCD color amplitude and calculate any interference.
* Create a trace type basis for any number of quarks and gluons.
* Read in and write out color bases.
* Calculate scalar product matrices, i.e., the matrices of scalar products
between the basis vectors.
* Describe the effect of gluon exchange, including calculating the color
soft anomalous dimension matrices.
* Describe the effect of gluon emission.
* Be interfaced to Herwig++ (>= 2.7) via Matchbox.
This package provides the shared library for %{name} .
%package devel
2016-10-31 00:18:02 +00:00
Summary : Development files for ColorFull, a library for calculations in QCD color space
2016-10-30 06:47:59 +00:00
Group : Development/Libraries/C and C++
Requires : %{shlib} = %{version}
%description devel
2016-10-31 00:18:02 +00:00
%{name} is a C++ library for calculations in QCD (SU(Nc)) color space. It can
2016-10-30 06:47:59 +00:00
* Square any QCD color amplitude and calculate any interference.
* Create a trace type basis for any number of quarks and gluons.
* Read in and write out color bases.
* Calculate scalar product matrices, i.e., the matrices of scalar products
between the basis vectors.
* Describe the effect of gluon exchange, including calculating the color
soft anomalous dimension matrices.
* Describe the effect of gluon emission.
* Be interfaced to Herwig++ (>= 2.7) via Matchbox.
This package provides the headers and source files needed for developing applications using %{name} .
%prep
2024-05-16 16:33:43 +00:00
%autosetup -p1
2016-10-30 06:47:59 +00:00
%build
autoreconf -fiv
%configure
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name " * . l a " -delete -print
2017-08-02 19:55:56 +00:00
# DON'T INSTALL TEST/EXAMPLE BINARIES, PKG THE CODES AS DOC INSTEAD
rm %{buildroot} %{_bindir} /{ColorFull_test,ColorPlay}
2016-10-30 06:47:59 +00:00
2017-08-02 19:55:56 +00:00
# MOVE LIBS INSTALLED TO STD LIBDIR
mv %{buildroot} %{_libdir} /%{name} /* %{buildroot} %{_libdir} /
rm -fr %{buildroot} %{_libdir} /%{name} /
2016-10-30 06:47:59 +00:00
%post -n %{shlib} -p /sbin/ldconfig
%postun -n %{shlib} -p /sbin/ldconfig
%files -n %{shlib}
%defattr (-,root,root)
2017-08-02 19:55:56 +00:00
%{_libdir} /*.so.*
2016-10-30 06:47:59 +00:00
%files devel
%defattr (-,root,root)
%doc AUTHORS ChangeLog README COPYING
%doc Test/*.cc Examples/*.cc
2017-08-02 19:55:56 +00:00
%{_libdir} /*.so
2016-10-30 06:47:59 +00:00
%{_libdir} /pkgconfig/%{name} .pc
%{_includedir} /%{name} /
%changelog