Changeset 35


Ignore:
Timestamp:
Aug 9, 2007, 3:50:20 PM (11 years ago)
Author:
bruno
Message:

add perl specifics to spec file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pbconf/project-builder/rpm/pb.spec

    r27 r35  
    1515BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
    1616BuildArch:  noarch
    17 Requires:   perl >= 5.8.8, PBDEP
     17Requires:   perl >= 5.8.4, PBDEP
    1818
    1919%description
     
    3131
    3232%build
    33 %configure
    34 make %{?_smp_mflags} VERSION=%{version}
     33%{__rm} -rf $RPM_BUILD_ROOT
     34%{__perl} Makefile.PL %{prefix}
     35make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=%{prefix} %{?_smp_mflags} VERSION=%{version}
     36#perl -p -i -e 's|/usr/local/bin|/usr/bin|g;' *.pm examples/*
    3537
    3638%install
    37 %{__rm} -rf $RPM_BUILD_ROOT
    38 make DESTDIR=$RPM_BUILD_ROOT install
     39eval `perl '-V:installarchlib'`
     40mkdir -p $RPM_BUILD_ROOT/$installarchlib
     41make install PREFIX=$RPM_BUILD_ROOT/%{prefix}
    3942
    4043%clean
     
    4750%doc INSTALL COPYING README TODO AUTHORS NEWS
    4851
    49 %{_sbindir}/*
     52%{_libdir}/perl5/site_perl/*
     53%{_bindir}/*
    5054#%{_mandir}/man8/*
    5155
Note: See TracChangeset for help on using the changeset viewer.