]>
Commit | Line | Data |
---|---|---|
74f56fd9 ER |
1 | # |
2 | # Conditional build: | |
e887b3f6 | 3 | %bcond_with tests # perform "make test" |
74f56fd9 | 4 | # |
1ee96c21 | 5 | %define pdir Apache |
6 | %define pnam FileManager | |
7 | Summary: Apache::FileManager - Apache mod_perl File Manager | |
9cd210a6 | 8 | Summary(pl.UTF-8): Apache::FileManager - zarządca plików oparty na Apache i mod_perl |
1ee96c21 | 9 | Name: perl-Apache-FileManager |
55fab90d | 10 | Version: 0.19 |
1ee96c21 | 11 | Release: 1 |
12 | License: ? | |
13 | Group: Applications/Shells | |
14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
55fab90d | 15 | # Source0-md5: c9215148e78d20b3ef9774210d08daf3 |
74f56fd9 | 16 | URL: http://freshmeat.net/projects/apache-filemanager/ |
991a6289 ER |
17 | BuildRequires: rpmbuild(macros) >= 1.228 |
18 | Requires(post,preun): rc-scripts | |
74f56fd9 | 19 | %if %{with tests} |
e8c730b6 ER |
20 | BuildRequires: perl(Apache::Constants) >= 1.09 |
21 | BuildRequires: perl(Apache::File) >= 1.01 | |
22 | BuildRequires: perl(Apache::Request) | |
23 | BuildRequires: perl(Apache::Util) | |
24 | BuildRequires: perl(File::NCopy) >= 0.32 | |
25 | BuildRequires: perl(File::Remove) >= 0.2 | |
74f56fd9 ER |
26 | %endif |
27 | BuildArch: noarch | |
55fab90d SP |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | The Apache::FileManager module is a simple HTML file manager. It | |
32 | provides file manipulations such as cut, copy, paste, delete, rename, | |
33 | extract archive, create directory, create file, edit file, and upload | |
34 | files. It also has the ability to rsync the server htdocs tree to | |
35 | another server with the click of a button. | |
36 | ||
b4849fac JR |
37 | %description -l pl.UTF-8 |
38 | Moduł Apache::FileManager to prosty zarządca plików HTML. Udostępnia | |
7d73fed7 | 39 | operacje na plikach takie jak wycinanie, kopiowanie, wstawianie, |
b4849fac JR |
40 | usuwanie, zmiana nazw, rozpakowywanie archiwów, tworzenie katalogów, |
41 | tworzenie plików, modyfikowanie plików oraz wysyłanie (upload) plików. | |
42 | Ma także możliwość rsyncowania drzewa htdocs z serwera na inny serwer | |
43 | poprzez kliknięcie. | |
7d73fed7 | 44 | |
55fab90d | 45 | %prep |
1ee96c21 | 46 | %setup -q -n %{pdir}-%{pnam}-%{version} |
55fab90d SP |
47 | |
48 | %build | |
49 | %{__perl} Makefile.PL \ | |
991a6289 | 50 | INSTALLDIRS=vendor |
1ee96c21 | 51 | %{__make} |
55fab90d | 52 | |
74f56fd9 ER |
53 | %{?with_tests:%{__make} test} |
54 | ||
55fab90d SP |
55 | %install |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
74f56fd9 ER |
58 | %{__make} install \ |
59 | DESTDIR=$RPM_BUILD_ROOT | |
d4b3ba05 | 60 | |
55fab90d SP |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
991a6289 | 64 | %files |
55fab90d | 65 | %defattr(644,root,root,755) |
d4b3ba05 SP |
66 | %doc Changes |
67 | %{_mandir}/man3/* | |
74f56fd9 | 68 | %{perl_vendorlib}/Apache/FileManager.pm |