]> git.pld-linux.org Git - packages/femfind.git/blob - femfind.spec
996d0ae4d5ee2646516c92be33a2ae90b409b46c
[packages/femfind.git] / femfind.spec
1 # TODO:
2 # - include apache configuration to config
3 # - pre/post play
4
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        FemFind - crawl your network resources
7 Summary(pl):    FemFind - przeszukiwanie zasobów sieciowych
8 Name:           FemFind
9 Version:        0.74
10 Release:        0.9
11 License:        GPL v2
12 Group:          Networking/Utilities
13 Source0:        http://www.codefactory.de/downloads/%{name}-%{version}.tar.gz
14 URL:            http://femfind.sourceforge.net/
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _wwwsite        /home/httpd/html/FemFind
18 %define         _cgisite        /home/httpd/cgi-bin/femfind
19
20 %description
21 FemFind is a crawler for SMB shares which can be found on Windows or
22 Unix systems running Samba. Additionally FemFind crawls FTP servers
23 and provides a web interface and a Windows client as frontends.
24
25 %description -l pl
26 FemFind jest programem przeszukuj±cym zasoby sieci udostêpnione
27 poprzez protokó³ SMB na maszynach Windowsowych lub Uniksowych z
28 dzia³aj±c± Samb±. Dodatkowo FemFind przeszukuje serwery FTP, dostarcza
29 interfejs webowy oraz klienta Windowsowego jako frontend.
30
31 %package -n perl-FemFind-ConfigReader
32 Summary:        FemFind - crawl your network resources
33 Summary(pl):    FemFind - przeszukiwanie zasobów sieciowych
34 Group:          Development/Languages/Perl
35
36 %description -n perl-FemFind-ConfigReader
37 FemFind::ConfigReader perl module for FemFind.
38
39 %description -n perl-FemFind-ConfigReader -l pl
40 Perlowy modu³ FemFind::ConfigReader dla FemFinda.
41
42 %package -n perl-FemFind-Helper
43 Summary:        FemFind - crawl your network resources
44 Summary(pl):    FemFind - przeszukiwanie zasobów sieciowych
45 Group:          Development/Languages/Perl
46
47 %description -n perl-FemFind-Helper
48 FemFind::Helper perl module for FemFind.
49
50 %description -n perl-FemFind-Helper -l pl
51 Perlowy modu³ FemFind::Helper dla FemFinda.
52
53 %package -n FemFind-cgi
54 Summary:        FemFind - crawl your network resources
55 Summary(pl):    FemFind - przeszukiwanie zasobów sieciowych
56 Group:          Networking/Utilities
57
58 %description -n FemFind-cgi
59 CGI scripts for FemFind frontend.
60
61 %description -n FemFind-cgi -l pl
62 Skrypty CGI do frontendu FemFinda.
63
64 %prep
65 %setup -q
66
67 %build
68 cd modules
69 cd ConfigReader
70         perl Makefile.PL
71         %{__make}
72 cd ..
73 cd Helper
74         perl Makefile.PL
75         %{__make}
76 cd ..
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/sysconfig,%{_bindir},%{_sbindir}}
81 install -d $RPM_BUILD_ROOT{%{_wwwsite},%{_cgisite}/german}
82
83 for i in Helper ConfigReader; do
84         cd modules/$i
85         %{__make} install DESTDIR=$RPM_BUILD_ROOT
86         cd ../../
87 done
88
89 install femfind.conf    $RPM_BUILD_ROOT%{_sysconfdir}
90 install makedb.pl       $RPM_BUILD_ROOT%{_sbindir}
91 install crawler.pl      $RPM_BUILD_ROOT%{_bindir}
92 install german/*        $RPM_BUILD_ROOT%{_cgisite}/german
93 install cgi-bin/femfind/*       $RPM_BUILD_ROOT%{_cgisite}
94 install htdocs/femfind/*        $RPM_BUILD_ROOT%{_wwwsite}
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %files
100 %defattr(644,root,root,755)
101 %doc README
102 %attr(644,root,root) %config(noreplace) %{_sysconfdir}/femfind.conf
103 %attr(755,root,root) %{_sbindir}/makedb.pl
104 %attr(755,root,root) %{_bindir}/crawler.pl
105
106 %files -n perl-FemFind-ConfigReader
107 %defattr(644,root,root,755)
108 %{perl_sitelib}/FemFind/*.pm
109
110 %files -n perl-FemFind-Helper
111 %defattr(644,root,root,755)
112 %{perl_sitelib}/FemFind/*.pm
113 %{_mandir}/man3/FemFind::Helper.3pm.gz
114
115 %files -n FemFind-cgi
116 %defattr(644,root,root,755)
117 %dir %{_cgisite}
118 %dir %{_wwwsite}
119 %attr(755,root,root) %{_cgisite}/german/*.pl
120 %attr(644,root,root) %{_cgisite}/german/*.html
121 %attr(755,root,root) %{_cgisite}/*.pl
122 %attr(644,root,root) %{_cgisite}/*.html
123 %attr(644,root,root) %{_cgisite}/ftp_list
124 %attr(644,root,root) %{_wwwsite}/*
This page took 0.095969 seconds and 2 git commands to generate.