]>
Commit | Line | Data |
---|---|---|
ba5ab7fb | 1 | # |
2 | # Conditional build: | |
88a1c1da | 3 | %bcond_without tests # don't perform "make test" |
6f80f22c | 4 | |
bf39af9b | 5 | %define pdir Algorithm |
6 | %define pnam Huffman | |
6f80f22c | 7 | %include /usr/lib/rpm/macros.perl |
77274950 | 8 | Summary: Algorithm::Huffman - implementation of the Huffman algorithm |
6eb73d22 | 9 | Summary(pl.UTF-8): Algorithm::Huffman - implementacja algorytmu Huffmana |
ba5ab7fb | 10 | Name: perl-Algorithm-Huffman |
1ae46610 | 11 | Version: 0.09 |
b79cecc4 | 12 | Release: 4 |
a9a6b279 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
ba5ab7fb | 15 | Group: Development/Languages/Perl |
866e6d14 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
18f8b316 | 17 | # Source0-md5: dd5c0360357dcb0807e9ac2e49b2e746 |
6f80f22c | 18 | URL: http://search.cpan.org/dist/Algorithm-Huffman/ |
fae2a71e | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
6f80f22c | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
88a1c1da | 21 | %if %{with tests} |
ba5ab7fb | 22 | BuildRequires: perl-Heap |
23 | BuildRequires: perl-Scalar-List-Utils | |
24 | BuildRequires: perl-String-Random | |
25 | BuildRequires: perl-Test-Exception | |
26 | BuildRequires: perl-Test-ManyParams | |
27 | BuildRequires: perl-Test-Simple | |
28 | BuildRequires: perl-Tree-DAG_Node | |
29 | %endif | |
30 | BuildArch: noarch | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
6f80f22c ER |
34 | This modules implements the huffman algorithm. The aim is to create a |
35 | good coding scheme for a given list of different characters (or even | |
ba5ab7fb | 36 | strings) and their occurence numbers. |
37 | ||
5e460062 JR |
38 | %description -l pl.UTF-8 |
39 | Ten moduł jest implementacją algorytmu Huffmana. Celem jest stworzenie | |
40 | dobrze kodującego schematu dla danej listy różnych znaków (lub nawet | |
41 | ciągów) i liczby ich wystąpień. | |
ba5ab7fb | 42 | |
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | %build | |
2a8a7f7d | 47 | %{__perl} Makefile.PL \ |
a01ce952 | 48 | INSTALLDIRS=vendor |
ba5ab7fb | 49 | %{__make} |
50 | ||
88a1c1da | 51 | %{?with_tests:%{__make} test} |
ba5ab7fb | 52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
31099c16 | 56 | %{__make} install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
ba5ab7fb | 58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
3c006a18 | 64 | %doc Change* |
2a8a7f7d | 65 | %{perl_vendorlib}/%{pdir}/*.pm |
ba5ab7fb | 66 | %{_mandir}/man3/* |