Projects
home:Eustace:branches:Eulaceura:Factory
coin-or-coinutils
_service:obs_scm:coin-or-CoinUtils.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:coin-or-CoinUtils.spec of Package coin-or-coinutils
%global module CoinUtils %global blaslib openblas Name: coin-or-%{module} Summary: Coin-or Utilities Version: 2.11.4 Release: 1 License: EPL-1.0 URL: https://github.com/coin-or/%{module} Source0: %{url}/archive/releases/%{version}/%{module}-%{version}.tar.gz BuildRequires: bzip2-devel BuildRequires: coin-or-Data-Netlib BuildRequires: coin-or-Sample BuildRequires: doxygen BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: glpk-devel BuildRequires: make BuildRequires: %{blaslib}-devel BuildRequires: pkgconfig BuildRequires: readline-devel BuildRequires: zlib-devel # Install documentation in standard rpm directory Patch0: %{name}-docdir.patch # Prevent a segfault when a problem's status has not been set Patch1: %{name}-status.patch %description CoinUtils (Coin-or Utilities) is an open-source collection of classes and functions that are generally useful to more than one COIN-OR project. These utilities include: * Vector classes * Matrix classes * MPS file reading * Comparing floating point numbers with a tolerance %package devel Summary: Development files for %{name} Requires: coin-or-Sample Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} %description doc This package contains the documentation for %{name}. %prep %autosetup -p1 -n %{module}-releases-%{version} # The pkgconfig file lists transitive dependencies. Those are necessary when # using static libraries, but not with shared libraries. sed -i 's/ @COINUTILSLIB_PCLIBS@/\nLibs.private:&/' CoinUtils/coinutils.pc.in %build %configure \ --enable-gnu-packages \ --with-blas-incdir=%{_includedir}/%{blaslib} \ --with-blas-lib=-l%{blaslib} \ --with-glpk-incdir=%{_includedir} \ --with-glpk-lib=-lglpk \ --with-lapack-incdir=%{_includedir}/%{blaslib} \ --with-lapack-lib=-l%{blaslib} # Get rid of undesirable hardcoded rpaths; workaround libtool reordering # -Wl,--as-needed after all the libraries. sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \ -i libtool %make_build all doxydoc %install %make_install rm %{buildroot}%{_libdir}/*.la rm -f %{buildroot}%{_docdir}/%{name}/{LICENSE,coinutils_addlibs.txt} cp -a doxydoc/{html,*.tag} %{buildroot}%{_docdir}/%{name} %check LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %ldconfig_scriptlets %files %{_pkgdocdir}/ %exclude %{_pkgdocdir}/html %exclude %{_pkgdocdir}/coinutils_doxy.tag %license LICENSE %{_libdir}/libCoinUtils.so.3 %{_libdir}/libCoinUtils.so.3.* %files devel %{_includedir}/coin %{_libdir}/libCoinUtils.so %{_libdir}/pkgconfig/coinutils.pc %files doc %{_pkgdocdir}/html/ %{_pkgdocdir}/coinutils_doxy.tag %changelog * Thu Jan 27 2022 liweigang <liweiganga@uniontech.com> - 2.11.4-1 - init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2