liblp_solve/liblp_solve.spec

125 lines
3.7 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: liblp_solve
Version: 5.5.2.11
Release: 1mamba
Summary: A Mixed Integer Linear Programming (MILP) solver
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://lpsolve.sourceforge.net/
Source: http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz
Patch0: liblp_solve-5.5.0.11.cflags.patch
License: LGPL
BuildRequires: bison
BuildRequires: flex
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%description
Mixed Integer Linear Programming (MILP) solver lp_solve solves pure linear,
(mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.
lp_solve is written in ANSI C and can be compiled on many different platforms
like Linux and WINDOW
%package devel
Group: Development/Libraries
Summary: Headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Mixed Integer Linear Programming (MILP) solver lp_solve solves pure linear,
(mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.
lp_solve is written in ANSI C and can be compiled on many different platforms
like Linux and WINDOW
This package contains header files needed for development.
%package static
Group: Development/Libraries
Summary: Static libraries for %{name}
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description static
Mixed Integer Linear Programming (MILP) solver lp_solve solves pure linear,
(mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.
lp_solve is written in ANSI C and can be compiled on many different platforms
like Linux and WINDOW
This package contains static libraries needed for development.
%package demo
Group: Development/Tools
Summary: A demo program for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description demo
Mixed Integer Linear Programming (MILP) solver lp_solve solves pure linear,
(mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.
lp_solve is written in ANSI C and can be compiled on many different platforms
like Linux and WINDOW
This package contains a demo program for %{name}.
%debug_package
%prep
%setup -q -n lp_solve_%{majver}
#%patch -p1
%build
cd lp_solve
sh -x ccc
cd ../demo
sh -x ccc
cd ../lpsolve55
sh -x ccc
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}/lpsolve
install -m 755 \
demo/demo %{buildroot}%{_bindir}
install -m 755 \
lp_solve/bin/ux%{__isa_bits}/lp_solve %{buildroot}%{_bindir}
install -m 755 \
lpsolve55/bin/ux%{__isa_bits}/liblpsolve55.so %{buildroot}%{_libdir}
install -m 644 \
lpsolve55/bin/ux%{__isa_bits}/liblpsolve55.a %{buildroot}%{_libdir}
install -m 644 \
lp*.h %{buildroot}%{_includedir}/lpsolve
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/lp_solve
%{_libdir}/*.so
%files devel
%defattr(-,root,root)
%dir %{_includedir}/lpsolve
%{_includedir}/lpsolve/*.h
%{_libdir}/*.a
%doc README.txt
%files demo
%defattr(-,root,root)
%{_bindir}/demo
%changelog
* Mon Jul 25 2022 Automatic Build System <autodist@mambasoft.it> 5.5.2.11-1mamba
- automatic version update by autodist
* Fri Aug 30 2013 Automatic Build System <autodist@mambasoft.it> 5.5.0.13-2mamba
- automatic rebuild by autodist
* Wed Nov 12 2008 gil <puntogil@libero.it> 5.5.0.13-1mamba
- package created by autospec