]> git.pld-linux.org Git - SPECS.git/blob - perl-SGMLS.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-SGMLS.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test"
4
5 %define         pdir    SGMLS
6 Summary:        SGMLS - postprocessing the output from the SGMLS and NSGMLS parsers
7 Summary(pl.UTF-8):      SGMLS - przetwarzanie wyjścia z analizatorów składni: SGMLS i NSGMLS
8 Name:           perl-SGMLS
9 Version:        1.03ii
10 Release:        15
11 License:        GPL v2
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/SGMLS/SGMLSpm-%{version}.tar.gz
14 # Source0-md5:  5bcb197fd42e67d51c739b1414d514a7
15 URL:            http://search.cpan.org/dist/SGMLS-/
16 BuildRequires:  perl-devel >= 1:5.8.0
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 Obsoletes:      perl-SGMLSpm
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This distribution contains SGMLS.pm, a perl5 class library for parsing
24 the output from James Clark's SGMLS and NSGMLS parsers.
25
26 %description -l pl.UTF-8
27 Pakiet ten zawiera bibliotekę klas Perla 5 SGMLS.pm służącą do
28 przetwarzania wyjścia z analizatorów składniowych SGMLS i NSGMLS
29 Jamesa Clarka.
30
31 %prep
32 %setup -q -n SGMLSpm
33 mkdir -p lib/SGMLS
34 mv Output.pm Refs.pm skel.pl lib/SGMLS
35 mv SGMLS.pm lib
36 mv sgmlspl.pl sgmlspl
37 mv test-SGMLS.pl test.pl
38
39 %build
40 touch Makefile.PL
41 %{__perl} -MExtUtils::MakeMaker -wle 'WriteMakefile(NAME=>"SGMLS", EXE_FILES=>["sgmlspl"])' \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests:%{__make} test}
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)
58 %doc ChangeLog README BUGS TODO DOC/*sgml DOC/*pl elisp
59 %attr(755,root,root) %{_bindir}/*
60 %{perl_vendorlib}/SGMLS.pm
61 %{perl_vendorlib}/SGMLS
62 %{_mandir}/man3/*
This page took 0.642213 seconds and 3 git commands to generate.