File perl-WebService-Cmis.spec of Package perl-WebService-Cmis
#
# spec file for package perl-Cache-Cache
#
# Copyright (c) 2014 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-WebService-Cmis
Version: 0.09
Release: 1.2
%define cpan_name WebService-Cmis
Summary: WebService Cmis CLient
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/WebService-Cmis/
Source: http://search.cpan.org/CPAN/authors/id/N/NU/NUDDLEGG/%{cpan_name}-0.09.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
#BuildRequires: perl-macros
#BuildRequires: perl(Digest::SHA1) >= 2.02
#BuildRequires: perl(Error) >= 0.15
#BuildRequires: perl(IPC::ShareLite) >= 0.09
#Requires: perl(Digest::SHA1) >= 2.02
#Requires: perl(Error) >= 0.15
#Requires: perl(IPC::ShareLite) >= 0.09
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: perl-ExtUtils-CBuilder
%else
%{perl_requires}
%endif
Patch0: WebService-Cmis-0.09.patch0
%description
Perl interface to CMIS-compliant document management systems
%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
#%check
#%{__make} test
%install
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
%{__rm} -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%else
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%endif
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
%files
%defattr(-,root,root,-)
%{_mandir}/man3/*
%{perl_privlib}/vendor_perl/*
%else
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%endif
%changelog
* Thu Sep 18 2014 mlin@suse.com
- update to version 1.07