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

# spec file for package perl-Convert-BinHex
# Copyright (c) 2011 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

# norootforbuild

Name:           perl-Convert-BinHex
%define        real_name Convert-BinHex
Summary:        Extract data from Macintosh BinHex files
Group:          Development/Libraries/Perl
License:        GPL-1.0+ or Artistic-1.0
Version:        1.119
Release:        15
Source:         %{real_name}-%{version}.tar.gz
Patch1:         Convert-BinHex-1.119-enable-checker.patch
BuildRequires:  perl-macros
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

    Written by Eryq, /

%setup -n %{real_name}-%{version}
%patch1 -p0

perl Makefile.PL 
make %{?jobs:-j%jobs}

make test

install -Dm755 bin/ %{buildroot}/%{_bindir}/
install -m755  bin/ %{buildroot}/%{_bindir}/
find docs/ -type f -exec chmod -x {} \;

rm -rf %{buildroot}

%files -f %{name}.files
%defattr(-, root, root)
%doc docs/Convert/*