]> git.pld-linux.org Git - packages/perl-Math-Gradient.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 26 Oct 2003 02:24:14 +0000 (02:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Math-Gradient.spec -> 1.1

perl-Math-Gradient.spec [new file with mode: 0644]

diff --git a/perl-Math-Gradient.spec b/perl-Math-Gradient.spec
new file mode 100644 (file)
index 0000000..c26fa05
--- /dev/null
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Math
+%define        pnam    Gradient
+Summary:       Math::Gradient - calculating gradients for colour transitions etc.
+Summary(pl):   Math::Gradient - obliczanie gradientów do przej¶æ kolorów itp.
+Name:          perl-Math-Gradient
+Version:       0.02
+Release:       1
+# same as perl
+License:       GPL or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tgz
+# Source0-md5: a93701f52086bab0ebdbb7f2d23a0eaf
+BuildRequires: perl-devel >= 5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Math::Gradient is used to calculate smooth transitions between
+numerical values (also known as a "Gradient"). This module was written
+mainly to mix colours, but it probably has several other applications.
+Methods are supported to handle both basic and multiple-point
+gradients, both with scalars and arrays.
+
+%description -l pl
+Math::Gradient s³u¿y do obliczania p³ynnych przej¶æ miêdzy warto¶ciami
+liczbowymi (znanych te¿ jako "gradienty"). Modu³ zosta³ napisany
+g³ównie do mieszania kolorów, ale prawdopodobnie ma parê innych
+zastosowañ. Zawiera metody do obs³ugi prostych i wielopunktowych
+gradientów, zarówno na skalarach, jak i tablicach.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Math/Gradient.pm
+%{_mandir}/man3/*
This page took 0.113439 seconds and 4 git commands to generate.