2013-11-04 18:54:43 +00:00
|
|
|
%global module Clp
|
|
|
|
|
|
|
|
Name: coin-or-%{module}
|
|
|
|
Group: Applications/Engineering
|
|
|
|
Summary: Coin-or linear programming
|
2014-08-30 19:48:03 +00:00
|
|
|
Version: 1.15.10
|
2014-08-31 17:23:21 +00:00
|
|
|
Release: 2%{?dist}
|
2013-11-04 18:54:43 +00:00
|
|
|
License: EPL
|
|
|
|
URL: http://projects.coin-or.org/%{module}
|
|
|
|
Source0: http://www.coin-or.org/download/pkgsource/%{module}/%{module}-%{version}.tgz
|
|
|
|
BuildRequires: atlas-devel
|
|
|
|
BuildRequires: blas-devel
|
2013-11-04 19:45:13 +00:00
|
|
|
BuildRequires: bzip2-devel
|
2013-11-04 18:54:43 +00:00
|
|
|
BuildRequires: coin-or-CoinUtils-devel
|
|
|
|
BuildRequires: coin-or-Osi-devel
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: glpk-devel
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: lapack-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: readline-devel
|
2013-11-04 19:45:13 +00:00
|
|
|
BuildRequires: zlib-devel
|
2013-11-04 18:54:43 +00:00
|
|
|
|
|
|
|
# Properly handle DESTDIR
|
|
|
|
Patch0: %{name}-pkgconfig.patch
|
|
|
|
|
|
|
|
# Install documentation in standard rpm directory
|
|
|
|
Patch1: %{name}-docdir.patch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Clp (Coin-or linear programming) is an open-source linear programming
|
|
|
|
solver written in C++. It is primarily meant to be used as a callable
|
|
|
|
library, but a basic, stand-alone executable version is also available.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: coin-or-CoinUtils-devel
|
|
|
|
Requires: %{name}%{?_isa} = %{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}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{module}-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
# Kill rpaths
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
2014-03-08 21:01:35 +00:00
|
|
|
make %{?_smp_mflags} all doxydoc
|
2013-11-04 18:54:43 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
cp -a doxydoc/html %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
|
|
|
%check
|
|
|
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/AUTHORS
|
|
|
|
%doc %{_docdir}/%{name}/clp_addlibs.txt
|
|
|
|
%doc %{_docdir}/%{name}/LICENSE
|
|
|
|
%doc %{_docdir}/%{name}/README
|
|
|
|
%{_bindir}/clp
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/coin/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{_docdir}/%{name}/html
|
|
|
|
|
|
|
|
%changelog
|
2014-08-31 17:23:21 +00:00
|
|
|
* Sun Aug 31 2014 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.15.10-2
|
|
|
|
- Rebuild to ensure packages are built in proper order.
|
|
|
|
|
2014-08-30 19:48:03 +00:00
|
|
|
* Sat Aug 30 2014 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.15.10-1
|
|
|
|
- Update to latest upstream release (#1133195#c2).
|
|
|
|
|
2014-08-16 00:48:24 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-16 15:43:13 +00:00
|
|
|
* Wed Jul 16 2014 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.15.7-1
|
|
|
|
- Update to latest upstream release (#1089923).
|
|
|
|
|
2014-06-07 05:23:31 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-11-04 18:54:43 +00:00
|
|
|
* Mon Nov 4 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.15.3-3
|
|
|
|
- Correct source url path (#894587#c7).
|
|
|
|
- Add coin-or-CoinUtils-devel requires to the devel package (#894587#c7).
|
|
|
|
|
|
|
|
* Fri Nov 1 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.15.3-2
|
|
|
|
- Use proper _smp_flags macro (#894586#c6).
|
|
|
|
|
|
|
|
* Fri Nov 1 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.15.3-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
|
|
|
* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.14.8-1
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
|
|
|
* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.14.7-3
|
|
|
|
- Rename repackaged tarball.
|
|
|
|
|
|
|
|
* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.14.7-2
|
|
|
|
- Rename package to coin-or-Clp.
|
|
|
|
- Do not package Thirdy party data or data without clean license.
|
|
|
|
|
|
|
|
* Thu Sep 27 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.14.7-1
|
|
|
|
- Initial coinor-Clp spec.
|