]> git.pld-linux.org Git - packages/perl-SGMLS.git/blob - perl-SGMLS.spec
- license fixed, tests added but disabled (they hang)
[packages/perl-SGMLS.git] / perl-SGMLS.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        SGMLS - postprocessing the output from the SGMLS and NSGMLS parsers
7 Summary(pl):    SGMLS - przetwarzanie wyj¶cia z analizatorów sk³adni: SGMLS i NSGMLS
8 Name:           perl-SGMLS
9 Version:        1.03ii
10 Release:        12
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 BuildRequires:  rpm-perlprov >= 4.1-13
16 BuildRequires:  perl-devel >= 5.6
17 Obsoletes:      perl-SGMLSpm
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 This distribution contains SGMLS.pm, a perl5 class library for parsing
23 the output from James Clark's SGMLS and NSGMLS parsers.
24
25 %description -l pl
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
28 Jamesa Clarka.
29
30 %prep
31 %setup -q -n SGMLSpm
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}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc ChangeLog README BUGS TODO DOC/*sgml DOC/*pl elisp
58 %attr(755,root,root) %{_bindir}/*
59 %{perl_vendorlib}/SGMLS.pm
60 %{perl_vendorlib}/SGMLS
61 %{_mandir}/man3/*
This page took 0.060288 seconds and 4 git commands to generate.