%{!?upname: %global upname gsd} #Naming convention different from upstream package because: #- GSD adds module to OpenVAS - similar to eclipse-* SDL_* or pam_* #- All other openvas modules use naming convention openvas-* #openvas-libraries, openvas-scanner, openvas-manager, openvas-administrator, openvas-cli Name: openvas-gsd Summary: Greenbone Security Desktop client application for OpenVAS Version: 1.2.2 Release: 3%{?dist} URL: http://www.openvas.org License: GPLv2+ Group: Applications/System Source0: http://wald.intevation.org/frs/download.php/1084/%{upname}-%{version}.tar.gz Source1: %{upname}.desktop #Program icon 48x48 created based on the src/img/gb-logo.png Source2: %{upname}.png #Patch to fix type definition of omp_type,omp_entity_command,omp_task_command Patch0: openvas-gsd-enum.patch #To keep naming compatibility with the upstream package name being different Provides: %{upname} = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: htmldoc BuildRequires: openvas-libraries-devel >= 4.0 BuildRequires: cmake BuildRequires: pkgconfig BuildRequires: desktop-file-utils BuildRequires: glibc-devel BuildRequires: glib2-devel BuildRequires: qt4-devel BuildRequires: gnutls-devel BuildRequires: openssl-devel #BuildRequires: doxygen BuildRequires: xmltoman BuildRequires: gpgme-devel BuildRequires: qt-webkit-devel %description The GSD is a desktop client that connects to the OpenVAS Manager using the OMP protocol. %prep %setup -q -n %{upname}-%{version} %patch0 -b .enum -p 1 %build %cmake -DLOCALSTATEDIR:PATH=%{_var} -DSYSCONFDIR:PATH=%{_sysconfdir} -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE make %{?_smp_mflags} #make doc %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} # Install desktop entry desktop-file-install --dir %{buildroot}/%{_datadir}/applications %{SOURCE1} #Install the application icon install -d %{buildroot}/%{_datadir}/pixmaps install -D -p -m 0644 %{SOURCE2} %{buildroot}/%{_datadir}/pixmaps/ %find_lang %{upname} --with-qt %clean rm -rf %{buildroot} %files -f %{upname}.lang %defattr(-,root,root,-) %doc CHANGES COPYING ChangeLog README TODO %dir %{_sysconfdir}/openvas %dir %{_datadir}/openvas %dir %{_datadir}/openvas/translations %config(noreplace) %{_sysconfdir}/openvas/%{upname}_log.conf %{_bindir}/%{upname} %{_mandir}/man8/%{upname}.8.* %{_datadir}/openvas/*.html %{_datadir}/applications/%{upname}.desktop %{_datadir}/pixmaps/%{upname}.png %changelog * Sat Feb 09 2013 Michal Ambroz - 1.2.2-3 - rebuild ith OpenVAS6 - find_lang - make the build process verbose * Fri Nov 16 2012 Michal Ambroz - 1.2.2-2 - rebuild with OpenVAS5 * Sat May 26 2012 Michal Ambroz - 1.2.2-1 - upgrade to version 1.2.2 * Mon Mar 26 2012 Michal Ambroz - 1.2.1-2 - Patch to fix type definition of omp_type,omp_entity_command,omp_task_command * Tue Dec 14 2011 Michal Ambroz - 1.2.1-1 - Bump to new latest version * Mon Apr 04 2011 Michal Ambroz - 1.1.1-1 - Initial build of GSD client for OpenVAS release 4