File mingw32-lpsolve.spec of Package mingw32-lpsolve

#
# spec file for package mingw32-lpsolve
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw32-lpsolve
Version:        5.5.0.15
Release:        0
Summary:        A Mixed Integer Linear Programming (MILP) Solver
License:        LGPL-2.0-or-later
Group:          Productivity/Scientific/Math
Url:            http://lpsolve.sourceforge.net/
Source0:        http://sourceforge.net/projects/lpsolve/files/lpsolve/lp_solve_%{version}_source.tar.gz
Source1000:     %{name}-%{version}-rpmlintrc
Patch0:         lpsolve-5.5.0.15-mingw.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-filesystem >= 23
%_mingw32_package_header_debug
BuildArch:      noarch

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

%package -n mingw32-liblpsolve-devel
Summary:        A Mixed Integer Linear Programming (MILP) Solver
Group:          Development/Libraries/C and C++

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

%package -n mingw32-liblpsolve55
Summary:        A Mixed Integer Linear Programming (MILP) Solver
Group:          Development/Libraries
Obsoletes:      mingw32-liblpsolve
Provides:       mingw32-liblpsolve

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

%_mingw32_debug_package

%prep
%setup -q -n lp_solve_5.5

%patch -P 0 -p1 -b .mingw

%build
rm -f configure
libtoolize --force --copy --automake --install
autoconf
echo "lt_cv_deplibs_check_method=pass_all" >>%{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH" \
%{_mingw32_configure}
%{_mingw32_make}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f %{buildroot}%{_mingw32_libdir}/liblpsolve55.a

%files
%defattr(-,root,root)
%{_mingw32_bindir}/lp_solve.exe

%files -n mingw32-liblpsolve-devel
%defattr(-,root,root)
%{_mingw32_includedir}/lpsolve
%{_mingw32_libdir}/liblpsolve55.dll.a

%files -n mingw32-liblpsolve55
%defattr(-,root,root)
%{_mingw32_bindir}/lpsolve55.dll

%changelog
openSUSE Build Service is sponsored by