File perl-Inline-C.spec of Package perl-Inline-C
#
# spec file for package perl-Inline-C
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Inline-C
BuildRequires: perl-Inline
BuildRequires: perl-macros
Version: 0.12
Release: 357
Provides: Inline-C
Requires: perl-Inline
AutoReqProv: on
Group: Development/Libraries/Perl
License: GPL+ or Artistic
Url: http://www.cpan.org/modules/by-module/Inline
Summary: Write Perl subroutines in C
Source: Inline-CPR-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch: Inline-CPR-%{version}.diff
Patch1: %{name}-%{version}-implicit.diff
%{perl_requires}
%description
This module allows you to program C in perl. See also perl-Inline.
Authors:
--------
Brian Ingerson <INGY@cpan.org>
%prep
%setup -q -n Inline-CPR-%{version}
%patch
%patch1
%build
perl Makefile.PL
make %{?_smp_mflags} CCCDLFLAGS="$RPM_OPT_FLAGS"
make test
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changes README MANIFEST
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Inline/CPR*
%{perl_vendorarch}/auto/Inline/CPR
/usr/bin/cpr.pl
%changelog