1 changed files with 102 additions and 0 deletions
@ -0,0 +1,102 @@ |
|||||||
|
## |
||||||
|
## irrtoolset.spec -- OpenPKG RPM Specification |
||||||
|
## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/> |
||||||
|
## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com> |
||||||
|
## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/> |
||||||
|
## |
||||||
|
## Permission to use, copy, modify, and distribute this software for |
||||||
|
## any purpose with or without fee is hereby granted, provided that |
||||||
|
## the above copyright notice and this permission notice appear in all |
||||||
|
## copies. |
||||||
|
## |
||||||
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
||||||
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
||||||
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||||||
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
||||||
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||||
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||||
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
||||||
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||||||
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
||||||
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
||||||
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
||||||
|
## SUCH DAMAGE. |
||||||
|
## |
||||||
|
|
||||||
|
# package information |
||||||
|
Name: irrtoolset |
||||||
|
Summary: Internet Routing Registry Toolset |
||||||
|
URL: http://www.ripe.net/ripencc/pub-services/db/irrtoolset/ |
||||||
|
Vendor: ISI & RIPE NCC |
||||||
|
Packager: The OpenPKG Project |
||||||
|
Distribution: OpenPKG [JUNK] |
||||||
|
Group: Network |
||||||
|
License: Open Source |
||||||
|
Version: 4.8.1 |
||||||
|
Release: 20031128 |
||||||
|
|
||||||
|
# package options |
||||||
|
%option with_x11 no |
||||||
|
|
||||||
|
# list of sources |
||||||
|
Source0: ftp://ftp.ripe.net/tools/IRRToolSet/IRRToolSet-%{version}/IRRToolSet-%{version}.tar.gz |
||||||
|
|
||||||
|
# build information |
||||||
|
Prefix: %{l_prefix} |
||||||
|
BuildRoot: %{l_buildroot} |
||||||
|
BuildPreReq: OpenPKG, openpkg >= 20030103, readline, make, gcc |
||||||
|
PreReq: OpenPKG, openpkg >= 20030103, readline |
||||||
|
%if "%{with_x11}" == "yes" |
||||||
|
BuildPreReq: X11, tcl, tcl::with_x11 = yes |
||||||
|
PreReq: X11, tcl, tcl::with_x11 = yes |
||||||
|
%endif |
||||||
|
AutoReq: no |
||||||
|
AutoReqProv: no |
||||||
|
|
||||||
|
%description |
||||||
|
The Internet Routing Registry Toolset (IRRToolSet)i s a suite of |
||||||
|
policy analysis tools to operate with routing policies in RPSL |
||||||
|
[RFC2622] format, registered in the Internet Routing Registry (IRR). |
||||||
|
The main goal of the project is to make routing information more |
||||||
|
convenient and useful for network engineers, by providing tools |
||||||
|
for automated router configuration, routing policies analysis, and |
||||||
|
maintenance. |
||||||
|
|
||||||
|
%prep |
||||||
|
%setup -q -n IRRToolSet-%{version} |
||||||
|
%{l_shtool} subst -s \ |
||||||
|
-e 's;_G_int32_t;int32_t;g' \ |
||||||
|
-e 's;_G_uint32_t;uint32_t;g' \ |
||||||
|
-e 's;<malloc\.h>;<cstdlib>;g' \ |
||||||
|
-e 's;_G_config\.h;cstdlib;g' \ |
||||||
|
-e 's;<strstream\.h>;<sstream>;g' \ |
||||||
|
-e 's;<strstream>;<sstream>;g' \ |
||||||
|
`find . -type f -print` |
||||||
|
# FIXME: rse: more patching required... |
||||||
|
|
||||||
|
%build |
||||||
|
%if "%{with_x11}" == "yes" |
||||||
|
# FIXME: set the various TCL_XXX variables according to README file |
||||||
|
%endif |
||||||
|
CC="%{l_cc}" \ |
||||||
|
CXX="%{l_cxx}" \ |
||||||
|
CFLAGS="%{l_cflags -O}" \ |
||||||
|
CXXFLAGS="%{l_cxxflags -O} -Wno-deprecated" \ |
||||||
|
CPPFLAGS="%{l_cppflags}" \ |
||||||
|
LDFLAGS="%{l_ldflags}" \ |
||||||
|
./configure \ |
||||||
|
--prefix=%{l_prefix} |
||||||
|
%{l_make} %{l_mflags} |
||||||
|
|
||||||
|
%install |
||||||
|
rm -rf $RPM_BUILD_ROOT |
||||||
|
# FIXME: rse: still no investigation on installation procedure |
||||||
|
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
||||||
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
||||||
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
||||||
|
|
||||||
|
%files -f files |
||||||
|
|
||||||
|
%clean |
||||||
|
rm -rf $RPM_BUILD_ROOT |
||||||
|
|
||||||
Loading…
Reference in new issue