3 # - include apache configuration to config
6 # - fix ownership of the perl_vendorlib/FemFind directory
8 %include /usr/lib/rpm/macros.perl
9 Summary: FemFind - crawl your network resources
10 Summary(pl): FemFind - przeszukiwanie zasobów sieciowych
15 Group: Networking/Utilities
16 Source0: http://www.codefactory.de/downloads/%{name}-%{version}.tar.gz
17 Patch0: %{name}-config.patch
18 URL: http://femfind.sourceforge.net/
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _wwwsite /home/services/httpd/html/FemFind
23 %define _cgisite /home/services/httpd/cgi-bin/femfind
26 FemFind is a crawler for SMB shares which can be found on Windows or
27 Unix systems running Samba. Additionally FemFind crawls FTP servers
28 and provides a web interface and a Windows client as frontends.
31 FemFind jest programem przeszukuj±cym zasoby sieci udostêpnione
32 poprzez protokó³ SMB na maszynach Windowsowych lub Uniksowych z
33 dzia³aj±c± Samb±. Dodatkowo FemFind przeszukuje serwery FTP, dostarcza
34 interfejs webowy oraz klienta Windowsowego jako frontend.
36 %package -n perl-FemFind-ConfigReader
37 Summary: FemFind - crawl your network resources
38 Summary(pl): FemFind - przeszukiwanie zasobów sieciowych
39 Group: Development/Languages/Perl
41 %description -n perl-FemFind-ConfigReader
42 FemFind::ConfigReader perl module for FemFind.
44 %description -n perl-FemFind-ConfigReader -l pl
45 Perlowy modu³ FemFind::ConfigReader dla FemFinda.
47 %package -n perl-FemFind-Helper
48 Summary: FemFind - crawl your network resources
49 Summary(pl): FemFind - przeszukiwanie zasobów sieciowych
50 Group: Development/Languages/Perl
52 %description -n perl-FemFind-Helper
53 FemFind::Helper perl module for FemFind.
55 %description -n perl-FemFind-Helper -l pl
56 Perlowy modu³ FemFind::Helper dla FemFinda.
58 %package -n FemFind-cgi
59 Summary: FemFind - crawl your network resources
60 Summary(pl): FemFind - przeszukiwanie zasobów sieciowych
61 Group: Networking/Utilities
63 %description -n FemFind-cgi
64 CGI scripts for FemFind frontend.
66 %description -n FemFind-cgi -l pl
67 Skrypty CGI do frontendu FemFinda.
76 %{__perl} Makefile.PL \
81 %{__perl} Makefile.PL \
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT{/etc/sysconfig,%{_bindir},%{_sbindir}}
89 install -d $RPM_BUILD_ROOT{%{_wwwsite},%{_cgisite}/german,/var/{lib/femfind,log}}
92 -C modules/ConfigReader \
93 DESTDIR=$RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT
99 install femfind.conf $RPM_BUILD_ROOT%{_sysconfdir}
100 install makedb.pl $RPM_BUILD_ROOT%{_sbindir}
101 install crawler.pl $RPM_BUILD_ROOT%{_bindir}
102 install german/* $RPM_BUILD_ROOT%{_cgisite}/german
103 install cgi-bin/femfind/* $RPM_BUILD_ROOT%{_cgisite}
104 install htdocs/femfind/* $RPM_BUILD_ROOT%{_wwwsite}
106 touch $RPM_BUILD_ROOT/var/log/femfind.log
109 rm -rf $RPM_BUILD_ROOT
112 echo "Remember to init database running %{_sbindir}/makedb.pl"
115 %defattr(644,root,root,755)
117 %dir /var/lib/femfind
118 %ghost /var/log/femfind.log
119 %attr(644,root,root) %config(noreplace) %{_sysconfdir}/femfind.conf
120 %attr(755,root,root) %{_sbindir}/makedb.pl
121 %attr(755,root,root) %{_bindir}/crawler.pl
123 %files -n perl-FemFind-ConfigReader
124 %defattr(644,root,root,755)
126 %{perl_vendorlib}/FemFind/*.pm
127 %{_mandir}/man3/FemFind::ConfigReader.*
129 %files -n perl-FemFind-Helper
130 %defattr(644,root,root,755)
131 # ??? see ConfigReader
132 %{perl_vendorlib}/FemFind/*.pm
133 %{_mandir}/man3/FemFind::Helper.*
135 %files -n FemFind-cgi
136 %defattr(644,root,root,755)
139 %dir %{_cgisite}/german
140 %attr(755,root,root) %{_cgisite}/german/*.pl
141 %{_cgisite}/german/*.html
142 %attr(755,root,root) %{_cgisite}/*.pl