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