cc221f3
%global		module		DyLP
cc221f3
cc221f3
Name:		coin-or-%{module}
cc221f3
Summary:	Implementation of the dynamic simplex algorithm
2595913
Version:	1.10.4
87d59d7
Release:	7%{?dist}
2595913
License:	EPL-1.0
cc221f3
URL:		http://projects.coin-or.org/%{module}
cc221f3
Source0:	http://www.coin-or.org/download/pkgsource/%{module}/%{module}-%{version}.tgz
2595913
BuildRequires:	coin-or-Data-Netlib
cc221f3
BuildRequires:	coin-or-Osi-devel
2595913
BuildRequires:	coin-or-Osi-doc
cc221f3
BuildRequires:	doxygen
2595913
BuildRequires:	gcc
2595913
BuildRequires:	gcc-c++
bfeda3a
BuildRequires:	make
cc221f3
cc221f3
# Install documentation in standard rpm directory
16e91e5
Patch0:		%{name}-docdir.patch
cc221f3
2595913
# Fix a sequence point error
2595913
Patch1:		%{name}-seqpoint.patch
2595913
cc221f3
%description
cc221f3
DyLP is an implementation of the dynamic simplex algorithm. Briefly, dynamic
cc221f3
simplex attempts to work with an active constraint system which is a subset
cc221f3
of the full constraint system. It alternates between primal and dual simplex
cc221f3
phases. Between simplex phases, it deactivates variables and constraints
cc221f3
which are not currently useful, and scans the full constraint system to
cc221f3
activate variables and constraints which have become useful.
cc221f3
cc221f3
%package	devel
cc221f3
Summary:	Development files for %{name}
2595913
Requires:	coin-or-Osi-devel%{?_isa}
cc221f3
Requires:	%{name}%{?_isa} = %{version}-%{release}
cc221f3
2595913
%description	devel
cc221f3
The %{name}-devel package contains libraries and header files for
cc221f3
developing applications that use %{name}.
cc221f3
cc221f3
%package	doc
cc221f3
Summary:	Documentation files for %{name}
2595913
Requires:	coin-or-Osi-doc
cc221f3
Requires:	%{name} = %{version}-%{release}
cc221f3
BuildArch:	noarch
cc221f3
cc221f3
%description	doc
cc221f3
This package contains the documentation for %{name}.
cc221f3
cc221f3
%prep
2595913
%autosetup -p1 -n %{module}-%{version}
cc221f3
2595913
# Set the path to the error text message file
2595913
sed -i 's,\(DYLP_ERRMSGDIR=\).\$abs_source_dir.*,\1"%{_datadir}/coin/",' \
2595913
    configure
cc221f3
cc221f3
%build
cc221f3
%configure
2595913
2595913
# Get rid of undesirable hardcoded rpaths; workaround libtool reordering
2595913
# -Wl,--as-needed after all the libraries.
2595913
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
2595913
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
2595913
    -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \
2595913
    -i libtool
2595913
2595913
%make_build all doxydoc
cc221f3
cc221f3
%install
2595913
%make_install
cc221f3
rm -f %{buildroot}%{_libdir}/*.la
2595913
rm -f %{buildroot}%{_docdir}/%{name}/{LICENSE,dylp_addlibs.txt}
2595913
cp -a doxydoc/{html,*.tag} %{buildroot}%{_docdir}/%{name}
2595913
2595913
# The pkgconfig file lists transitive dependencies.  Those are necessary when
2595913
# using static libraries, but not with shared libraries.
2595913
sed -i 's/ -lm//' %{buildroot}%{_libdir}/pkgconfig/dylp.pc
2595913
2595913
# Install the error text message file
2595913
mkdir -p %{buildroot}%{_datadir}/coin
2595913
cp -p src/Dylp/dy_errmsgs.txt %{buildroot}%{_datadir}/coin
cc221f3
cc221f3
%check
2595913
LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test DYLP_ERRMSGDIR=$PWD/src/Dylp/
cc221f3
f987825
%ldconfig_scriptlets
cc221f3
cc221f3
%files
2595913
%license LICENSE
cc221f3
%dir %{_docdir}/%{name}
2595913
%{_docdir}/%{name}/AUTHORS
2595913
%{_docdir}/%{name}/README
2595913
%{_libdir}/libDylp.so.1
2595913
%{_libdir}/libDylp.so.1.*
2595913
%{_libdir}/libOsiDylp.so.1
2595913
%{_libdir}/libOsiDylp.so.1.*
2595913
%{_datadir}/coin/
cc221f3
cc221f3
%files		devel
cc221f3
%{_includedir}/coin/*
2595913
%{_libdir}/libDylp.so
2595913
%{_libdir}/libOsiDylp.so
2595913
%{_libdir}/pkgconfig/dylp.pc
2595913
%{_libdir}/pkgconfig/osi-dylp.pc
cc221f3
cc221f3
%files		doc
2595913
%{_docdir}/%{name}/html
2595913
%{_docdir}/%{name}/dylp_doxy.tag
cc221f3
cc221f3
%changelog
87d59d7
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-7
87d59d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
87d59d7
c8b217c
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-6
c8b217c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c8b217c
174e26d
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-5
174e26d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
174e26d
d230d23
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-4
d230d23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d230d23
5798591
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-3
5798591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5798591
0705039
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-2
0705039
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0705039
2595913
* Thu Jun 27 2019 Jerry James <loganjerry@gmail.com> - 1.10.4-1
2595913
- Update to latest upstream release
2595913
- Change License from EPL to EPL-1.0
2595913
- Eliminate unnecessary BRs and Rs
2595913
- Install the error message text file
2595913
- Eliminate rpath from the library
2595913
- Force libtool to not defeat -Wl,--as-needed
2595913
- Be explicit about library versions as required by latest guidelines
2595913
- Filter out unnecessary Libs values from pkgconfig files
2595913
- Package doxygen tag file to enable cross-linking
2595913
dc37155
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-8
dc37155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
dc37155
46e9793
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.10.3-7
46e9793
- Rebuild with fixed binutils
46e9793
8d156b3
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-6
8d156b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8d156b3
992346d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-5
992346d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
992346d
829ae09
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-4
829ae09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
829ae09
ec3ba4e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-3
ec3ba4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ec3ba4e
aac76ab
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-2
aac76ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aac76ab
9c20ac8
* Tue Mar 15 2016 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.10.3-1
9c20ac8
- Update to latest upstream release
9c20ac8
- Correct FTBFS in rawhide (#1307388)
9c20ac8
acf0b80
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-4
acf0b80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
acf0b80
59f68ea
* Sat Jun 20 2015 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.10.1-3
59f68ea
- Full rebuild of coin-or stack.
59f68ea
7685def
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-2
7685def
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7685def
16e91e5
* Sun Apr 12 2015 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.10.1-1
16e91e5
- Update to latest upstream release (#1089926)
16e91e5
cb55cb7
* Sat Feb 21 2015 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.9.4-4
cb55cb7
- Rebuild to ensure using latest C++ abi changes.
cb55cb7
f4c492d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.4-3
f4c492d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f4c492d
b91cbc8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.4-2
b91cbc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b91cbc8
cc221f3
* Fri Mar 28 2014 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.9.4-1
cc221f3
- Update to latest upstream release.
cc221f3
cc221f3
* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.9.1-1
cc221f3
- Update to latest upstream release.
cc221f3
cc221f3
* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.8.3-4
cc221f3
- Update to run make check (#894610#c4).
cc221f3
cc221f3
* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.8.3-3
cc221f3
- Rename repackaged tarball.
cc221f3
cc221f3
* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.8.3-2
cc221f3
- Rename package to coin-or-DyLP.
cc221f3
- Do not package Thirdy party data or data without clean license.
cc221f3
cc221f3
* Thu Sep 27 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.8.3-1
cc221f3
- Initial coinor-DyLP spec.