Name: SABnzbd Version: 0.6.9 Release: 5.3 Summary: Heavily Featured Automatic Binary Newsgrabber Group: Applications/Internet License: GPLv3+ URL: http://www.sabnzbd.org/ Source0: SABnzbd-%{version}-src.tar.gz Source1: SABnzbd.init BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch BuildRequires: python-devel Requires: par2cmdline %if 0%{?suse_version} Requires: python-openssl %else Requires: pyOpenSSL %endif Requires: python-cheetah Requires: python-feedparser Requires: python-yenc Requires: unzip Requires: unrar %description Fully automatic Binary Newsgrabber. Supports multiple Operating Systems. Server-oriented using a web-interface. The active successor of the abandoned SABnzbd project. %prep %setup -q -n %{name}-%{version} %build %install rm -rf $RPM_BUILD_ROOT #launcher mkdir -p %buildroot%_bindir/ cat > %buildroot%_bindir/%{name} << EOF #!/bin/sh cd %_datadir/%{name}/ python SABnzbd.py $* EOF chmod +x %{buildroot}%{_bindir}/%{name} #data install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name} cp -r interfaces $RPM_BUILD_ROOT%{_datadir}/%{name} cp -r sabnzbd $RPM_BUILD_ROOT%{_datadir}/%{name} cp -r locale $RPM_BUILD_ROOT%{_datadir}/%{name} cp -r cherrypy $RPM_BUILD_ROOT%{_datadir}/%{name} cp -r email $RPM_BUILD_ROOT%{_datadir}/%{name} cp -r po $RPM_BUILD_ROOT%{_datadir}/%{name} cp -r tools $RPM_BUILD_ROOT%{_datadir}/%{name} cp -r util $RPM_BUILD_ROOT%{_datadir}/%{name} cp -p %{SOURCE1} %{buildroot}%{_initdir} #cp -p %{SOURCE1} %{buildroot}/etc/init.d/SABnzbd #install -d -m 755 $RPM_BUILD_ROOT/etc/init.d/SABnzbd #cp -p %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/%{name} install -m 755 SABnzbd.py $RPM_BUILD_ROOT%{_datadir}/%{name} mkdir -p %{buildroot}%{_sbindir} ln -sf %{_initrddir}/SABnzbd %{buildroot}%{_sbindir}/rcSABnzbd chmod 644 Sample-PostProc.sh # menu-entry #mkdir -p %{buildroot}%{_datadir}/applications #cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF #[Desktop Entry] #Encoding=UTF-8 #Name=SABnzbd #GenericName=Usenet Binary Downloader #Type=Application #Terminal=false #Comment=SABnzbd Binary Newsreader #Exec=%{name} #Icon= #Categories=Network; #EOF %clean rm -rf $RPM_BUILD_ROOT #%post #%{update_menus} #%postun #%{clean_menus} %files %defattr(-,root,root,-) %doc *.txt Sample-PostProc.sh licenses %_bindir/%{name} %{_datadir}/%{name} #%{_datadir}/applications/%{name}.desktop #%{_initddir}/SABnzbd %{_sbindir}/rcSABnzbd %changelog * Sun Sep 11 2011 Vinzenz Vietzke - 0.6.9 - Moved to 0.6.9 * Tue May 03 2011 Vinzenz Vietzke - 0.6.0RC2 - Moved to 0.6.0 RC2 - Renamed spec file to simple name without release numbers * Sun Mar 20 2011 Frank Eisele - 0.5.6 - Initial version