--- /dev/null
+# TODO:
+# - include apache configuration to config
+# - pre/post play
+
+%include /usr/lib/rpm/macros.perl
+Summary: FemFind - crawl your network resources
+Summary(pl): FemFind - przeszukiwanie zasobów sieciowych
+Name: FemFind
+Version: 0.74
+Release: 0.9
+License: GPL v2
+Group: Networking/Utilities
+Source0: http://www.codefactory.de/downloads/%{name}-%{version}.tar.gz
+URL: http://femfind.sourceforge.net/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _wwwsite /home/httpd/html/FemFind
+%define _cgisite /home/httpd/cgi-bin/femfind
+
+%description
+FemFind is a crawler for SMB shares which can be found on Windows or
+Unix systems running Samba. Additionally FemFind crawls FTP servers
+and provides a web interface and a Windows client as frontends.
+
+%description -l pl
+FemFind jest programem przeszukuj±cym zasoby sieci udostêpnione
+poprzez protokó³ SMB na maszynach Windowsowych lub Uniksowych z
+dzia³aj±c± Samb±. Dodatkowo FemFind przeszukuje serwery FTP, dostarcza
+interfejs webowy oraz klienta Windowsowego jako frontend.
+
+%package -n perl-FemFind-ConfigReader
+Summary: FemFind - crawl your network resources
+Summary(pl): FemFind - przeszukiwanie zasobów sieciowych
+Group: Development/Languages/Perl
+
+%description -n perl-FemFind-ConfigReader
+FemFind::ConfigReader perl module for FemFind.
+
+%description -n perl-FemFind-ConfigReader -l pl
+Perlowy modu³ FemFind::ConfigReader dla FemFinda.
+
+%package -n perl-FemFind-Helper
+Summary: FemFind - crawl your network resources
+Summary(pl): FemFind - przeszukiwanie zasobów sieciowych
+Group: Development/Languages/Perl
+
+%description -n perl-FemFind-Helper
+FemFind::Helper perl module for FemFind.
+
+%description -n perl-FemFind-Helper -l pl
+Perlowy modu³ FemFind::Helper dla FemFinda.
+
+%package -n FemFind-cgi
+Summary: FemFind - crawl your network resources
+Summary(pl): FemFind - przeszukiwanie zasobów sieciowych
+Group: Networking/Utilities
+
+%description -n FemFind-cgi
+CGI scripts for FemFind frontend.
+
+%description -n FemFind-cgi -l pl
+Skrypty CGI do frontendu FemFinda.
+
+%prep
+%setup -q
+
+%build
+cd modules
+cd ConfigReader
+ perl Makefile.PL
+ %{__make}
+cd ..
+cd Helper
+ perl Makefile.PL
+ %{__make}
+cd ..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/sysconfig,%{_bindir},%{_sbindir}}
+install -d $RPM_BUILD_ROOT{%{_wwwsite},%{_cgisite}/german}
+
+for i in Helper ConfigReader; do
+ cd modules/$i
+ %{__make} install DESTDIR=$RPM_BUILD_ROOT
+ cd ../../
+done
+
+install femfind.conf $RPM_BUILD_ROOT%{_sysconfdir}
+install makedb.pl $RPM_BUILD_ROOT%{_sbindir}
+install crawler.pl $RPM_BUILD_ROOT%{_bindir}
+install german/* $RPM_BUILD_ROOT%{_cgisite}/german
+install cgi-bin/femfind/* $RPM_BUILD_ROOT%{_cgisite}
+install htdocs/femfind/* $RPM_BUILD_ROOT%{_wwwsite}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/femfind.conf
+%attr(755,root,root) %{_sbindir}/makedb.pl
+%attr(755,root,root) %{_bindir}/crawler.pl
+
+%files -n perl-FemFind-ConfigReader
+%defattr(644,root,root,755)
+%{perl_sitelib}/FemFind/*.pm
+
+%files -n perl-FemFind-Helper
+%defattr(644,root,root,755)
+%{perl_sitelib}/FemFind/*.pm
+%{_mandir}/man3/FemFind::Helper.3pm.gz
+
+%files -n FemFind-cgi
+%defattr(644,root,root,755)
+%dir %{_cgisite}
+%dir %{_wwwsite}
+%attr(755,root,root) %{_cgisite}/german/*.pl
+%attr(644,root,root) %{_cgisite}/german/*.html
+%attr(755,root,root) %{_cgisite}/*.pl
+%attr(644,root,root) %{_cgisite}/*.html
+%attr(644,root,root) %{_cgisite}/ftp_list
+%attr(644,root,root) %{_wwwsite}/*