File perl-Parse-Pidl.spec of Package perl-Parse-Pidl

#
# spec file for package perl-Parse-Pidl
#
# Copyright (c) 2013 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/
#


Name:           perl-Parse-Pidl
Version:        0.02
Release:        0
Requires:       perl = %{perl_version}
Url:            http://cpan.org/modules/by-module/Parse
Summary:        pidl - An IDL compiler written in Perl
License:        Artistic-1.0 and GPL-2.0+
Group:          Development/Libraries/Perl
Source:         Parse-Pidl-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
pidl is an IDL compiler written in Perl that aims to be somewhat compatible
with the midl compiler. IDL is short for "Interface Definition Language".

pidl can generate stubs for DCE/RPC server code, DCE/RPC client code and
ethereal dissectors for DCE/RPC traffic.

IDL compilers like pidl take a description of an interface as their input
and use it to generate C (though support for other languages may be added
later) code that can use these interfaces, pretty print data sent using
these interfaces, or even generate ethereal dissectors that can parse data
sent over the wire by these interfaces.

pidl takes IDL files in the same format as is used by midl, converts it
to a .pidl file (which contains pidl's internal representation of the
interface) and can then generate whatever output you need. .pidl files
should be used for debugging purposes only. Write your interface definitions
in .idl format.

The goal of pidl is to implement a IDL compiler that can be used while
developing the RPC subsystem in Samba (for both marshalling/unmarshalling
and debugging purposes).


%prep
%setup -n Parse-Pidl-%{version}

%build
perl Makefile.PL
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
chmod 644 README
chmod 644 $RPM_BUILD_ROOT/%{perl_vendorlib}/Parse/*.pm
chmod 644 $RPM_BUILD_ROOT/%{perl_vendorlib}/Parse/Pidl/*.pm

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Parse
%{perl_vendorarch}/auto/Parse
%{_bindir}/*
%if %{?suse_version} <= 1130
/var/adm/perl-modules/%{name}
%endif

%changelog
openSUSE Build Service is sponsored by