diff options
| author | 2010-02-15 14:53:00 -0500 | |
|---|---|---|
| committer | 2010-02-15 14:53:00 -0500 | |
| commit | 24db10382efec6a8cdf9b2e6d838e1f960747e63 (patch) | |
| tree | 34dffc3739b95b80daa0f3510db5dc05f2fa1be0 | |
| parent | 30711f625ed69855efa0e21117397eb082ed642a (diff) | |
add rpm spec file
| -rw-r--r-- | DJabberd-EntityTime.spec | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/DJabberd-EntityTime.spec b/DJabberd-EntityTime.spec new file mode 100644 index 0000000..c5dc504 --- /dev/null +++ b/DJabberd-EntityTime.spec | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | Name: DJabberd-EntityTime | ||
| 2 | Version: 0.03 | ||
| 3 | Release: 1%{?dist} | ||
| 4 | Summary: Implements XEP-0090 and XEP-0202 for DJabberd | ||
| 5 | License: Artistic | ||
| 6 | Group: Development/Libraries | ||
| 7 | URL: http://search.cpan.org/dist/DJabberd-EntityTime/ | ||
| 8 | Source0: http://www.cpan.org/modules/by-module/DJabberd/DJabberd-EntityTime-%{version}.tar.gz | ||
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
| 10 | BuildArch: noarch | ||
| 11 | BuildRequires: perl(DJabberd) >= 0.83 | ||
| 12 | BuildRequires: perl(ExtUtils::MakeMaker) | ||
| 13 | Requires: perl(DJabberd) >= 0.83 | ||
| 14 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | ||
| 15 | |||
| 16 | %description | ||
| 17 | perl Makefile.PL make make test make install | ||
| 18 | |||
| 19 | %prep | ||
| 20 | %setup -q | ||
| 21 | |||
| 22 | %build | ||
| 23 | %{__perl} Makefile.PL INSTALLDIRS=vendor | ||
| 24 | make %{?_smp_mflags} | ||
| 25 | |||
| 26 | %install | ||
| 27 | rm -rf $RPM_BUILD_ROOT | ||
| 28 | |||
| 29 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | ||
| 30 | |||
| 31 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; | ||
| 32 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; | ||
| 33 | |||
| 34 | %{_fixperms} $RPM_BUILD_ROOT/* | ||
| 35 | |||
| 36 | %check | ||
| 37 | make test | ||
| 38 | |||
| 39 | %clean | ||
| 40 | rm -rf $RPM_BUILD_ROOT | ||
| 41 | |||
| 42 | %files | ||
| 43 | %defattr(-,root,root,-) | ||
| 44 | %doc Changes README | ||
| 45 | %{perl_vendorlib}/* | ||
| 46 | %{_mandir}/man3/* | ||
| 47 | |||
| 48 | %changelog | ||
| 49 | * Fri Aug 03 2007 Edward Rudd 0.01-1 | ||
| 50 | - Specfile autogenerated by cpanspec 1.73. | ||
