2017-08-14 12:50:48 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Image-Sane
|
|
|
|
#
|
2023-08-08 15:30:34 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-08-14 12:50:48 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-14 07:26:13 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-08-14 12:50:48 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Image-Sane
|
2019-11-19 13:35:56 +00:00
|
|
|
Version: 5
|
2017-08-14 12:50:48 +00:00
|
|
|
Release: 0
|
2019-09-14 07:26:13 +00:00
|
|
|
%define cpan_name Image-Sane
|
|
|
|
Summary: Perl extension for the SANE (Scanner Access Now Easy)
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2017-08-14 12:50:48 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2020-03-19 21:42:32 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2019-09-14 07:26:13 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RA/RATCLIFFE/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:45 +02:00
|
|
|
Source100: README.md
|
2023-08-08 15:30:34 +00:00
|
|
|
Patch0: Image-Sane-5-Replace-deprecated-given-and-when-operators.patch
|
2019-09-14 07:26:13 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2017-08-14 12:50:48 +00:00
|
|
|
BuildRequires: perl(Exception::Class)
|
|
|
|
BuildRequires: perl(ExtUtils::Depends)
|
|
|
|
BuildRequires: perl(ExtUtils::PkgConfig)
|
|
|
|
BuildRequires: perl(Readonly)
|
|
|
|
BuildRequires: perl(Test::Requires)
|
|
|
|
BuildRequires: perl(Try::Tiny)
|
2019-09-14 07:26:13 +00:00
|
|
|
Requires: perl(Exception::Class)
|
|
|
|
Requires: perl(Readonly)
|
2017-08-14 12:50:48 +00:00
|
|
|
%{perl_requires}
|
2019-09-14 07:26:13 +00:00
|
|
|
# MANUAL BEGIN
|
2020-03-19 21:42:32 +00:00
|
|
|
BuildRequires: ImageMagick
|
|
|
|
BuildRequires: sane-backends
|
|
|
|
BuildRequires: perl(Test::Pod)
|
2019-09-14 07:26:13 +00:00
|
|
|
BuildRequires: pkgconfig(sane-backends)
|
|
|
|
# MANUAL END
|
2017-08-14 12:50:48 +00:00
|
|
|
|
|
|
|
%description
|
2019-09-14 07:26:13 +00:00
|
|
|
These Perl bindings for the SANE (Scanner Access Now Easy) Project allow
|
|
|
|
you to access SANE-compatible scanners in a Perlish and object-oriented
|
|
|
|
way, freeing you from the casting and memory management in C, yet remaining
|
|
|
|
very close in spirit to original API.
|
|
|
|
|
|
|
|
Find out more about SANE at http://www.sane-project.org.
|
2017-08-14 12:50:48 +00:00
|
|
|
|
|
|
|
%prep
|
2024-03-04 23:45:42 +00:00
|
|
|
%autosetup -p1 -n %{cpan_name}-%{version}
|
2019-11-19 13:35:56 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2017-08-14 12:50:48 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
2019-09-14 07:26:13 +00:00
|
|
|
make test
|
2017-08-14 12:50:48 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2019-09-14 07:26:13 +00:00
|
|
|
%doc Changes examples README
|
2017-08-14 12:50:48 +00:00
|
|
|
|
|
|
|
%changelog
|