]> git.pld-linux.org Git - packages/perl-SGMLS.git/commitdiff
- made the install process ,,perlish'' -- used MakeMaker
authorradek <radek@pld-linux.org>
Fri, 11 Apr 2003 18:33:23 +0000 (18:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- provided informative summary/description
- BR: perl-devel instead of perl

Changed files:
    perl-SGMLS.spec -> 1.19

perl-SGMLS.spec

index d25b0644ed5f9ef7bc88718875d7340b068727c8..803d65ddc29e054b0f1e165e18e647f0dfc25c08 100644 (file)
@@ -1,6 +1,6 @@
 %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):  
 Name:          perl-SGMLS
 Version:       1.03ii
 Release:       10
@@ -8,31 +8,36 @@ License:      GPL
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/SGMLS/SGMLSpm-%{version}.tar.gz
 BuildRequires: rpm-perlprov >= 4.1-13
-BuildRequires: perl >= 5.6
+BuildRequires: perl-devel >= 5.6
 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.
+%description -l pl
+# TODO
 
 %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_vendorlib}/SGMLS}
 
 %{__make} install \
-       BINDIR=$RPM_BUILD_ROOT%{_bindir} \
-       PERL5DIR=$RPM_BUILD_ROOT%{perl_vendorlib} \
-       SPECDIR=$RPM_BUILD_ROOT%{perl_vendorlib}/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
This page took 0.039006 seconds and 4 git commands to generate.