]> git.pld-linux.org Git - packages/perl-SGMLS.git/blobdiff - perl-SGMLS.spec
- massive attack, adding Source-md5
[packages/perl-SGMLS.git] / perl-SGMLS.spec
index d7f666a23c82f4135fae4676a0c428337bcfff3d..55e92faea449c0ba1f9fae241e3da1a6f1283239 100644 (file)
@@ -1,38 +1,47 @@
 %include       /usr/lib/rpm/macros.perl
-Summary:       SGMLS perl module
-Summary(pl):   Modu³ perla SGMLS
+Summary:       SGMLS - postprocessing the output from the SGMLS and NSGMLS parsers
+Summary(pl):   SGMLS - przetwarzanie wyj¶cia z analizatorów sk³adni: SGMLS i NSGMLS
 Name:          perl-SGMLS
 Version:       1.03ii
-Release:       9
+Release:       12
 License:       GPL
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/SGMLS/SGMLSpm-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-18
-BuildRequires: perl >= 5.6
+# Source0-md5: 5bcb197fd42e67d51c739b1414d514a7
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-devel >= 5.6
+Obsoletes:     perl-SGMLSpm
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-SGMLS perl module.
+This distribution contains SGMLS.pm, a perl5 class library for parsing
+the output from James Clark's SGMLS and NSGMLS parsers.
 
 %description -l pl
-Modu³ perla SGMLS.
+Pakiet ten zawiera bibliotekê klas Perla 5 SGMLS.pm s³u¿±c± do
+przetwarzania wyj¶cia z analizatorów sk³adniowych SGMLS i NSGMLS
+Jamesa Clarka.
 
 %prep
 %setup -q -n SGMLSpm
+mkdir -p lib/SGMLS
+mv Output.pm Refs.pm skel.pl lib/SGMLS
+mv SGMLS.pm lib
+mv sgmlspl.pl sgmlspl
+mv test-SGMLS.pl test.pl
+
+%build
+touch Makefile.PL
+%{__perl} -MExtUtils::MakeMaker -wle 'WriteMakefile(NAME=>"SGMLS", EXE_FILES=>["sgmlspl"])' \
+       INSTALLDIRS=vendor
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man3,%{perl_sitelib}/SGMLS}
 
 %{__make} install \
-       BINDIR=$RPM_BUILD_ROOT%{_bindir} \
-       PERL5DIR=$RPM_BUILD_ROOT%{perl_sitelib} \
-       SPECDIR=$RPM_BUILD_ROOT%{perl_sitelib}/SGMLS
-
-pod2man --section=3pm SGMLS.pm  > $RPM_BUILD_ROOT%{_mandir}/man3/SGMLS.3pm
-pod2man --section=3pm Output.pm > $RPM_BUILD_ROOT%{_mandir}/man3/SGMLS::Output.3pm
-pod2man --section=3pm Refs.pm   > $RPM_BUILD_ROOT%{_mandir}/man3/SGMLS::Refs.3pm
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -41,6 +50,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc ChangeLog README BUGS TODO DOC/*sgml DOC/*pl elisp
 %attr(755,root,root) %{_bindir}/*
-%{perl_sitelib}/SGMLS.pm
-%{perl_sitelib}/SGMLS
+%{perl_vendorlib}/SGMLS.pm
+%{perl_vendorlib}/SGMLS
 %{_mandir}/man3/*
This page took 0.072685 seconds and 4 git commands to generate.