Summary: An offline browser utility Name: httrack Version: 3.41.22 Release: 1.n0i.1 Group: Applications/Internet License: GPLv2+ URL: http://www.httrack.com/ Source0: http://www.httrack.com/httrack-3.41-3.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t BuildRequires: dos2unix BuildRequires: zlib-devel BuildRequires: desktop-file-utils %description HTTrack is a free and easy-to-use offline browser utility. It allows you to download a World Wide Web site from the Internet to a local directory, building recursively all directories, getting HTML, images, and other files from the server to your computer. %package libs Summary: Httrack website copier library Group: System Environment/Libraries %description libs This package contains the httrack website copier libraries. %package libs-devel Summary: Development files for httrack library Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description libs-devel This package contains the development files needed for building applications depending on httrack website copier libraries. %package -n webhttrack Summary: Web based frontend to httrack Group: Applications/Internet Requires: %{name} = %{version}-%{release} %description -n webhttrack Webhttrack is a web based frontend to httrack, the website copier. This package also contains the HTML documentation (a local mirror of Httrack's homepage). Yes, this is a bug ;-) %package -n proxytrack Summary: Proxy to serve content archived by httrack website copier Group: System Environment/Daemons Requires: %{name} = %{version}-%{release} %description -n proxytrack ProxyTrack is a simple proxy server aimed to deliver content archived by HTTrack sessions. %prep %setup -q %{__find} . -type f -exec dos2unix -k {} \; %{__chmod} a-x src/proxy/changelog.txt %build %{configure} --disable-static %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{makeinstall} # drop static/libtool cruft %{__rm} -rf %{buildroot}/%{_libdir}/*.la %{__rm} -rf %{buildroot}/%{_libdir}/%{name}/*.la # we'll install libtest's examples as docs [ -d libtest-examples ] && %{__rm} -rf libtest-examples %{__mv} %{buildroot}/%{_datadir}/%{name}/libtest libtest-examples # we'll do a proper doc install later %{__rm} -rf %{buildroot}/%{_docdir}/%{name} # "proper" (Fedora like) desktop files installation for file in %{buildroot}/%{_datadir}/applications/* do %{__perl} -ni -e '/^MultipleArgs/ or $DUP{$_}++ or print' $file desktop-file-install --vendor reb00t --delete-original \ --dir %{buildroot}/%{_datadir}/applications $file done %clean %{__rm} -rf %{buildroot} %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %post -n webhttrack for x in update-desktop-database scrollkeeper-update do exec="%{_bindir}/$x" [ -x "$exec" ] && "$exec" -q done %postun -n webhttrack for x in update-desktop-database scrollkeeper-update do exec="%{_bindir}/$x" [ -x "$exec" ] && "$exec" -q done %files %defattr(-,root,root,-) %doc AUTHORS COPYING README %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.* %files libs %defattr(-,root,root,-) %{_libdir}/lib*.so.* %dir %{_libdir}/%{name} %{_libdir}/%{name}/*.so.* %files libs-devel %defattr(-,root,root,-) %doc libtest-examples %{_libdir}/lib*.so %{_libdir}/%{name}/*.so %{_includedir}/%{name} %files -n webhttrack %defattr(-,root,root,-) %{_bindir}/webhttrack %{_bindir}/htsserver %{_mandir}/man1/webhttrack.1.* %{_mandir}/man1/htsserver.1.* %{_datadir}/%{name} %{_datadir}/pixmaps/* %{_datadir}/applications/*.desktop %files -n proxytrack %defattr(-,root,root,-) %doc src/proxy/AUTHORS src/proxy/COPYING src/proxy/changelog.txt %{_bindir}/proxytrack %{_mandir}/man1/proxytrack.1.* %changelog * Mon Oct 29 2007 Marius FERARU - 3.41.22-1.n0i.1 - resurrected under reb00t's umbrella - spec cleanup - added post(un) scripts for webhttrack (desktop crap)