4 %define _ver_minor 0.10
5 Summary: Mixed Integer Linear Program solver
6 Summary(pl.UTF-8): Biblioteka i narzędzie do rozwiązywania problemu programowania liniowego
8 Version: %{_ver_major}.%{_ver_minor}
12 Source0: http://dl.sourceforge.net/lpsolve/%{name}_%{version}_source.tar.gz
13 # Source0-md5: 26b3e95ddf3d9c077c480ea45874b3b8
14 Patch0: %{name}-shared.patch
15 URL: http://lpsolve.sourceforge.net/5.5/
18 BuildRequires: libtool
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 The linear programming (LP) problem can be formulated as: Solve A.x >=
23 V1, with V2.x maximal. A is a matrix, x is a vector of (nonnegative)
24 variables, V1 is a vector called the right hand side, and V2 is a
25 vector specifying the objective function.
27 An integer linear programming (ILP) problem is an LP with the
28 constraint that all the variables are integers. In a mixed integer
29 linear programming (MILP) problem, some of the variables are integer
32 The program lp_solve solves LP, ILP, and MILP problems. It is slightly
33 more general than suggested above, in that every row of A (specifying
34 one constraint) can have its own (in)equality, <=, >= or =. The result
35 specifies values for all variables.
37 lp_solve uses the 'Simplex' algorithm and sparse matrix methods for
38 pure LP problems. If one or more of the variables is declared integer,
39 the Simplex algorithm is iterated with a branch and bound algorithm,
40 until the desired optimal solution is found. lp_solve can read MPS
43 %description -l pl.UTF-8
44 Biblioteka i narzędzie do rozwiązywania problemu programowania
45 liniowego przy użyciu algorytmu Simplex.
48 Summary: liblpsolve header files
49 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liblpsolve
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
54 liblpsolve header files.
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki liblpsolve.
60 Summary: Static liblpsolve library
61 Summary(pl.UTF-8): Statyczna biblioteka liblpsolve
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 Static liblpsolve library.
68 %description static -l pl.UTF-8
69 Statyczna biblioteka liblpsolve.
72 %setup -q -n %{name}_%{_ver_major}
77 CC="%{__cc}" CFLAGS="%{rpmcflags}" sh -x ccc
79 CC="%{__cc}" CFLAGS="%{rpmcflags}" sh -x ccc
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/lpsolve}
85 install lp_solve/lp_solve $RPM_BUILD_ROOT%{_bindir}/lpsolve
86 install lpsolve55/liblpsolve55.a $RPM_BUILD_ROOT%{_libdir}/liblpsolve.a
87 install lpsolve55/liblpsolve55.so $RPM_BUILD_ROOT%{_libdir}/liblpsolve.so
88 cp -a lp*.h $RPM_BUILD_ROOT%{_includedir}/lpsolve
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/lpsolve
100 %attr(755,root,root) %{_libdir}/liblpsolve.so
103 %defattr(644,root,root,755)
104 %{_includedir}/lpsolve
107 %defattr(644,root,root,755)
108 %{_libdir}/liblpsolve.a