]> git.pld-linux.org Git - packages/IRRToolSet.git/blob - IRRToolSet.spec
17bc95272a111ab000f51e99a2e9b882adc1c034
[packages/IRRToolSet.git] / IRRToolSet.spec
1 #
2 # Conditional build:
3 %bcond_with     gcc32           # compile with gcc32
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.isc.org/isc/IRRToolSet/IRRToolSet-%{version}/%{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.isc.org/sw/IRRToolSet/
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 %if %{with gcc32}
27 BuildRequires:  compat-gcc-32
28 BuildRequires:  compat-gcc-32-c++
29 %endif
30 Provides:       RAToolSet
31 Obsoletes:      RAToolSet
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 IRRToolSet is a suite of policy analysis tools. It is implemented in
36 C++ on a UNIX platform.
37
38 %description -l pl
39 IRRToolSet jest zestawem narzêdzi do analizy polityki.
40
41 %prep
42 %setup -q
43 %patch0 -p1
44 %patch1 -p1
45 %patch2 -p1
46
47 %build
48 cp -f /usr/share/automake/config.sub .
49 %if %{with gcc32}
50 %define __cc gcc32
51 %define __cxx g++32
52 %define  optflags -O2 -g -pipe -Wno-deprecated
53 %endif
54 %configure2_13
55 %{__make}
56
57 # extract license
58 head -n 53 acconfig.h | tail -n 52 > LICENSE
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_sbindir}
63
64 %{__make} install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 mv $RPM_BUILD_ROOT%{_bindir}/prtraceroute $RPM_BUILD_ROOT%{_sbindir}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc Changes README* LICENSE
75 %attr(755,root,root) %{_bindir}/*
76 %attr(4754,root,adm) %{_sbindir}/*
77 %{_mandir}/man1/*
78 %{_mandir}/man3/*
This page took 0.049087 seconds and 2 git commands to generate.