File lemon.spec of Package lemon
Name: lemon
Version: 1.2
Release: 1
Summary: Library of Efficient Models and Optimization in Networks
Group: System/Libraries
License: Boost
URL: http://lemon.cs.elte.hu/
Source0: http://lemon.cs.elte.hu/pub/sources/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libemon0 = %{version}
BuildRequires: gcc-c++
BuildRequires: glpk-devel >= 4.33
%description
LEMON stands for Library for Efficient Modeling and Optimization in
Networks. It is a C++ template library providing efficient
implementations of common data structures and algorithms with focus on
combinatorial optimization tasks connected mainly with graphs and
networks.
LEMON is a member of the COIN-OR initiative, a collection of OR related
open source projects. You are free to use it in your commercial or
non-commercial applications under very permissive license terms.
The project was launched by the Egerváry Research Group on Combinatorial
Optimization (EGRES) at the Operations Research Department of the Eötvös
Loránd University, Budapest in 2003. Up to this point, the developers of
the library work at the Eötvös Loránd University, Budapest and at the
Budapest University of Technology and Economics.
%package -n libemon0
Summary: Library of Efficient Models and Optimization in Networks
Group: System/Libraries
Requires: libglpk0 >= 4.33
%description -n libemon0
LEMON stands for Library for Efficient Modeling and Optimization in
Networks. It is a C++ template library providing efficient
implementations of common data structures and algorithms with focus on
combinatorial optimization tasks connected mainly with graphs and
networks.
This package contains the shared library of LEMON.
%package devel
Summary: Development headers and files for LEMON
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}-%{release}
Requires: libemon0 = %{version}
Requires: glpk-devel >= 4.33
BuildRequires: pkg-config
%description devel
LEMON stands for Library for Efficient Modeling and Optimization in
Networks. It is a C++ template library providing efficient
implementations of common data structures and algorithms with focus on
combinatorial optimization tasks connected mainly with graphs and
networks.
This package contains the libraries and headers for developing
applications which use LEMON.
%package doc
Summary: Documentation of LEMON
Group: Documentation/HTML
Requires: %{name} = %{version}-%{release}
Requires: libemon0 = %{version}
%description doc
LEMON stands for Library for Efficient Modeling and Optimization in
Networks. It is a C++ template library providing efficient
implementations of common data structures and algorithms with focus on
combinatorial optimization tasks connected mainly with graphs and
networks.
This package contains the documentation of LEMON in HTML format.
%prep
%setup -q
%build
%configure --enable-shared --disable-static
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install-html
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp INSTALL LICENSE NEWS README $RPM_BUILD_ROOT%{_docdir}/%{name}
mv $RPM_BUILD_ROOT%{_datadir}/doc/lemon/html $RPM_BUILD_ROOT%{_docdir}/%{name}
%clean
rm -rf "$RPM_BUILD_ROOT"
%post -n libemon0 -p /sbin/ldconfig
%postun -n libemon0 -p /sbin/ldconfig
%files -n libemon0
%defattr(-,root,root)
%{_libdir}/libemon.so.*
%files
%defattr(-,root,root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/INSTALL
%doc %{_docdir}/%{name}/LICENSE
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%{_bindir}/lemon-0.x-to-1.x.sh
%{_bindir}/dimacs-solver
%{_bindir}/dimacs-to-lgf
%{_bindir}/lgf-gen
%files devel
%defattr(-,root,root)
%{_includedir}/lemon
%{_libdir}/pkgconfig/lemon.pc
%{_libdir}/libemon.la
%{_libdir}/libemon.so
%files doc
%defattr(-,root,root)
%doc %{_docdir}/%{name}/html
%changelog
* Tue May 04 2010 <akos.ladanyi@gmail.com> - 1.2
- new version 1.2
* Sun Dec 20 2009 Werner Hoch <werner.ho@gmx.de> - 1.1.1
- new version 1.1.1
* Mon May 19 2009 <akos.ladanyi@gmail.com>
- new version 1.1
* Tue May 05 2009 <akos.ladanyi@gmail.com>
- new version 1.0.4
* Fri Jan 30 2009 <akos.ladanyi@gmail.com>
- new version 1.0.2
* Thu Dec 18 2008 Werner Hoch <werner.ho@gmx.de> - 1.0.1
- new version 1.0.1
* Mon Oct 20 2008 <akos.ladanyi@gmail.com>
- Initial package: lemon-1.0