463483
Name:      lpsolve
463483
Summary:   A Mixed Integer Linear Programming (MILP) solver
463483
Version:   5.5.2.0
3e0c45
Release:   8%{?dist}
463483
Source:    http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz
463483
Group:     System Environment/Libraries
463483
URL:       http://sourceforge.net/projects/lpsolve
463483
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
463483
License:   LGPLv2+
463483
463483
Patch0:    lpsolve-5.5.0.11.cflags.patch
463483
463483
%description
463483
Mixed Integer Linear Programming (MILP) solver lpsolve solves pure linear,
463483
(mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.
463483
463483
%package devel
463483
Requires: lpsolve = %{version}-%{release}
463483
Summary: Files for developing with lpsolve
463483
Group: Development/Libraries
463483
463483
%description devel
463483
Includes and definitions for developing with lpsolve 
463483
463483
%prep
463483
%setup -q -n lp_solve_5.5
463483
%patch0 -p1 -b .cflags.patch
463483
#sparc and s390 need -fPIC  lets sed it                                              
463483
%ifarch sparcv9 sparc64 s390 s390x                                                   
463483
sed -i -e 's|-fpic|-fPIC|g' lpsolve55/ccc                                            
463483
%endif 
463483
463483
%build
463483
cd lpsolve55
463483
sh -x ccc
463483
rm bin/ux*/liblpsolve55.a
463483
cd ../lp_solve
463483
sh -x ccc
463483
463483
%install
463483
rm -rf $RPM_BUILD_ROOT
463483
install -d $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_includedir}/lpsolve
463483
install -p -m 755 \
463483
        lp_solve/bin/ux*/lp_solve $RPM_BUILD_ROOT%{_bindir}
463483
install -p -m 755 \
463483
        lpsolve55/bin/ux*/liblpsolve55.so $RPM_BUILD_ROOT%{_libdir}
463483
install -p -m 644 \
463483
        lp*.h $RPM_BUILD_ROOT%{_includedir}/lpsolve
463483
463483
%clean
463483
rm -rf $RPM_BUILD_ROOT
463483
463483
%post -p /sbin/ldconfig
463483
463483
%postun -p /sbin/ldconfig
463483
463483
%files
463483
%defattr(-,root,root,-)
463483
%doc README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_LGPL.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL-overview.txt
463483
%{_bindir}/lp_solve
463483
%{_libdir}/*.so
463483
463483
%files devel
463483
%defattr(-,root,root,-)
463483
%{_includedir}/lpsolve
463483
463483
%changelog
3e0c45
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.5.2.0-8
3e0c45
- Mass rebuild 2014-01-24
3e0c45
3e0c45
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.5.2.0-7
3e0c45
- Mass rebuild 2013-12-27
3e0c45
463483
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.2.0-6
463483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
463483
463483
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.2.0-5
463483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
463483
463483
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.2.0-4
463483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
463483
463483
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.2.0-3
463483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
463483
463483
* Tue Dec 21 2010 Dan Horák <dan[at]danny.cz> - 5.5.2.0-2
463483
- fix build on s390(x)
463483
463483
* Fri Aug 13 2010 Caolán McNamara <caolanm@redhat.com> - 5.5.2.0-1
463483
- latest version
463483
463483
* Mon Dec 21 2009 Caolán McNamara <caolanm@redhat.com> - 5.5.0.15-3
463483
- Preserve timestamps
463483
463483
* Thu Nov 05 2009 Caolán McNamara <caolanm@redhat.com> - 5.5.0.15-2
463483
- upstream source silently changed content
463483
463483
* Sat Sep 12 2009 Caolán McNamara <caolanm@redhat.com> - 5.5.0.15-1
463483
- latest version
463483
463483
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.0.14-4
463483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
463483
463483
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.0.14-3
463483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
463483
463483
* Mon Feb 23 2009 Caolán McNamara <caolanm@redhat.com> - 5.5.0.14-2
463483
- defuzz patch
463483
463483
* Mon Feb 02 2009 Caolán McNamara <caolanm@redhat.com> - 5.5.0.14-1
463483
- latest version
463483
463483
* Fri Jan 02 2009 Dennis Gilmore <dennis@ausil.us> - 5.5.0.13-2
463483
- use -fPIC on sparc and s390 arches
463483
463483
* Mon Aug 04 2008 Caolán McNamara <caolanm@redhat.com> - 5.5.0.13-1
463483
- latest version
463483
463483
* Sat Aug 02 2008 Caolán McNamara <caolanm@redhat.com> - 5.5.0.12-2
463483
- Mar 20 upstream tarball now differs from Mar 14 tarball
463483
463483
* Fri Mar 14 2008 Caolán McNamara <caolanm@redhat.com> - 5.5.0.12-1
463483
- latest version
463483
463483
* Wed Feb 20 2008 Caolán McNamara <caolanm@redhat.com> - 5.5.0.11-1
463483
- initial version