]> git.pld-linux.org Git - packages/perl-Sane.git/blame - perl-Sane.spec
perl 5.38.0 rebuild
[packages/perl-Sane.git] / perl-Sane.spec
CommitLineData
5007210b
JK
1#
2# Conditional build:
3%bcond_with tests # do perform "make test"
4#
5007210b
JK
5%define pdir Sane
6Summary: Sane - Perl extension for the SANE (Scanner Access Now Easy) Project
1c63e450 7#Summary(pl.UTF-8):
5007210b 8Name: perl-Sane
8fd3bf16 9Version: 0.03
c908bae7 10Release: 17
5007210b
JK
11# same as perl
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
8fd3bf16 14Source0: http://www.cpan.org/modules/by-authors/id/R/RA/RATCLIFFE/%{pdir}-%{version}.tar.gz
15# Source0-md5: db83b8b07e1263b78187c4349a183082
5007210b 16URL: http://search.cpan.org/dist/Sane/
1c63e450 17BuildRequires: perl-ExtUtils-Depends
18BuildRequires: perl-ExtUtils-PkgConfig
5007210b
JK
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildRequires: sane-backends-devel
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
1c63e450 25The Sane module allows a Perl developer to use SANE-compatible
26scanners. Find out more about SANE at <http://www.sane-project.org>.
5007210b 27
1c63e450 28Most methods set $Sane::STATUS, which is overloaded to give either an
29integer as dictated by the SANE standard, or the the corresponding
30message, as required.
5007210b
JK
31
32Returns an array with the SANE_VERSION_(MAJOR|MINOR|BUILD) versions:
1c63e450 33- join('.',Sane->get_version)
5007210b
JK
34
35# %description -l pl.UTF-8
36# TODO
37
38%prep
39%setup -q -n %{pdir}-%{version}
40
41%build
42%{__perl} Makefile.PL \
43 INSTALLDIRS=vendor
44%{__make} \
45 CC="%{__cc}" \
46 OPTIMIZE="%{rpmcflags}"
47
48%{?with_tests:%{__make} test}
49
50%install
51rm -rf $RPM_BUILD_ROOT
52
53%{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
55
56install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc Changes README
65%{perl_vendorarch}/Sane.pm
66%dir %{perl_vendorarch}/auto/Sane/
5007210b
JK
67%attr(755,root,root) %{perl_vendorarch}/auto/Sane/*.so
68%{_mandir}/man3/*
69%{_examplesdir}/%{name}-%{version}
This page took 0.172176 seconds and 4 git commands to generate.