Name: pbnj Version: 2.04 Release: 1%{?dist} Summary: Suite of tools to monitor changes on a network over time Group: Applications/System License: GPL URL: http://pbnj.sf.net Source0: http://download.sourceforge.net/pbnj/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(YAML), perl(DBI), perl(DBD::SQLite), perl(XML::Twig) BuildRequires: perl(File::Which), perl(File::HomeDir), perl(Text::CSV_XS) BuildRequires: perl(Nmap::Parser) BuildRequires: dos2unix Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: nmap %description PBNJ is a suite of tools to monitor changes on a network over time. It does this by checking for changes on the target machine(s), which includes the details about the services running on them as well as the service state. PBNJ parses the data from a scan and stores it in a database. PBNJ uses Nmap to perform scans. %prep %setup -q %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} #make test is skipped due to errors in the tests #Consulted upstream, skipping the test was the proposed solution. %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* #fix end of line encoding in included doc files dos2unix $RPM_BUILD_DIR/%{name}-%{version}/AUTHORS dos2unix $RPM_BUILD_DIR/%{name}-%{version}/ChangeLog dos2unix $RPM_BUILD_DIR/%{name}-%{version}/COPYING dos2unix $RPM_BUILD_DIR/%{name}-%{version}/README dos2unix $RPM_BUILD_DIR/%{name}-%{version}/EXAMPLES %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING EXAMPLES README %{_bindir}/* %{_mandir}/man?/* %changelog * Thu May 02 2007 Sindre Pedersen Bjørdal - 2.04-1 - Initial build