forked from pool/clhep
- Split out complex helper macros into clhep.macros. And actually remove clhep-set-soversion.patch: this is really not applied in the sources :) OBS-URL: https://build.opensuse.org/request/show/1137040 OBS-URL: https://build.opensuse.org/package/show/science/clhep?expand=0&rev=41
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
# Note: Inter-package dependencies are listed here: https://proj-clhep.web.cern.ch/proj-clhep/packages.html
|
|
|
|
# Section Helper macros to define CLHEP subpackages
|
|
%define clhep_libname(:-:) libCLHEP-%1-%{tagname}
|
|
%define clhep_pkconf_name(:-:) clhep-%( PKGNAME=%1; echo -n ${PKGNAME,,} )
|
|
|
|
%define clhep_subpkg_lib(n:)\
|
|
%define libname %{-n:%{-n*}}%{!-n:%{nil}}\
|
|
%package -n libCLHEP-%{libname}-%{tagname}\
|
|
Summary: Shared library for CLHEP %{libname}\
|
|
\
|
|
%description -n libCLHEP-%{libname}-%{tagname}\
|
|
This package provides the CLHEP %{libname} shared library.\
|
|
\
|
|
%post -n libCLHEP-%{libname}-%{tagname} -p /sbin/ldconfig\
|
|
%postun -n libCLHEP-%{libname}-%{tagname} -p /sbin/ldconfig\
|
|
\
|
|
%files -n libCLHEP-%{libname}-%{tagname}\
|
|
%{_libdir}/libCLHEP-%{libname}-%{version}.so\
|
|
|
|
%define clhep_subpkg_devel(n:)\
|
|
%define pname %{-n:%{-n*}}%{!-n:%{nil}}\
|
|
%package %{pname}-devel\
|
|
Summary: Headers and sources for development with CLHEP %{pname} library\
|
|
Requires: %{clhep_libname %{pname}} = %{version} %*\
|
|
\
|
|
%description %{pname}-devel\
|
|
This package provides the headers and sources for development with CLHEP %{pname} library.\
|
|
\
|
|
%files %{pname}-devel\
|
|
%license COPYING COPYING.LESSER\
|
|
%{_bindir}/%{pname}-config\
|
|
%{_libdir}/pkgconfig/%{clhep_pkconf_name %{pname}}.pc\
|
|
%dir %{_includedir}/CLHEP\
|
|
%{_includedir}/CLHEP/%{pname}/\
|
|
|
|
# /Section
|
|
|