]>
Commit | Line | Data |
---|---|---|
09dfa221 | 1 | # |
2 | # Conditional build: | |
9cc3b53d | 3 | %bcond_without tests # do not perform "make test" |
3fabf7e7 | 4 | |
450fe6b8 | 5 | %define pdir Games |
6 | %define pnam WordFind | |
3fabf7e7 | 7 | %include /usr/lib/rpm/macros.perl |
d83d5e86 | 8 | Summary: Games::WordFind - class for generating "word find" type puzzles |
86118c5b | 9 | Summary(pl.UTF-8): Games::WordFind - klasa do generowania układanek słownych |
d971b9d0 | 10 | Name: perl-Games-WordFind |
11 | Version: 0.02 | |
1d7eba31 | 12 | Release: 15 |
4f3bd935 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
d971b9d0 | 15 | Group: Development/Languages/Perl |
8d082c3f | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
902e6344 | 17 | # Source0-md5: 28bfa49532f2a49fd455fbd3b9afeb9e |
3fabf7e7 | 18 | URL: http://search.cpan.org/dist/Games-WordFind/ |
69a18e25 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
e5fce0ef | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
4493ef3a | 21 | BuildArch: noarch |
7005eec5 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
d971b9d0 | 23 | |
24 | %description | |
d83d5e86 | 25 | Games::WordFind Perl module simply provides a class which can be used |
26 | to generate "word find" type puzzles. | |
d971b9d0 | 27 | |
48e8e605 JR |
28 | %description -l pl.UTF-8 |
29 | Games::WordFind udostępnia klasę do generowania układanek słownych. | |
d971b9d0 | 30 | |
31 | %prep | |
0d86e0d0 | 32 | %setup -q -n %{pdir}-%{pnam}-%{version} |
d971b9d0 | 33 | |
34 | %build | |
e5fce0ef | 35 | %{__perl} Makefile.PL \ |
ea37c286 | 36 | INSTALLDIRS=vendor |
a076d563 | 37 | %{__make} |
9cc3b53d | 38 | |
39 | %{?with_tests:%{__make} test} | |
d971b9d0 | 40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
04e015e3 | 43 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
d971b9d0 | 44 | |
d3d470af | 45 | %{__make} install \ |
46 | DESTDIR=$RPM_BUILD_ROOT | |
3fabf7e7 | 47 | cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
d971b9d0 | 48 | |
d971b9d0 | 49 | %clean |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
04e015e3 | 54 | %doc Changes README |
e5fce0ef | 55 | %{perl_vendorlib}/Games/WordFind.pm |
56 | %dir %{perl_vendorlib}/auto/Games | |
09dfa221 | 57 | # empty autosplit.ix |
e5fce0ef | 58 | #%dir %{perl_vendorlib}/auto/Games/WordFind |
59 | #%%{perl_vendorlib}/auto/Games/WordFind/autosplit.ix | |
d971b9d0 | 60 | %{_mandir}/man3/* |
04e015e3 | 61 | %dir %{_examplesdir}/%{name}-%{version} |
62 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/* |