File perl-Inline-C.spec of Package perl-Inline-C

#
# spec file for package perl-Inline-C (Version 0.12)
#
# Copyright (c) 2009 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
Version:        0.12
Release:        341
Provides:       Inline-C
Requires:       perl-Inline
Requires:       perl = %{perl_version}
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License
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

%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 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
/var/adm/perl-modules/%{name}

%changelog
* Fri Jan 26 2007 anicka@suse.cz
- compile with $RPM_OPT_FLAGS and fix implicit definitions of
  special functions
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Thu Jul 17 2003 freitag@suse.de
- used vendor macros and perl_process_packlist in filelist
* Sun May 25 2003 ro@suse.de
- remove unpackaged files from buildroot
* Tue Dec 03 2002 freitag@suse.de
- new package version
openSUSE Build Service is sponsored by