Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37753247
en ru br
Репозитории ALT
S:5.5.2.5-alt1
D:5.5.0.6-alt1.0
5.1: 5.5.0.15-alt1
www.altlinux.org/Changes

Группа :: Науки/Математика
Пакет: lp_solve

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_disable static

%define origname lpsolve
%define libname lib%origname

%define lp_branch 5.5
%define lp_subver 0.15

Name: lp_solve
Version: 5.5.0.15
Release: alt1

Summary: Tool that solves linear programming problem
License: LGPL
Group: Sciences/Mathematics

Url: http://sourceforge.net/projects/lpsolve
Source: %{name}_%{version}_source.tar.gz
Patch: lp_solve-5.5.0.15-alt-shared.patch
Patch1: lpsolve-5.5.0.11-fedora-cflags.patch
Packager: Michael Shigorin <mike at altlinux.org>

BuildRequires: flex gcc-c++

Summary(pl): NarzЙdzie do rozwi╠zywania problemu programowania liniowego

%description
Tool that solves linear programming problem using Simplex algorithm.

%description -l pl
NarzЙdzie do rozwi╠zywania problemu programowania liniowego przy

%package -n %libname
Summary: Library that solves linear programming problem
Summary(pl): Biblioteka do rozwi╠zywania problemu programowania liniowego
Group: Sciences/Mathematics

%description -n %libname
Library that solves linear programming problem using Simplex algorithm.

%description -n %libname -l pl
Biblioteka do rozwi╠zywania problemu programowania liniowego przy
u©yciu algorytmu Simplex.

%package -n %libname-devel
Summary: %libname header files
Summary(pl): Pliki nagЁСwkowe biblioteki %libname
Group: Development/C
Requires: %libname = %version-%release

%description -n %libname-devel
%libname header files.

%description -n %libname-devel -l pl
Pliki nagЁСwkowe biblioteki %libname.

%if_enabled static
%package -n %libname-devel-static
Summary: Static %libname library
Summary(pl): Statyczna biblioteka liblpk
Group: Development/C
Requires: %libname-devel = %version-%release

%description -n %libname-devel-static
Static %libname library.

%description -n %libname-devel-static -l pl
Statyczna biblioteka %libname.
%endif

%prep
%setup -n %{name}_%lp_branch
%patch1 -p1
#patch -p1
#subst 's,/usr/lib,%_libdir,g' lpsolve55/ccc

%build
#autoreconf
#autoconf
#chmod +x configure
#configure %{subst_enable static}
#rm lp_rlp.h lp_rlp.c
#make_build

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

%check
%make test

%install
#makeinstall
#rm -f %buildroot%_bindir/lp_demo

#%if_disabled static

#rm -f %buildroot%_libdir/lib*.a
#rm -f %buildroot%_libdir/%name/lib*.a
#rm -f %buildroot%_libdir/%name/lib*.la
#%else
#%define _keep_libtool_files 1
#%endif

#set_verify_elf_topdir %buildroot%_libdir %buildroot%_libdir/%name

#add_findprov_lib_path %_libdir/%name

install -d %buildroot{%_bindir,%_libdir,%_includedir/%name}
install -pm755 lp_solve/bin/ux*/lp_solve %buildroot%_bindir/
install -pm755 lpsolve55/bin/ux*/liblpsolve55.so %buildroot%_libdir/
install -pm644 lp*.h %buildroot%_includedir/%name
ln -s %name %buildroot%_includedir/%origname

%files
%doc README.txt bfp/bfp_LUSOL/LUSOL/LUSOL*.txt
%_bindir/%name

%files -n %libname
%_libdir/*.so*
#dir %_libdir/%name
#_libdir/%name/*.so*

%files -n %libname-devel
%_includedir/%name/
%_includedir/%origname

%if_enabled static
%files -n %libname-devel-static
%_libdir/lib*.a
%_libdir/lib*.la
%_libdir/%name/lib*.a
%_libdir/%name/lib*.la
%endif

# TODO:

# - reintroduce dynamic libcolamd (see PLD shared patch)
# - what's up with %_libdir/*.so.* ?

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin