]> git.pld-linux.org Git - packages/IRRToolSet.git/blob - IRRToolSet.spec
5e7adf10bf18c0e5a69aed61172ba21693a12316
[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 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 gcc32}
46 %define __cc gcc32
47 %define __cxx g++32
48 %define  optflags -O2 -g -pipe -Wno-deprecated
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.066987 seconds and 2 git commands to generate.