SPECS: perl-Sane.spec (NEW) - new spec
jajcus
jajcus at pld-linux.org
Tue Feb 17 16:30:04 CET 2009
Author: jajcus Date: Tue Feb 17 15:30:04 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new spec
---- Files affected:
SPECS:
perl-Sane.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Sane.spec
diff -u /dev/null SPECS/perl-Sane.spec:1.1
--- /dev/null Tue Feb 17 16:30:04 2009
+++ SPECS/perl-Sane.spec Tue Feb 17 16:29:58 2009
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with tests # do perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Sane
+Summary: Sane - Perl extension for the SANE (Scanner Access Now Easy) Project
+#Summary(pl.UTF-8):
+Name: perl-Sane
+Version: 0.02
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/R/RA/RATCLIFFE/Sane-0.02.tar.gz
+# Source0-md5: 03fa0ad2a50e18598d91f197924fb54d
+URL: http://search.cpan.org/dist/Sane/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: sane-backends-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Sane module allows a Perl developer to use SANE-compatible scanners.
+Find out more about SANE at http://www.sane-project.org.
+
+Most methods set $Sane::STATUS, which is overloaded to give either an integer
+as dictated by the SANE standard, or the the corresponding message, as required.
+
+Returns an array with the SANE_VERSION_(MAJOR|MINOR|BUILD) versions:
+
+ join('.',Sane->get_version)
+
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} \
+ CC="%{__cc}" \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/Sane.pm
+%dir %{perl_vendorarch}/auto/Sane/
+%{perl_vendorarch}/auto/Sane/*.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Sane/*.so
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/02/17 15:29:58 jajcus
+- new spec
+
================================================================
More information about the pld-cvs-commit
mailing list