4 %bcond_without static_libs # don't build static libraries
5 %bcond_with cplex # CPLEX support [IBM proprietary]
6 %bcond_without glpk # GLPK support
7 %bcond_with soplex # SoPlex support
9 Summary: Library of Efficient Models and Optimization in Networks
10 Summary(pl.UTF-8): Biblioteka wydajnych modeli i optymalizacji w sieciach
16 Source0: http://lemon.cs.elte.hu/pub/sources/%{name}-%{version}.tar.gz
17 # Source0-md5: fd89e8bf5035b02e2622a48ac7fe0641
18 Patch0: %{name}-glpk.patch
19 URL: http://lemon.cs.elte.hu/
20 BuildRequires: autoconf >= 2.59
21 BuildRequires: automake
22 BuildRequires: doxygen
23 BuildRequires: ghostscript
24 %{?with_glpk:BuildRequires: glpk-devel >= 4.33}
25 BuildRequires: libstdc++-devel
26 BuildRequires: libtool >= 2:1.5
28 %{?with_soplex:BuildRequires: soplex-devel}
29 %{?with_glpk:Requires: glpk >= 4.33}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 LEMON stands for Library for Efficient Modeling and Optimization in
34 Networks. It is a C++ template library providing efficient
35 implementations of common data structures and algorithms with focus on
36 combinatorial optimization tasks connected mainly with graphs and
39 %description -l pl.UTF-8
40 LEMON to skrót od Library for Efficient Modeling and Optimization in
41 Networks (biblioteka do wydajnego modelowania i optymalizacji w
42 sieciach). Jest to biblioteka szablonów C++ udostępniająca wydajne
43 implementacje popularnych struktur danych i algorytmów przeznaczonych
44 do zadań optymalizacji kombinatorycznej, związanych głównie z grafami
48 Summary: Header files for LEMON library
49 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LEMON
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 %{?with_glpk:Requires: glpk-devel >= 4.33}
53 Requires: libstdc++-devel
54 %{?with_soplex:Requires: soplex-devel}
57 Header files for LEMON library.
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki LEMON.
63 Summary: Static LEMON library
64 Summary(pl.UTF-8): Statyczna biblioteka LEMON
65 Group: Development/Libraries
66 Requires: %{name}-devel = %{version}-%{release}
71 %description static -l pl.UTF-8
72 Statyczna biblioteka LEMON.
75 Summary: LEMON API documentation
76 Summary(pl.UTF-8): Dokumentacja API biblioteki LEMON
80 API documentation for LEMON library.
82 %description apidocs -l pl.UTF-8
83 Dokumentacja API biblioteki LEMON.
97 %{!?with_static_libs:--disable-static} \
98 %{!?with_cplex:--without-cplex} \
99 %{!?with_glpk:--without-glpk} \
100 %{!?with_soplex:--without-soplex} \
101 %{?with_soplex:--with-soplex-includedir=/usr/include/soplex}
106 rm -rf $RPM_BUILD_ROOT
109 DESTDIR=$RPM_BUILD_ROOT
111 # obsoleted by pkg-config
112 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
115 rm -rf $RPM_BUILD_ROOT
117 %post -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
121 %defattr(644,root,root,755)
122 %doc AUTHORS LICENSE NEWS README
123 %attr(755,root,root) %{_bindir}/dimacs-solver
124 %attr(755,root,root) %{_bindir}/dimacs-to-lgf
125 %attr(755,root,root) %{_bindir}/lemon-0.x-to-1.x.sh
126 %attr(755,root,root) %{_bindir}/lgf-gen
127 %attr(755,root,root) %{_libdir}/libemon.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libemon.so.0
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/libemon.so
134 %{_pkgconfigdir}/lemon.pc
136 %if %{with static_libs}
138 %defattr(644,root,root,755)
143 %defattr(644,root,root,755)