]> git.pld-linux.org Git - packages/perl-ExtUtils-XSBuilder.git/commitdiff
- initial revision
authormigo <migo@pld-linux.org>
Thu, 25 Dec 2003 22:16:17 +0000 (22:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-ExtUtils-XSBuilder.spec -> 1.1

perl-ExtUtils-XSBuilder.spec [new file with mode: 0644]

diff --git a/perl-ExtUtils-XSBuilder.spec b/perl-ExtUtils-XSBuilder.spec
new file mode 100644 (file)
index 0000000..2166dd1
--- /dev/null
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+                       # there are no tests defined currently, so
+                       # don't bother
+
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    ExtUtils
+%define        pnam    XSBuilder
+Summary:       ExtUtils::XSBuilder - Automatic XS glue code generation
+Name:          perl-ExtUtils-XSBuilder
+Version:       0.23
+Release:       1
+# same as Perl
+License:       GPL or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: b6c8dee223cc9772ed6288ab223cfa54
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ExtUtils::XSBuilder is a set modules to parse C header files and create XS glue
+code and documentation out of it. Idealy this allows to "write" an interface to
+a C library without coding a line. Since no C-API is ideal, some adjuments are
+necessary most of the time. So to use this module you must still be familar
+with C and XS programming, but it removes a lot of stupid work and copy&paste
+from you. Also when the C API changes, most of the time you only have to rerun
+XSBuilder to get your new Perl API.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/ExtUtils/XSBuilder.pm
+%{perl_vendorlib}/ExtUtils/XSBuilder/*
+%{_mandir}/man3/*
This page took 0.265292 seconds and 4 git commands to generate.