You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.0 KiB
70 lines
2.0 KiB
21 years ago
|
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 <cturner@redhat.com>
|
||
|
- description update
|
||
|
|
||
|
* Fri Jun 07 2002 cturner@redhat.com
|
||
|
- Specfile autogenerated
|
||
|
|