summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorchatty2004-09-07 08:42:54 +0000
committerchatty2004-09-07 08:42:54 +0000
commit69b913ea05d7125955330962b6012890cd73f9a7 (patch)
tree1b91410cdb03e8c171b00838df3b172a26eb5f8f /rpm
parent52439d8a1f3cc2c799e1a53bd09772eb219ef2da (diff)
downloadivy-perl-69b913ea05d7125955330962b6012890cd73f9a7.zip
ivy-perl-69b913ea05d7125955330962b6012890cd73f9a7.tar.gz
ivy-perl-69b913ea05d7125955330962b6012890cd73f9a7.tar.bz2
ivy-perl-69b913ea05d7125955330962b6012890cd73f9a7.tar.xz
Removed dependency to perl-Time-Gettimeofday, now useless
Now build packages that install directly in vendor_perl/
Diffstat (limited to 'rpm')
-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";