File perl-PDA-Pilot.spec of Package pilot-link
#
# spec file for package perl-PDA-Pilot (Version 0.12.3)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: perl-PDA-Pilot
BuildRequires: gcc-c++ libpisock-devel
Url: http://www.pilot-link.org/
Version: 0.12.3
Release: 4
License: GPL v2 or later ; LGPL v2.1 or later
Group: Development/Libraries/Perl
AutoReqProv: on
Requires: perl = %{perl_version}
Summary: PalmPilot Perl Modules
Source: pilot-link-%{version}.tar.bz2
Patch0: %{name}-0.12.1-pilotxs.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description -n perl-PDA-Pilot
This package contains Perl modules for communicating with the Palm
Pilot.
Authors:
--------
Kenneth Albanowski <kjahds@kjahds.com>
%prep
%setup -q -n pilot-link-%{version}
%patch0
%{?suse_update_config:%{suse_update_config -f scripts}}
%build
./configure --prefix=/usr --mandir=%{_mandir} --libdir=%_libdir
cd bindings/Perl
perl Makefile.PL
make
%install
cd bindings/Perl
make DESTDIR=$RPM_BUILD_ROOT install_vendor INSTALLDIRS=vendor
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc bindings/Perl/README bindings/Perl/test.pl
%doc %{_mandir}/man?/*
%{perl_vendorarch}/PDA
%dir %{perl_vendorarch}/auto/PDA
%{perl_vendorarch}/auto/PDA/Pilot
/var/adm/perl-modules/%{name}
%changelog