glue.spec: updated spec file

- use new macro for python3 version
- added missing `gcc` and `make` dependencies
parent d4f3645f
......@@ -8,34 +8,41 @@ Source: lscsoft-%{name}-%{version}.tar.gz
Url: http://www.lsc-group.phys.uwm.edu/daswg/projects/glue.html
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: python-cjson pyOpenSSL numpy python-six glue-common python >= 2.7
# build requirements
BuildRequires: gcc
BuildRequires: python-rpm-macros
BuildRequires: python2-rpm-macros
BuildRequires: python3-rpm-macros
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python%{python3_version_nodots}-devel
BuildRequires: python%{python3_version_nodots}-setuptools
# testing requirements
BuildRequires: make
BuildRequires: python-matplotlib
BuildRequires: numpy
BuildRequires: python-six
BuildRequires: python2-ligo-segments
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-numpy
BuildRequires: python%{python3_pkgversion}-six
BuildRequires: python%{python3_pkgversion}-ligo-segments
BuildRequires: python%{python3_version_nodots}-numpy
BuildRequires: python%{python3_version_nodots}-six
BuildRequires: python%{python3_version_nodots}-ligo-segments
Prefix: %{_exec_prefix}
%description
Glue (Grid LSC User Environment) is a suite of python modules and programs to
allow users to run LSC codes on the grid.
%package -n python%{python3_pkgversion}-glue
%package -n python%{python3_version_nodots}-glue
Summary: The Grid LSC User Environment
Group: Development/Libraries
Requires: python%{python3_pkgversion}
Requires: python%{python3_pkgversion}-numpy
Requires: python%{python3_pkgversion}-six
Requires: python%{python3_pkgversion}-glue-common
%{?python_provide:%python_provide python%{python3_pkgversion}-glue}
%description -n python%{python3_pkgversion}-glue
Requires: python%{python3_version_nodots}
Requires: python%{python3_version_nodots}-numpy
Requires: python%{python3_version_nodots}-six
Requires: python%{python3_version_nodots}-glue-common
%{?python_provide:%python_provide python%{python3_version_nodots}-glue}
%description -n python%{python3_version_nodots}-glue
Glue (Grid LSC User Environment) is a suite of python modules and programs to
allow users to run LSC codes on the grid.
......@@ -47,13 +54,13 @@ Requires: python numpy python-six
This is for the files that are common across the glue subpackages, namely
git_version, iterutils and __init__.py
%package -n python%{python3_pkgversion}-glue-common
%package -n python%{python3_version_nodots}-glue-common
Summary: The common files needed for all sub-packages
Group: Development/Libraries
Requires: python%{python3_pkgversion}
Requires: python%{python3_pkgversion}-numpy
Requires: python%{python3_pkgversion}-six
%description -n python%{python3_pkgversion}-glue-common
Requires: python%{python3_version_nodots}
Requires: python%{python3_version_nodots}-numpy
Requires: python%{python3_version_nodots}-six
%description -n python%{python3_version_nodots}-glue-common
This is for the files that are common across the glue subpackages, namely
git_version, iterutils and __init__.py
......@@ -104,7 +111,7 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{python2_sitearch}/glue/git_version.py*
#%exclude %{_exec_prefix}/test/verifyutils.py
%files -n python%{python3_pkgversion}-glue
%files -n python%{python3_version_nodots}-glue
%defattr(-,root,root)
%license LICENSE
%{python3_sitearch}/lscsoft_glue-*.egg-info/
......@@ -130,7 +137,7 @@ rm -rf $RPM_BUILD_ROOT
%{python2_sitearch}/glue/git_version.py
%{python2_sitearch}/glue/git_version.pyc
%files -n python%{python3_pkgversion}-glue-common
%files -n python%{python3_version_nodots}-glue-common
%license LICENSE
%{python3_sitearch}/glue/__init__.py
%{python3_sitearch}/glue/__pycache__/__init__.cpython-%{python3_version_nodots}.pyc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment