]>
Commit | Line | Data |
---|---|---|
fbee86d5 | 1 | # |
2 | # Conditional build: | |
81a055f2 | 3 | %bcond_without tests # do not perform "make test" |
6bcc6ea3 | 4 | |
93afdce2 | 5 | %define pdir Inline |
5bf7a6c5 | 6 | %define pnam Octave |
6bcc6ea3 | 7 | %include /usr/lib/rpm/macros.perl |
2456ffc9 | 8 | Summary: Inline::Octave - inline octave code into your perl |
06c64e41 | 9 | Summary(pl.UTF-8): Inline::Octave - umieszczanie kodu octave w kodzie perlowym |
f2bc7f28 | 10 | Name: perl-Inline-Octave |
a66696be | 11 | Version: 0.20 |
bdc338d9 | 12 | Release: 2 |
0b6c0148 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
f2bc7f28 | 15 | Group: Development/Languages/Perl |
5bf7a6c5 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
a66696be | 17 | # Source0-md5: 4c590abe9d4073cc35a3ad8a6322c763 |
bdc338d9 | 18 | Patch0: %{name}-test.patch |
6bcc6ea3 ER |
19 | URL: http://search.cpan.org/dist/Inline-Octave/ |
20 | BuildRequires: octave | |
f2bc7f28 | 21 | BuildRequires: perl-Inline >= 0.4 |
6bcc6ea3 | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
a39be5be | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
f2bc7f28 JB |
24 | Requires: octave |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
2456ffc9 JB |
29 | Inline::Octave Perl module gives you the power of the octave |
30 | programming language from within your Perl programs. | |
f2bc7f28 | 31 | |
7287e567 JR |
32 | %description -l pl.UTF-8 |
33 | Moduł Perla Inline::Octave umożliwia korzystanie z mocy języka | |
34 | programowania octave wewnątrz skryptów w Perlu. | |
f2bc7f28 JB |
35 | |
36 | %prep | |
5bf7a6c5 | 37 | %setup -q -n %{pdir}-%{pnam}-%{version} |
7c33b2d9 | 38 | %patch0 -p1 |
f2bc7f28 JB |
39 | |
40 | %build | |
2456ffc9 JB |
41 | echo '/usr/bin/octave' | perl Makefile.PL \ |
42 | INSTALLDIRS=vendor | |
f2bc7f28 | 43 | %{__make} |
2456ffc9 | 44 | |
81a055f2 | 45 | %{?with_tests:%{__make} test} |
f2bc7f28 JB |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
a39be5be | 58 | %{perl_vendorlib}/Inline/Octave.pm |
f2bc7f28 | 59 | %{_mandir}/man3/* |