[yap] Package documentation
Petr Pisar
ppisar at fedoraproject.org
Tue Jan 4 10:45:30 UTC 2011
commit b1853a30a937910033299bf0f6fef20b81a51292
Author: Petr Písař <ppisar at redhat.com>
Date: Wed Dec 22 09:33:35 2010 +0100
Package documentation
yap-6.2.0-Do-not-install-README-etc.patch | 26 ++++++++++++++++++++++++++
yap.spec | 9 +++++++--
2 files changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/yap-6.2.0-Do-not-install-README-etc.patch b/yap-6.2.0-Do-not-install-README-etc.patch
new file mode 100644
index 0000000..b5a4b57
--- /dev/null
+++ b/yap-6.2.0-Do-not-install-README-etc.patch
@@ -0,0 +1,26 @@
+From d9acef3be4ca926d0f138184535e3f16b15d6045 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Wed, 22 Dec 2010 09:31:28 +0100
+Subject: [PATCH] Do not install README etc.
+
+---
+ Makefile.in | 3 ---
+ 1 files changed, 0 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 522ac0a..8f37d05 100755
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -554,9 +554,6 @@ install_unix: startup.yss libYap.a
+ mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
+ mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/pl
+ mkdir -p $(DESTDIR)$(DOCSDIR)
+- $(INSTALL) $(srcdir)/Artistic $(DESTDIR)$(DOCSDIR)
+- $(INSTALL) $(srcdir)/README $(DESTDIR)$(DOCSDIR)
+- $(INSTALL) $(srcdir)/COPYING $(DESTDIR)$(DOCSDIR)
+ for f in $(PL_SOURCES); do $(INSTALL) $$f $(DESTDIR)$(SHAREDIR)/Yap/pl; done
+ @INSTALL_DLLS@ (cd packages/PLStream; $(MAKE) install)
+ @INSTALL_DLLS@ (cd library/lammpi; $(MAKE) install)
+--
+1.7.3.4
+
diff --git a/yap.spec b/yap.spec
index 20e3f63..e3d1322 100644
--- a/yap.spec
+++ b/yap.spec
@@ -14,6 +14,7 @@ Patch1: Yap-noni386.patch
Patch2: yap-6.2.0-Locate-mysql-by-mysql_config.patch
Patch3: yap-6.2.0-Install-directory-for-info-pages.patch
Patch4: yap-6.2.0-Install-http-CSS-files-into-PLTARGET.patch
+Patch5: yap-6.2.0-Do-not-install-README-etc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline-devel, gmp-devel, texinfo
BuildRequires: autoconf
@@ -53,6 +54,7 @@ Documentation for Yap.
%patch2 -p1 -b .mysql_config
%patch3 -p1 -b .install_info_directory
%patch4 -p1 -b .install_css_into_pltarget
+%patch5 -p1 -b .do_not_install_readme
# Regerenate configure because of patching
autoconf
@@ -106,7 +108,9 @@ done
--enable-depth-limit \
--enable-dynamic-loading
make %{?_smp_mflags}
+make %{?_smp_mflags} html
make %{?_smp_mflags} info
+make %{?_smp_mflags} pdf
%install
@@ -148,8 +152,8 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc README
-%doc changes*
+%doc Artistic changes* COPYING README TO_DO
+# TODO: experimental %doc README.EAM.html
%{_bindir}/yap
%{_datadir}/Yap
%{_libdir}/Yap
@@ -165,6 +169,7 @@ rm -rf $RPM_BUILD_ROOT
%files docs
%defattr(-,root,root,-)
+%doc yap.html* yap.pdf
%doc LGPL/pillow/doc/pillow_doc_html/*
%doc LGPL/pillow/doc/article.ps.gz
More information about the scm-commits
mailing list