[Lsb-messages] /var/www/bzr/lsb/devel/lsbappchk-sh r17: Since Parse::Eyapp doesn't seem to be an easy package to obtain

Stew Benedict stewb at linux-foundation.org
Fri Feb 17 17:05:07 UTC 2012


------------------------------------------------------------
revno: 17
committer: Stew Benedict <stewb at linux-foundation.org>
branch nick: lsbappchk-sh
timestamp: Fri 2012-02-17 12:05:07 -0500
message:
  Since Parse::Eyapp doesn't seem to be an easy package to obtain
  on several distros - fetch, build and use our own copy to build
modified:
  scripts/package/Makefile
  scripts/package/lsb-appchk-shell.spec.sed
-------------- next part --------------
=== modified file 'scripts/package/Makefile'
--- a/scripts/package/Makefile	2011-03-26 14:07:41 +0000
+++ b/scripts/package/Makefile	2012-02-17 17:05:07 +0000
@@ -1,7 +1,9 @@
 # values used to make .spec from .spec.sed
 PACKAGE=lsb-appchk-shell
 VERSION=4.1.0
-RELEASE=2
+RELEASE=3
+EYAPP_VER=1.181
+EYAPP_URL=http://search.cpan.org/CPAN/authors/id/C/CA/CASIANO/
 
 #
 # Derive date string for daily snapshots
@@ -14,6 +16,7 @@
 RPM_SOURCE_NAME=$(FULL_PACKAGE_NAME)-$(RELEASE).src.rpm
 
 SOURCE1 = $(PACKAGE)-$(VERSION).tar.gz
+SOURCE2 = Parse-Eyapp-$(EYAPP_VER).tar.gz
 
 # Temporary build directory
 TMP_BUILD_DIR=/tmp/$(FULL_PACKAGE_NAME)
@@ -64,11 +67,11 @@
 clean:
 	@rm -f *.rpm *.deb *.tar.gz $(PACKAGE).spec
 
-tarball: $(SOURCE1)
+tarball: $(SOURCE1) $(SOURCE2)
 
 # Specfile generation rule
 %.spec : %.spec.sed
-	sed -e "s#@VERSION@#`echo $(VERSION)`#" -e "s#@RELEASE@#`echo $(RELEASE)`#" < $< > $@
+	sed -e "s#@VERSION@#`echo $(VERSION)`#" -e "s#@RELEASE@#`echo $(RELEASE)`#" -e "s#@EYAPP_VER@#`echo $(EYAPP_VER)`#" < $< > $@
 
 deb_package: rpm_package
 	@fakeroot alien -cdk $(RPM_BINARY_NAME)
@@ -105,4 +108,7 @@
 	bzr export $(SOURCE1) $(BZRTREES)/$(BZR_MODULE)
 endif
 
+$(SOURCE2):
+	wget $(EYAPP_URL)/$(SOURCE2)
+
 .PHONY : tarball rpm_package

=== modified file 'scripts/package/lsb-appchk-shell.spec.sed'
--- a/scripts/package/lsb-appchk-shell.spec.sed	2011-03-03 14:03:22 +0000
+++ b/scripts/package/lsb-appchk-shell.spec.sed	2012-02-17 17:05:07 +0000
@@ -1,6 +1,7 @@
-# %{ver}, %{rel} are provided by the Makefile
+# %{ver}, %{rel}, %{eyapp_ver} are provided by the Makefile
 %define ver @VERSION@
 %define rel @RELEASE@
+%define eyapp_ver @EYAPP_VER@
 %define basedir /opt/lsb
 
 Summary: LSB Shell Script Application Checker
@@ -10,21 +11,31 @@
 License: GPL
 Group: Development/Tools
 Source: %{name}-%{version}.tar.gz
+Source1: http://search.cpan.org/CPAN/authors/id/C/CA/CASIANO/Parse-Eyapp-%{eyapp_ver}.tar.gz
 URL: http://www.linuxbase.org/test
 BuildRoot: %{_tmppath}/%{name}-root
 AutoReqProv: no
 BuildArch: noarch
-BuildRequires: perl(Parse::Eyapp) 
+BuildRequires: perl 
 
 %description
 This is the official package version of the LSB Shell Script Checker. 
 
 #==================================================
 %prep
-%setup -q
+%setup -q -a1
 
 #==================================================
 %build
+# build/install Parse-Eyapp first
+cd Parse-Eyapp-%{eyapp_ver}
+perl Makefile.PL PREFIX=../perl-local
+make
+make install
+cd ..
+# now the checker
+export PERL5LIB=perl-local/lib/perl5/site_perl/
+export PATH=$PATH:$(pwd)/perl-local/local/bin
 make
 
 #==================================================



More information about the lsb-messages mailing list