File perl-Convert-BinHex.spec of Package perl-Convert-BinHex

#
# spec file for package perl-Convert-BinHex
#
# 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-Convert-BinHex
Version:        1.123
Release:        0
%define         real_name Convert-BinHex
Summary:        Extract data from Macintosh BinHex files
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/perldoc?Convert::BinHex
Source:         %{real_name}-%{version}.tar.gz
BuildRequires:  perl-macros
BuildRequires:  perl(Test::Most)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

%description
BinHex is a format used by Macintosh for transporting Mac files safely through
electronic mail, as short-lined, 7-bit, semi-compressed data streams. This
module provides a means of converting those data streams back into binary
data.

%prep
%setup -n %{real_name}-%{version}

%build
perl Makefile.PL
make %{?_smp_mflags}

%check
make test

%install
%perl_make_install
install -Dm755 bin/binhex.pl %{buildroot}%{_bindir}/binhex.pl
install -m755  bin/debinhex.pl %{buildroot}%{_bindir}/
%perl_process_packlist
%perl_gen_filelist

%clean
rm -rf %{buildroot}

%files -f %{name}.files
%defattr(-, root, root)
%doc COPYING README* MANIFEST

%changelog
openSUSE Build Service is sponsored by