Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-M
perl-MPE-File
perl-MPE-File.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-MPE-File.spec of Package perl-MPE-File
# # spec file for package perl-MPE-File # # Copyright (c) 2015 SUSE LINUX 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-MPE-File Version: 0.06 Release: 0 %define cpan_name MPE-File Summary: Perl extension for accessing MPE File intrinsics License: CHECK(GPL-1.0+ or Artistic-1.0) Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/MPE-File/ Source0: http://www.cpan.org/authors/id/K/KA/KAHIRSCH/%{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} %description The primary reference should be the MPE/iX Intrinsic Reference Manual (available at http://docs.hp.com/mpeix/all/index.html) Notice that there are some difference in parameters. For example, I take care of all the delimited strings in HPFOPEN Subroutines return 0 or undef on failure; check $MPE_error for the error number and/or string (both should be valid). For example: if ($MPE_error == 52) { print 0+$MPE_error, " ", $MPE_error, "\n"; } Will print 52 NONEXISTENT PERMANENT FILE (FSERR 52) (if that is the error). MPE::File->new($x) is the same as MPE::File->hpfopen(52, $x) which, to quote the Intrinsic manual: "Passes a character string that matches the file equation specification syntax exactly." You can pass other HPFOPEN parameter pairs after the first one, although almost all can be specified in the file equation. One that can't be is to save a file right away, on HPFOPEN, instead of waiting until FCLOSE. You can do that like this: $file = MPE::File->new("FRED,new;rec=-80,,f,ascii;msg;acc=in", 3, 4) or die "Cannot open FRED: $MPE_error\n"; (Notice the 3, 4 pair at the end.) If you use FFREADBYKEY, remember to pad out your keys to the full length. Also, if they are binary keys, you'll need to use pack, otherwise a number will be converted to its string equivalent. This documentation will be expanded at some point; feel free to send me suggestions (or completed paragraphs). %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes File.html README TODO %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor