]> git.pld-linux.org Git - packages/libnasl.git/blob - libnasl.spec
- build fixes related to openssl and bison
[packages/libnasl.git] / libnasl.spec
1 Summary:        NASL libraries
2 Summary(pl.UTF-8):      Biblioteki NASL
3 Name:           libnasl
4 Version:        2.2.11
5 Release:        1
6 License:        GPL
7 Vendor:         Nessus Project
8 Group:          Networking
9 # Source0:      ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/src/%{name}-%{version}.tar.gz
10 Source0:        %{name}-%{version}.tar.gz
11 # Source0-md5:  02889e4829b68cb9d0d827ccdba5db1d
12 Patch0:         %{name}-ac_fix.patch
13 Patch1:         %{name}-linkshared.patch
14 Patch2:         %{name}-libtool.patch
15 Patch3:         libnasl-openssl.patch
16 Patch4:         openssl.patch
17 Patch5:         bison.patch
18 URL:            http://www.nessus.org/
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  bison
22 BuildRequires:  libtool
23 BuildRequires:  nessus-libs-devel >= %{version}
24 BuildRequires:  tetex-dvips
25 BuildRequires:  tetex-format-latex
26 Requires:       nessus-libs >= %{version}
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _localstatedir          /var/lib
30
31 %description
32 NASL is a scripting language designed for the Nessus security scanner.
33 Its aim is to allow anyone to write a test for a given security hole
34 in a few minutes, to allow people to share their tests without having
35 to worry about their operating system, and to guarantee everyone that
36 a NASL script can not do anything nasty except performing a given
37 security test against a given target.
38
39 Thus, NASL allows you to easily forge IP packets, or to send regular
40 packets. It provides you some convenient functions that will make the
41 test of web and FTP server more easy to write. NASL garantees you that
42 a NASL script:
43 - will not send any packet to a host other than the target host,
44 - will not execute any commands on your local system.
45
46 %description -l pl.UTF-8
47 NASL to język skryptowy stworzony dla skanera bezpieczeństwa Nessus.
48 Celem języka jest umożliwienie każdemu napisania testu dla danej
49 dziury w bezpieczeństwie w kilka minut, umożliwienie ludziom na
50 dzielenie się testami niezależnie od systemu operacyjnego i
51 zagwarantowanie, że skrypt NASL nie zrobi niczego brzydkiego oprócz
52 wykonania testu bezpieczeństwa na danym celu.
53
54 NASL pozwala na łatwe podrabianie pakietów IP lub wysyłanie normalnych
55 pakietów. Udostępnia trochę wygodnych funkcji ułatwiających pisanie
56 testów dla serwerów WWW i FTP. NASL gwarantuje, że taki skrypt:
57 - nie wyśle żadnego pakietu do hosta innego niż wskazany,
58 - nie wykona żadnych poleceń na systemie lokalnym.
59
60 %package devel
61 Summary:        NASL libraries development files
62 Summary(pl.UTF-8):      Pliki dla programistów używających NASL-a
63 Group:          Development/Libraries
64 Requires:       %{name} = %{version}-%{release}
65 Requires:       nessus-libs-devel >= %{version}
66
67 %description devel
68 Header files for developing applications that use NASL.
69
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe konieczne do rozwoju aplikacji używających NASL-a.
72
73 %package static
74 Summary:        NASL static libraries
75 Summary(pl.UTF-8):      Biblioteki statyczne NASL-a
76 Group:          Development/Libraries
77 Requires:       %{name}-devel = %{version}-%{release}
78
79 %description static
80 NASL static libraries.
81
82 %description static -l pl.UTF-8
83 Biblioteki statyczne NASL-a.
84
85 %prep
86 %setup -q -n %{name}
87 %patch0 -p1
88 %patch1 -p1
89 %patch2 -p1
90 %patch3 -p1
91 %patch4 -p1
92 %patch5 -p1
93
94 %build
95 %{__libtoolize}
96 %{__aclocal}
97 %{__autoconf}
98 %configure
99
100 %{__make} -j1
101
102 %{__make} nasl_guide.ps -C doc
103 #nasl2_reference.ps requires lyx
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post   -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc doc/*.ps
120 %attr(755,root,root) %ghost %{_libdir}/lib*.so.2
121 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
122 %attr(755,root,root) %{_bindir}/nasl
123 %{_mandir}/man1/nasl.1*
124 %{_var}/lib/nessus/nessus_org.pem
125
126 %files devel
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_bindir}/nasl-config
129 %attr(755,root,root) %{_libdir}/lib*.so
130 %{_libdir}/lib*.la
131 %{_includedir}/nessus/nasl.h
132 %{_mandir}/man1/nasl-config.1*
133
134 %files static
135 %defattr(644,root,root,755)
136 %{_libdir}/*.a
This page took 0.087363 seconds and 3 git commands to generate.