Author: jaredmorgs
Date: 2012-07-17 21:25:55 -0400 (Tue, 17 Jul 2012)
New Revision: 8786
Added:
epp/docs/branches/5.2/Makefile
epp/docs/branches/5.2/What_Are_Makefile_Specin_Files_For
epp/docs/branches/5.2/spec.in
Modified:
epp/docs/branches/5.2/API_Documentation/en-US/API_Documentation.xml
epp/docs/branches/5.2/API_Documentation/en-US/Article_Info.xml
epp/docs/branches/5.2/API_Documentation/en-US/Revision_History.xml
Log:
Adding Makefile and spec.in files for the API Documentation guide so it can be built
hand-roll style
Modified: epp/docs/branches/5.2/API_Documentation/en-US/API_Documentation.xml
===================================================================
(Binary files differ)
Modified: epp/docs/branches/5.2/API_Documentation/en-US/Article_Info.xml
===================================================================
(Binary files differ)
Modified: epp/docs/branches/5.2/API_Documentation/en-US/Revision_History.xml
===================================================================
(Binary files differ)
Added: epp/docs/branches/5.2/Makefile
===================================================================
--- epp/docs/branches/5.2/Makefile (rev 0)
+++ epp/docs/branches/5.2/Makefile 2012-07-18 01:25:55 UTC (rev 8786)
@@ -0,0 +1,51 @@
+### START CHANGES ###
+PRODUCT = JBoss_Enterprise_Portal_Platform
+PROD_VERSION = 5.2
+LANG = en-US
+BOOKS = API_Documentation
+VERSION = 5.2.2
+RELEASE = 3
+
+#### END CHANGES ###
+
+NAME = $(PRODUCT)-$(PROD_VERSION)-web-$(LANG)
+TAR_NAME = $(NAME)-$(VERSION)
+DIST = .el6eng
+
+PWD = $(shell pwd)
+RPMDIR = $(PWD)/tmp/rpm
+
+#### TARGETS ###
+tar::
+ @echo "Start $@"
+ @tar --exclude '.svn' -czf $(TAR_NAME).tgz $(BOOKS)
+ @echo "End $@"
+
+spec::
+ @echo "Start $@"
+ @mkdir -p $(RPMDIR)
+ @cd $(RPMDIR) && mkdir -p SPECS SRPMS BUILD SOURCES RPMS/noarch
+ @cp spec.in $(RPMDIR)/SPECS/$(NAME).spec
+ @sed -i -e 's/@PRODUCT@/$(PRODUCT)/' $(RPMDIR)/SPECS/$(NAME).spec
+ @sed -i -e 's/@PROD_VERSION@/$(PROD_VERSION)/' $(RPMDIR)/SPECS/$(NAME).spec
+ @sed -i -e 's/@VERSION@/$(VERSION)/' $(RPMDIR)/SPECS/$(NAME).spec
+ @sed -i -e 's/@RELEASE@/$(RELEASE)/' $(RPMDIR)/SPECS/$(NAME).spec
+ @sed -i -e 's/@LANG@/$(LANG)/' $(RPMDIR)/SPECS/$(NAME).spec
+ @sed -i -e 's/@BOOKS@/$(BOOKS)/' $(RPMDIR)/SPECS/$(NAME).spec
+ @echo "End $@"
+
+srpm:: clean tar spec
+ @echo "Start $@"
+ @cp $(TAR_NAME).tgz $(RPMDIR)/SOURCES/.
+ @rpmbuild --define "dist $(DIST)" --define "_topdir $(RPMDIR)" -bs
$(RPMDIR)/SPECS/$(NAME).spec
+ @echo "End $@"
+
+rpm:: srpm
+ @echo "Start $@"
+ @rpmbuild --define "dist $(DIST)" --define "_topdir $(RPMDIR)" -bb
$(RPMDIR)/SPECS/$(NAME).spec
+ @echo "End $@"
+
+clean::
+ @echo "Start $@"
+ @rm -rf tmp $(TAR_NAME).tgz
+ @echo "End $@"
Added: epp/docs/branches/5.2/What_Are_Makefile_Specin_Files_For
===================================================================
--- epp/docs/branches/5.2/What_Are_Makefile_Specin_Files_For (rev
0)
+++ epp/docs/branches/5.2/What_Are_Makefile_Specin_Files_For 2012-07-18 01:25:55 UTC (rev
8786)
@@ -0,0 +1,3 @@
+These files enable the API Documentation Guide to be produced.
+
+Details about how to do this can be found in PROCEDURE NAME AND LINK TO DOCSPACE
Added: epp/docs/branches/5.2/spec.in
===================================================================
--- epp/docs/branches/5.2/spec.in (rev 0)
+++ epp/docs/branches/5.2/spec.in 2012-07-18 01:25:55 UTC (rev 8786)
@@ -0,0 +1,54 @@
+#Documentation Specfile
+%define doc_product @PRODUCT@
+%define doc_version @PROD_VERSION@
+%define doc_lang @LANG@
+%define doc_books @BOOKS@
+
+Name: %{doc_product}-%{doc_version}-web-%{doc_lang}
+Version: @VERSION@
+Release: @RELEASE@%{?dist}
+Summary: API Documentation for %{doc_product} %{doc_version}
+Group: Documentation
+License: GFDL
+URL:
http://docs.redhat.com/docs
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0: %{name}-%{version}.tgz
+
+
+Requires: publican >= 2.6
+Prefix: /var/www/html/docs
+
+%description
+This package contains API documentation for %{doc_product} %{doc_version}, and is
manually assembled so API Javadocs are embedded in the package.
+
+%prep
+%setup -q -c %{doc_product}-%{doc_version}-web-%{doc_lang}
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/%{prefix}/%{doc_lang}/%{doc_product}/%{doc_version}/html/
+cp -rf * $RPM_BUILD_ROOT/%{prefix}/%{doc_lang}/%{doc_product}/%{doc_version}/html/.
+
+
+%preun -n %{doc_product}-%{doc_version}-web-%{doc_lang}
+if [ "$1" = "0" ] ; then # last uninstall
+%{__perl} -e 'foreach my $book (@books) { system(q|publican update_db --del
--lang="%{doc_lang}" --formats=html --product="%{doc_product}"
--version="%{doc_version}" --name="$book"|);}'
+fi
+
+%post -n %{doc_product}-%{doc_version}-web-%{doc_lang}
+%{__perl} -e 'foreach my $book (@books) { system(q|publican update_db --add
--lang="%{doc_lang}" --formats="html"
--product="%{doc_product}" --version="%{doc_version}"
--name="$book" --subtitle="%{doc_product} %{doc_version}
documentation" --abstract="Unported %{doc_product} %{doc_version} HTML
documentation."|);}'
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%{prefix}/en-US
+
+%changelog
+* Wed Jul 18 2012 Jared Morgan jmorgan(a)redhat.com 5.2.2-2
+- Draft content with API Docs embedded.
+