-
Notifications
You must be signed in to change notification settings - Fork 1
/
liblemon.spec
88 lines (64 loc) · 2.28 KB
/
liblemon.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
%global realname lemon
Name: liblemon
Version: 1.2.2
Release: 1%{?dist}
Summary: Library of Efficient Models and Optimization in Networks
Group: Applications/Engineering
License: Boost
URL: http://lemon.cs.elte.hu/
Source0: http://lemon.cs.elte.hu/pub/sources/%{realname}-%{version}.tar.gz
#Patch0: %{name}-rpath.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glpk-devel
BuildRequires: automake
%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 devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
BuildRequires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{realname}-%{version}
#%patch0 -p1 -b .%{name}-rpath.patch
%build
#autoreconf
%configure --enable-shared --disable-static --disable-rpath
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
#remove libtool archive file
rm %{buildroot}/%{_libdir}/libemon.la
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README NEWS INSTALL LICENSE AUTHORS doc/
%{_bindir}/*
%{_libdir}/libemon*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/lemon
%{_libdir}/pkgconfig/lemon.pc
%{_libdir}/libemon.so
%changelog
* Thu Sep 15 2011 Adam Huffman <[email protected]> - 1.2.2-1
- initial version, based on OpenSuSE package