From 46348315774aae6a10320b0aedddbb8120041cbe Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Mar 17 2013 16:52:18 +0000 Subject: import lpsolve-5.5.2.0-6.el7.src.rpm --- diff --git a/.lpsolve.metadata b/.lpsolve.metadata new file mode 100644 index 0000000..238135e --- /dev/null +++ b/.lpsolve.metadata @@ -0,0 +1 @@ +e2830053cf079839b9ce21662cbc886ac6d31c80 SOURCES/lp_solve_5.5.2.0_source.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/lpsolve-5.5.0.11.cflags.patch b/SOURCES/lpsolve-5.5.0.11.cflags.patch new file mode 100644 index 0000000..d8f6567 --- /dev/null +++ b/SOURCES/lpsolve-5.5.0.11.cflags.patch @@ -0,0 +1,24 @@ +diff -ru lp_solve_5.5.orig/lp_solve/ccc lp_solve_5.5/lp_solve/ccc +--- lp_solve_5.5.orig/lp_solve/ccc 2009-02-23 16:31:18.000000000 +0000 ++++ lp_solve_5.5/lp_solve/ccc 2009-02-23 16:31:29.000000000 +0000 +@@ -28,7 +28,7 @@ + fi + rm /tmp/isnan.c /tmp/isnan >/dev/null 2>&1 + +-opts='-O3' ++opts=$RPM_OPT_FLAGS + + def= + if [ "$PLATFORM" = "SCO_UNIX" ] +diff -ru lp_solve_5.5.orig/lpsolve55/ccc lp_solve_5.5/lpsolve55/ccc +--- lp_solve_5.5.orig/lpsolve55/ccc 2009-02-23 16:31:18.000000000 +0000 ++++ lp_solve_5.5/lpsolve55/ccc 2009-02-23 16:31:29.000000000 +0000 +@@ -35,7 +35,7 @@ + so=y + fi + +-opts='-O3' ++opts=$RPM_OPT_FLAGS + + $c -s -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd $opts $def $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src + ar rv bin/$PLATFORM/liblpsolve55.a `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` diff --git a/SPECS/lpsolve.spec b/SPECS/lpsolve.spec new file mode 100644 index 0000000..9a3e7a0 --- /dev/null +++ b/SPECS/lpsolve.spec @@ -0,0 +1,120 @@ +Name: lpsolve +Summary: A Mixed Integer Linear Programming (MILP) solver +Version: 5.5.2.0 +Release: 6%{?dist} +Source: http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz +Group: System Environment/Libraries +URL: http://sourceforge.net/projects/lpsolve +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +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/Libraries + +%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 +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_includedir}/lpsolve +install -p -m 755 \ + lp_solve/bin/ux*/lp_solve $RPM_BUILD_ROOT%{_bindir} +install -p -m 755 \ + lpsolve55/bin/ux*/liblpsolve55.so $RPM_BUILD_ROOT%{_libdir} +install -p -m 644 \ + lp*.h $RPM_BUILD_ROOT%{_includedir}/lpsolve + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%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 +%defattr(-,root,root,-) +%{_includedir}/lpsolve + +%changelog +* Thu Feb 14 2013 Fedora Release Engineering - 5.5.2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 5.5.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 5.5.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 5.5.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 21 2010 Dan Horák - 5.5.2.0-2 +- fix build on s390(x) + +* Fri Aug 13 2010 Caolán McNamara - 5.5.2.0-1 +- latest version + +* Mon Dec 21 2009 Caolán McNamara - 5.5.0.15-3 +- Preserve timestamps + +* Thu Nov 05 2009 Caolán McNamara - 5.5.0.15-2 +- upstream source silently changed content + +* Sat Sep 12 2009 Caolán McNamara - 5.5.0.15-1 +- latest version + +* Sat Jul 25 2009 Fedora Release Engineering - 5.5.0.14-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 5.5.0.14-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 23 2009 Caolán McNamara - 5.5.0.14-2 +- defuzz patch + +* Mon Feb 02 2009 Caolán McNamara - 5.5.0.14-1 +- latest version + +* Fri Jan 02 2009 Dennis Gilmore - 5.5.0.13-2 +- use -fPIC on sparc and s390 arches + +* Mon Aug 04 2008 Caolán McNamara - 5.5.0.13-1 +- latest version + +* Sat Aug 02 2008 Caolán McNamara - 5.5.0.12-2 +- Mar 20 upstream tarball now differs from Mar 14 tarball + +* Fri Mar 14 2008 Caolán McNamara - 5.5.0.12-1 +- latest version + +* Wed Feb 20 2008 Caolán McNamara - 5.5.0.11-1 +- initial version