diff --git a/.cvsignore b/.cvsignore index e69de29..40515b3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Inline-0.43.tar.gz diff --git a/perl-Inline.spec b/perl-Inline.spec new file mode 100644 index 0000000..01b603d --- /dev/null +++ b/perl-Inline.spec @@ -0,0 +1,69 @@ +Name: perl-Inline +Version: 0.43 +Release: 4 +Packager: cturner@redhat.com +Summary: Inline Perl module +License: distributable +Group: Development/Libraries +URL: http://search.cpan.org/search?mode=module&query=Inline +BuildRoot: %{_tmppath}/%{name}-root +BuildRequires: perl >= 0:5.00503 perl-Parse-RecDescent +Source0: Inline-0.43.tar.gz + +%description +The Inline module allows you to put source code from other programming +languages directly "inline" in a Perl script or module. The code is +automatically compiled as needed, and then loaded for immediate access +from Perl. + +Inline saves you from the hassle of having to write and compile your +own glue code using facilities like XS or SWIG. Simply type the code +where you want it and run your Perl as normal. All the hairy details +are handled for you. The compilation and installation of your code +chunks all happen transparently; all you will notice is the delay of +compilation on the first run. + +The Inline code only gets compiled the first time you run it (or +whenever it is modified) so you only take the performance hit +once. Code that is Inlined into distributed modules (like on the CPAN) +will get compiled when the module is installed, so the end user will +never notice the compilation time. + +%prep +%setup -q -n Inline-%{version} + +%build +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor < /dev/null +make +make test + +%clean +rm -rf $RPM_BUILD_ROOT +%install + +rm -rf $RPM_BUILD_ROOT +eval `perl '-V:installarchlib'` +mkdir -p $RPM_BUILD_ROOT/$installarchlib +make install + +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +find $RPM_BUILD_ROOT/usr -type f -print | \ + sed "s@^$RPM_BUILD_ROOT@@g" | \ + grep -v perllocal.pod | \ + grep -v "\.packlist" > Inline-0.43-filelist +if [ "$(cat Inline-0.43-filelist)X" = "X" ] ; then + echo "ERROR: EMPTY FILE LIST" + exit -1 +fi + +%files -f Inline-0.43-filelist +%defattr(-,root,root) + +%changelog +* Thu Jun 27 2002 Chip Turner +- description update + +* Fri Jun 07 2002 cturner@redhat.com +- Specfile autogenerated + diff --git a/sources b/sources index e69de29..8d19636 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2defdebaaa5622b8653cb47f66f9d22e Inline-0.43.tar.gz