summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpm/rules14
1 files changed, 8 insertions, 6 deletions
diff --git a/rpm/rules b/rpm/rules
index 0eb7771..e387f58 100644
--- a/rpm/rules
+++ b/rpm/rules
@@ -5,16 +5,18 @@ $Vendor = "Centre d'Etudes de la Navigation Aerienne";
$Distribution = "Toccata";
$Group = "System Environment/Libraries";
$Url = "http://www.tls.cena.fr/products/ivy";
-$Requires = "perl, perl-Time-Gettimeofday, perl-IO-Socket-Multicast";
+$Requires = "perl, perl-IO-Socket-Multicast";
$Description = "This is the Perl interface to the Ivy software bus developped at CENA.";
-$Build = "perl Makefile.PL
+$Build = "eval `perl '-V:vendorlib_stem'`
+perl Makefile.PL LIB=\$vendorlib_stem INSTALLDIRS=vendor
make";
+
$Install = "rm -rf \$RPM_BUILD_ROOT
-eval `perl '-V:installarchlib'`
-mkdir -p \$RPM_BUILD_ROOT/\$installarchlib
-make PREFIX=\$RPM_BUILD_ROOT/usr install
-find \$RPM_BUILD_ROOT/usr -type f -print | sed \"s\@^\$RPM_BUILD_ROOT\@\@g\" | grep -v perllocal.pod | grep -v .packlist > $Name-\%{version}-filelist";
+eval `perl '-V:vendorlib_stem'`
+mkdir -p \$RPM_BUILD_ROOT/\$vendorlib_stem
+make PREFIX=\$RPM_BUILD_ROOT/usr pure_install
+find \$RPM_BUILD_ROOT/usr -type f -print | sed \"s\@^\$RPM_BUILD_ROOT\@\@g\" | grep -v .packlist > $Name-\%{version}-filelist";