Sophie

Sophie

distrib > Mageia > 6 > armv5tl > by-pkgid > 1cf4f46d8c00e87264645b07298cf69d > files > 3

lpsolve-5.5.2.5-1.mga6.src.rpm

Name:      lpsolve
Summary:   A Mixed Integer Linear Programming (MILP) solver
Version:   5.5.2.5
Release:   %mkrel 1
Source:    http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz
Group:     System/Libraries 
URL:       http://sourceforge.net/projects/lpsolve
License:   LGPLv2+

Patch0:    lpsolve-5.5.0.11.cflags.patch

%description
Mixed Integer Linear Programming (MILP) solver lpsolve solves pure linear,
(mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.

%package devel
Requires: lpsolve = %{version}-%{release}
Summary: Files for developing with lpsolve
Group: Development/C

%description devel
Includes and definitions for developing with lpsolve 

%prep
%setup -q -n lp_solve_5.5
%patch0 -p1 -b .cflags.patch
#sparc and s390 need -fPIC  lets sed it                                              
%ifarch sparcv9 sparc64 s390 s390x                                                   
sed -i -e 's|-fpic|-fPIC|g' lpsolve55/ccc                                            
%endif 

%build
cd lpsolve55
sh -x ccc
rm bin/ux*/liblpsolve55.a
cd ../lp_solve
sh -x ccc

%install
install -d %{buildroot}%{_bindir} %{buildroot}%{_libdir} %{buildroot}%{_includedir}/lpsolve
install -p -m 755 \
        lp_solve/bin/ux*/lp_solve %{buildroot}%{_bindir}
install -p -m 755 \
        lpsolve55/bin/ux*/liblpsolve55.so %{buildroot}%{_libdir}
install -p -m 644 \
        lp*.h %{buildroot}%{_includedir}/lpsolve

%files
%doc README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_LGPL.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL-overview.txt
%{_bindir}/lp_solve
%{_libdir}/*.so

%files devel
%{_includedir}/lpsolve



%changelog
* Sun Jan 01 2017 luigiwalser <luigiwalser> 5.5.2.5-1.mga6
+ Revision: 1078987
- 5.5.2.5

* Tue Feb 02 2016 umeabot <umeabot> 5.5.2.0-8.mga6
+ Revision: 932808
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 5.5.2.0-7.mga5
+ Revision: 741179
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 5.5.2.0-6.mga5
+ Revision: 682004
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 5.5.2.0-5.mga4
+ Revision: 507559
- Mageia 4 Mass Rebuild

* Sat Jan 12 2013 umeabot <umeabot> 5.5.2.0-4.mga3
+ Revision: 359007
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Jan 05 2013 malo <malo> 5.5.2.0-3.mga3
+ Revision: 339526
- fix RPM group

* Sun Jan 23 2011 dmorgan <dmorgan> 5.5.2.0-2.mga1
+ Revision: 35293
- Adapt for mageia
- imported package lpsolve