coinmp/coinmp.spec

143 lines
3.9 KiB
RPMSpec
Raw Normal View History

Name: coinmp
Version: 1.8.2
Release: 1mamba
Summary: A C-API library that supports most of the functionality of CLP, CBC, and CGL projects
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://projects.coin-or.org/CoinMP
Source: http://www.coin-or.org/download/source/CoinMP/CoinMP-%{version}.tgz
License: Common Public License 1.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libatlas-devel
BuildRequires: libblas-devel
BuildRequires: libbzip2-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
CoinMP is a C-API library that supports most of the functionality of CLP (Coin LP), CBC (Coin Branch-and-Cut), and CGL (Cut Generation Library) projects.
%package -n lib%{name}
Group: System/Libraries
Summary: A C-API library that supports most of the functionality of CLP, CBC, and CGL projects
%description -n lib%{name}
CoinMP is a C-API library that supports most of the functionality of CLP (Coin LP), CBC (Coin Branch-and-Cut), and CGL (Cut Generation Library) projects.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n CoinMP-%{version}
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
# FIXME
rm -rf %{buildroot}%{buildroot}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/cbc
%{_bindir}/clp
%dir %{_datadir}/coin
%dir %{_datadir}/coin/Data
%dir %{_datadir}/coin/Data/Sample
%{_datadir}/coin/Data/Sample/*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libCbc.so.*
%{_libdir}/libCbcSolver.so.*
%{_libdir}/libCgl.so.*
%{_libdir}/libClp.so.*
%{_libdir}/libClpSolver.so.*
%{_libdir}/libCoinMP.so.*
%{_libdir}/libCoinUtils.so.*
%{_libdir}/libOsi.so.*
%{_libdir}/libOsiCbc.so.*
%{_libdir}/libOsiClp.so.*
%{_libdir}/libOsiCommonTests.so.*
%doc AUTHORS LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/coin
%{_includedir}/coin/CbcOrClpParam.cpp
%{_includedir}/coin/*.hpp
%{_includedir}/coin/*.h
%{_libdir}/libCbc.la
%{_libdir}/libCbc.so
%{_libdir}/libCbcSolver.la
%{_libdir}/libCbcSolver.so
%{_libdir}/libCgl.la
%{_libdir}/libCgl.so
%{_libdir}/libClp.la
%{_libdir}/libClp.so
%{_libdir}/libClpSolver.la
%{_libdir}/libClpSolver.so
%{_libdir}/libCoinMP.la
%{_libdir}/libCoinMP.so
%{_libdir}/libCoinUtils.la
%{_libdir}/libCoinUtils.so
%{_libdir}/libOsi.la
%{_libdir}/libOsi.so
%{_libdir}/libOsiCbc.la
%{_libdir}/libOsiCbc.so
%{_libdir}/libOsiClp.la
%{_libdir}/libOsiClp.so
%{_libdir}/libOsiCommonTests.la
%{_libdir}/libOsiCommonTests.so
%{_libdir}/pkgconfig/cbc.pc
%{_libdir}/pkgconfig/cgl.pc
%{_libdir}/pkgconfig/clp.pc
%{_libdir}/pkgconfig/coindatasample.pc
%{_libdir}/pkgconfig/coinmp.pc
%{_libdir}/pkgconfig/coinutils.pc
%{_libdir}/pkgconfig/osi-cbc.pc
%{_libdir}/pkgconfig/osi-clp.pc
%{_libdir}/pkgconfig/osi-unittests.pc
%{_libdir}/pkgconfig/osi.pc
%dir %{_datadir}/coin/doc
%{_datadir}/coin/doc/*
%doc README
%changelog
* Wed Jun 10 2015 Automatic Build System <autodist@mambasoft.it> 1.8.2-1mamba
- automatic update by autodist
* Thu May 07 2015 Automatic Build System <autodist@mambasoft.it> 1.8.1-1mamba
- automatic update by autodist
* Sun Feb 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.0-1mamba
- package created using the webbuild interface