]>
Commit | Line | Data |
---|---|---|
a28364c7 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" | |
4 | # | |
6d517f7e | 5 | %include /usr/lib/rpm/macros.perl |
3e5b6c5c | 6 | Summary: SGMLS - postprocessing the output from the SGMLS and NSGMLS parsers |
4892e923 | 7 | Summary(pl.UTF-8): SGMLS - przetwarzanie wyjścia z analizatorów składni: SGMLS i NSGMLS |
6d517f7e | 8 | Name: perl-SGMLS |
9 | Version: 1.03ii | |
31bbd2f7 | 10 | Release: 15 |
a28364c7 | 11 | License: GPL v2 |
6d517f7e | 12 | Group: Development/Languages/Perl |
626176c2 | 13 | Source0: http://www.cpan.org/modules/by-module/SGMLS/SGMLSpm-%{version}.tar.gz |
0fa675f4 | 14 | # Source0-md5: 5bcb197fd42e67d51c739b1414d514a7 |
46334334 | 15 | BuildRequires: rpm-perlprov >= 4.1-13 |
30d471ee | 16 | BuildRequires: perl-devel >= 1:5.8.0 |
0bed732f | 17 | Obsoletes: perl-SGMLSpm |
24aaedb3 | 18 | BuildArch: noarch |
11015125 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6d517f7e | 20 | |
21 | %description | |
d18ca89b | 22 | This distribution contains SGMLS.pm, a perl5 class library for parsing |
23 | the output from James Clark's SGMLS and NSGMLS parsers. | |
6d517f7e | 24 | |
7a573bba JR |
25 | %description -l pl.UTF-8 |
26 | Pakiet ten zawiera bibliotekę klas Perla 5 SGMLS.pm służącą do | |
27 | przetwarzania wyjścia z analizatorów składniowych SGMLS i NSGMLS | |
3e5b6c5c | 28 | Jamesa Clarka. |
6d517f7e | 29 | |
30 | %prep | |
31 | %setup -q -n SGMLSpm | |
d18ca89b | 32 | mkdir -p lib/SGMLS |
33 | mv Output.pm Refs.pm skel.pl lib/SGMLS | |
34 | mv SGMLS.pm lib | |
35 | mv sgmlspl.pl sgmlspl | |
36 | mv test-SGMLS.pl test.pl | |
37 | ||
38 | %build | |
39 | touch Makefile.PL | |
40 | %{__perl} -MExtUtils::MakeMaker -wle 'WriteMakefile(NAME=>"SGMLS", EXE_FILES=>["sgmlspl"])' \ | |
41 | INSTALLDIRS=vendor | |
42 | %{__make} | |
6d517f7e | 43 | |
a28364c7 | 44 | %{?with_tests:%{__make} test} |
45 | ||
6d517f7e | 46 | %install |
47 | rm -rf $RPM_BUILD_ROOT | |
6d517f7e | 48 | |
0c4b6ee8 | 49 | %{__make} install \ |
d18ca89b | 50 | DESTDIR=$RPM_BUILD_ROOT |
6d517f7e | 51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
250deecd | 57 | %doc ChangeLog README BUGS TODO DOC/*sgml DOC/*pl elisp |
6d517f7e | 58 | %attr(755,root,root) %{_bindir}/* |
46334334 | 59 | %{perl_vendorlib}/SGMLS.pm |
60 | %{perl_vendorlib}/SGMLS | |
6d517f7e | 61 | %{_mandir}/man3/* |