]> git.pld-linux.org Git - packages/perl-Color-Calc.git/commitdiff
- new
authorSÅ‚awomir Paszkiewicz <paszczus@pld-linux.org>
Fri, 13 Jul 2007 11:18:03 +0000 (11:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Color-Calc.spec -> 1.1

perl-Color-Calc.spec [new file with mode: 0644]

diff --git a/perl-Color-Calc.spec b/perl-Color-Calc.spec
new file mode 100644 (file)
index 0000000..ea605d1
--- /dev/null
@@ -0,0 +1,51 @@
+#
+# Conditional build:
+%bcond_without autodeps        # don't BR packages needed only for resolving deps
+%bcond_without tests   # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define                pdir    Color
+%define                pnam    Calc
+Summary:       Simple calculations with RGB colors
+Name:          perl-Color-Calc
+Version:       1.04
+Release:       1
+License:       same as perl
+Group:         Development/Languages/Perl
+Source0:       http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/%{pdir}-%{pnam}-%{version}.tar.gz
+URL:           http://search.cpan.org/dist/Color-Calc/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-Params-Validate
+BuildRequires: perl-Graphics-ColorNames
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Simple calculations with RGB colors
+
+%prep
+%setup -q %{version}q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Color/Calc.pm
+%{_mandir}/man3/*
This page took 0.026901 seconds and 4 git commands to generate.