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

%define modname	Inline-Struct
Name:           perl-%{modname}
Version:        0.06
Release:        3.1
Summary:        Manipulate C structures directly from Perl
Requires:       perl = %{perl_version}
BuildRequires:  perl
BuildRequires:  perl-Inline
License:        GPL/Artistic
Group:          Development/Libraries/Perl
Source:         %{modname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-root
Packager:       Jad Naous <jnaous@gmail.com>

%description
 Inline::Struct is not a new language. It's a language 
extension designed to be used by Inline::C. It parses 
struct definitions and creates typemaps and XS code 
which bind each struct into a Perl class. This code 
is passed to Inline::C, which compiles it in the normal way.

 NOTE: Inline::Struct parses only C-style structs. It 
doesn't know about any C++ extensions to structs 
like scopes, constructors or methods. If you want 
such functionality you should use Inline::CPP to 
parse your structs.

Authors:
--------
    Neil Watkiss <nwatkiss@ttul.org>

%prep
%setup -q -n %{modname}-%{version}

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make

%check
make test

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc %{_mandir}/man?/*
%doc README
%{perl_vendorlib}/Inline/Struct*
%{perl_vendorarch}/auto/Inline/Struct
/var/adm/perl-modules/%{name}


%changelog
* Sun Nov  9 2008 Jad Naous <jnaous@stanford.edu> - 0.06-3.1
- Fixed developer's email

* Sun Nov  9 2008 Jad Naous <jnaous@stanford.edu> - 0.06-2
- Moved make test into %check section
- Removed rm -rf buildroot as was recommended by opensuse's rpmlint

* Sun Nov  9 2008 Jad Naous <jnaous@stanford.edu> - 0.06-1
- Initial release

openSUSE Build Service is sponsored by