/[ascend]/trunk/tools/ipopt/ipopt.spec
ViewVC logotype

Contents of /trunk/tools/ipopt/ipopt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2652 - (show annotations) (download)
Thu Dec 13 09:03:18 2012 UTC (7 years, 3 months ago) by jpye
File size: 3426 byte(s)
Added support for IPOPT in RPM for Fedora 17.
1 Name: ipopt
2 Summary: Large-scale optimisation solver
3 Version: 3.10.3
4 Release: 0%{?dist}
5
6 %define mumpsversion 4.10.0
7 %define metisversion 4.0.3
8
9 Patch0: ipopt-addlibs.patch
10 Source0: http://www.coin-or.org/download/source/Ipopt/Ipopt-%{version}.tgz
11 Source1: http://mumps.enseeiht.fr/MUMPS_%{mumpsversion}.tar.gz
12 Source2: http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD/metis-%{metisversion}.tar.gz
13 #Patch0: Ipopt-hsl-shared.patch
14
15 URL: https://projects.coin-or.org/Ipopt
16 License: CPL
17 Group: Development/Libraries
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
19
20 BuildRequires: gcc-c++ blas-devel lapack-devel gcc-gfortran
21 Obsoletes: Ipopt
22
23 %description
24 IPOPT (Interior Point Optimizer, pronounced 'I-P-Opt') is an open source
25 software package for large-scale nonlinear optimization. It can be used to solve
26 general nonlinear programming problems of the form
27
28 min f(x)
29 s.t. g_L <= g(x) <= g_U
30 and x_L <= x <= x_U
31
32 where x is a vector of n real variables.
33
34 %package devel
35 Summary: Large-scale optimisation solver (developer files)
36 Group: Development/Libraries
37 Requires: %{name} lapack-devel blas-devel gcc-gfortran
38 Obsoletes: Ipopt-devel
39 %description devel
40 This package contains the header files and developer libraries
41 for IPOPT, for use by people building software that depends on
42 IPOPT.
43
44 %package doc
45 Summary: Large-scale optimisation solver (documentation)
46 Group: Development/Libraries
47 Obsoletes: Ipopt-doc
48 %description doc
49 This package contains the user manual for the IPOPT large-scale
50 optimisation solver. The PDF file can be found in
51 %_datadir/%{name}-%{version}/doc
52
53 %prep
54 %setup -q -n Ipopt-%{version}
55 %patch0 -p1
56 pwd
57 tar zxf ../../SOURCES/MUMPS_%{mumpsversion}.tar.gz
58 mv MUMPS_%{mumpsversion} ThirdParty/Mumps/MUMPS
59 tar zxf ../../SOURCES/metis-%{metisversion}.tar.gz
60 mv metis-%{metisversion} ThirdParty/Metis/metis-4.0
61
62 %build
63 #BuildTools/run_autotools
64 %{?__cc:CC="%__cc"} %{?__cxx:CXX="%__cxx"} %configure
65 make %{?_smp_mflags} %{?__cc:CC="%__cc"} %{?__cxx:CXX="%__cxx"}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 make DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" install
70
71 # spot says we don't want .la files in RPMs:
72 rm %{buildroot}/%{_libdir}/*.la
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post
78 /sbin/ldconfig 2>/dev/null
79
80 %postun
81 /sbin/ldconfig 2>/dev/null
82
83 %files
84 %defattr(-,root,root)
85 %doc README LICENSE ChangeLog
86 %_libdir/*.so.[0-9].*
87 %_libdir/*.so.[0-9]
88
89 %files devel
90 %defattr(-,root,root)
91 %_includedir/coin
92 %_libdir/*.so
93 %_libdir/pkgconfig
94
95 %files doc
96 %defattr(-,root,root)
97 %doc Ipopt/doc/documentation.pdf
98 %doc ThirdParty/Mumps/MUMPS/doc/userguide_%{mumpsversion}.pdf
99 /usr/share/doc
100 /usr/share/coin/doc/Ipopt
101
102 %changelog
103 * Thu Dec 13 2012 John Pye <john@curioussymbols.com> 3.10.3
104 - Updated version.
105 - Included METIS as part of source package (in addition to MUMPS).
106
107 * Fri Jun 20 2008 John Pye <john@curioussymbols.com> 3.4.1
108 - Updated version
109 - Removed %_libdir/*.txt from file list
110 - Moved %_libdir/*.so.[0-9] from file list
111 - Added devel dependencies on gcc-gfortran lapack-devel and blas-devel (because of funny way that IPOPT is linked)
112
113 * Sat Jan 05 2008 John Pye <john@curioussymbols.com> 3.3.4
114 - Updated version
115
116 * Sun Jul 22 2007 John Pye <john@curioussymbols.com> 3.3.2
117 - Updated version.
118 - Renamed packages to lowercase ipopt, with 'Obsoletes:' for old names
119
120 * Tue Jun 26 2007 John Pye <john@curioussymbols.com> 3.3.1
121 - First version
122
123 # -*- coding: UTF-8 -*-
124

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22