]> git.pld-linux.org Git - packages/IRRToolSet.git/blob - IRRToolSet.spec
- fix
[packages/IRRToolSet.git] / IRRToolSet.spec
1 #
2 # Conditional build:
3 %bcond_with     gcc33           # compile with gcc33
4 #
5 Summary:        IRRToolSet is a suite of policy analysis tools
6 Summary(pl):    IRRToolSet jest zestawem narzêdzi do analizy polityki
7 Name:           IRRToolSet
8 Version:        4.7.3
9 Release:        3
10 License:        BSD-like
11 Group:          Networking/Admin
12 Source0:        ftp://ftp.ripe.net/ripe/tools/IRRToolSet/%{name}-%{version}.tar.gz
13 # Source0-md5:  fcf8305464c8ae5886c41dcb8d85e53d
14 Patch0:         %{name}-DESTDIR.patch
15 Patch1:         %{name}-gcc3.patch
16 Patch2:         %{name}-flex.patch
17 URL:            http://www.ripe.net/ripencc/pub-services/db/irrtoolset/index.html
18 BuildRequires:  XFree86-devel
19 BuildRequires:  automake
20 BuildRequires:  bison
21 BuildRequires:  flex
22 BuildRequires:  libstdc++-devel
23 BuildRequires:  tcl-devel >= 8.3.4-10
24 BuildRequires:  tk-devel >= 8.3.4-5
25 BuildRequires:  readline-devel
26 Provides:       RAToolSet
27 Obsoletes:      RAToolSet
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 IRRToolSet is a suite of policy analysis tools. It is implemented in
32 C++ on a UNIX platform.
33
34 %description -l pl
35 IRRToolSet jest zestawem narzêdzi do analizy polityki.
36
37 %prep
38 %setup -q
39 %patch0 -p1
40 %patch1 -p1
41 %patch2 -p1
42
43 %build
44 cp -f /usr/share/automake/config.sub .
45 %if %{with gcc33}
46 %define __cc gcc33
47 %define __cxx g++33
48 %define  optflags -O2 -g -pipe
49 %endif
50 %configure2_13
51 %{__make}
52
53 # extract license
54 head -n 53 acconfig.h | tail -n 52 > LICENSE
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_sbindir}
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 mv $RPM_BUILD_ROOT%{_bindir}/prtraceroute $RPM_BUILD_ROOT%{_sbindir}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc Changes README* LICENSE
71 %attr(755,root,root) %{_bindir}/*
72 %attr(4754,root,adm) %{_sbindir}/*
73 %{_mandir}/man1/*
74 %{_mandir}/man3/*
This page took 0.090098 seconds and 3 git commands to generate.