Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 32deaad53fae2c25cf39aecf44b14dfa > files > 2

perl-Convert-Binary-C-0.760.0-4.mga3.src.rpm

%define upstream_name	 Convert-Binary-C
%define upstream_version 0.76

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 4

Summary:	%{upstream_name} module for perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Convert/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel


%description
Convert::Binary::C is a preprocessor and parser for C type definitions. 
It is highly configurable and supports arbitrarily complex data structures. 
Its object-oriented interface has pack and unpack methods that act as 
replacements for Perl's pack and unpack and allow to use C types instead 
of a string representation of the data structure for conversion of binary 
data from and to Perl's complex data structures.

Actually, what Convert::Binary::C does is not very different from what a 
C compiler does, just that it doesn't compile the source code into an object 
file or executable, but only parses the code and allows Perl to use the 
enumerations, structs, unions and typedefs that have been defined within 
your C source for binary data conversion, similar to Perl's pack and unpack.

Beyond that, the module offers a lot of convenience methods to retrieve 
information about the C types that have been parsed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make}

%check
%{__make} test

%clean 
rm -rf %{buildroot}

%install
%makeinstall_std

%files
%defattr(-,root,root)
%{_bindir}/*
%doc Changes README META.yml
%{perl_vendorlib}/
%{_mandir}/*/*


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 0.760.0-4.mga3
+ Revision: 364775
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed May 30 2012 jquelin <jquelin> 0.760.0-3.mga3
+ Revision: 250372
- rebuild for perl 5.16

* Sat Jun 11 2011 sander85 <sander85> 0.760.0-2.mga2
+ Revision: 103751
- perl 5.14

* Tue Apr 12 2011 kharec <kharec> 0.760.0-1.mga1
+ Revision: 83536
- update to new version 0.76

* Fri Jan 21 2011 jquelin <jquelin> 0.740.0-2.mga1
+ Revision: 29960
- mageia rebuild
- imported package perl-Convert-Binary-C