diff options
author | Edward Rudd | 2010-02-15 14:49:44 -0500 |
---|---|---|
committer | Edward Rudd | 2010-02-15 14:49:44 -0500 |
commit | f46aa23c2c4bf81bd06d5cb92aae395bab98f806 (patch) | |
tree | 8b8244f614ca99b046e08493bf3145514ebdb30e | |
parent | 3b083487e27731a190299f3fd24c20a95ec89e36 (diff) |
add rpm spec file
-rw-r--r-- | DJabberd-VCard-LDAP.spec | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/DJabberd-VCard-LDAP.spec b/DJabberd-VCard-LDAP.spec new file mode 100644 index 0000000..60ec2b1 --- /dev/null +++ b/DJabberd-VCard-LDAP.spec | |||
@@ -0,0 +1,54 @@ | |||
1 | Name: DJabberd-VCard-LDAP | ||
2 | Version: 0.04 | ||
3 | Release: 1%{?dist} | ||
4 | Summary: LDAP vCard support for DJabberd | ||
5 | License: Artistic | ||
6 | Group: Development/Libraries | ||
7 | URL: http://search.cpan.org/dist/DJabberd-VCard-LDAP/ | ||
8 | Source0: http://www.cpan.org/modules/by-module/DJabberd/DJabberd-VCard-LDAP-%{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(DJabberd::Plugin::VCard) | ||
13 | BuildRequires: perl(ExtUtils::MakeMaker) | ||
14 | BuildRequires: perl(Net::LDAP) | ||
15 | Requires: perl(DJabberd) >= 0.83 | ||
16 | Requires: perl(DJabberd::Plugin::VCard) | ||
17 | Requires: perl(Net::LDAP) | ||
18 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | ||
19 | |||
20 | %description | ||
21 | LDAP vCard support for DJabberd | ||
22 | |||
23 | %prep | ||
24 | %setup -q | ||
25 | |||
26 | %build | ||
27 | %{__perl} Makefile.PL INSTALLDIRS=vendor | ||
28 | make %{?_smp_mflags} | ||
29 | |||
30 | %install | ||
31 | rm -rf $RPM_BUILD_ROOT | ||
32 | |||
33 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | ||
34 | |||
35 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; | ||
36 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; | ||
37 | |||
38 | %{_fixperms} $RPM_BUILD_ROOT/* | ||
39 | |||
40 | %check | ||
41 | make test | ||
42 | |||
43 | %clean | ||
44 | rm -rf $RPM_BUILD_ROOT | ||
45 | |||
46 | %files | ||
47 | %defattr(-,root,root,-) | ||
48 | %doc Changes README | ||
49 | %{perl_vendorlib}/* | ||
50 | %{_mandir}/man3/* | ||
51 | |||
52 | %changelog | ||
53 | * Thu Aug 23 2007 Edward Rudd 0.01-1 | ||
54 | - Specfile autogenerated by cpanspec 1.73. | ||