diff options
author | Michael Adam <obnox@samba.org> | 2010-09-09 17:56:03 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-01-18 14:08:59 +0100 |
commit | bf08669903ed39fc82d1ed9c51892b322f49d7d5 (patch) | |
tree | 215da27086543560c9a422f6f60963269377e6ad /packaging | |
parent | 5a77771543f7776f7aad77efc205b5a9fc0f72f0 (diff) | |
download | samba-bf08669903ed39fc82d1ed9c51892b322f49d7d5.tar.gz samba-bf08669903ed39fc82d1ed9c51892b322f49d7d5.tar.bz2 samba-bf08669903ed39fc82d1ed9c51892b322f49d7d5.zip |
packaging/RHEL-CTDB: do not use an external docs tarball but build the manpages
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/RHEL-CTDB/makerpms.sh | 7 | ||||
-rw-r--r-- | packaging/RHEL-CTDB/samba.spec.tmpl | 17 |
2 files changed, 9 insertions, 15 deletions
diff --git a/packaging/RHEL-CTDB/makerpms.sh b/packaging/RHEL-CTDB/makerpms.sh index 8da9078f98..74d5f7b3d9 100755 --- a/packaging/RHEL-CTDB/makerpms.sh +++ b/packaging/RHEL-CTDB/makerpms.sh @@ -13,8 +13,6 @@ # Note: Under this directory rpm expects to find the same directories # that are under the /usr/src/redhat directory. -# Set DOCS_TARBALL to the path to a docs release tarball in .tar.bz2 format. - # extra options passed to rpmbuild EXTRA_OPTIONS="$1" @@ -27,7 +25,6 @@ DIRNAME=$(dirname $0) TOPDIR=${DIRNAME}/../.. SPECFILE="samba.spec" -DOCS="docs.tar.bz2" RPMVER=`rpm --version | awk '{print $3}'` RPM="rpmbuild" @@ -74,10 +71,6 @@ fi ## ## copy additional source files ## -if [ "x${DOCS_TARBALL}" != "x" ] && [ -f ${DOCS_TARBALL} ]; then - cp ${DOCS_TARBALL} ${RPMSRCDIR}/${DOCS} -fi - pushd ${DIRNAME} chmod 755 setup/filter-requires-samba.sh diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl index 37f4dbbc88..1275be4999 100644 --- a/packaging/RHEL-CTDB/samba.spec.tmpl +++ b/packaging/RHEL-CTDB/samba.spec.tmpl @@ -15,7 +15,6 @@ URL: http://www.samba.org/ Source: samba-%{version}.tar.bz2 # Don't depend on Net::LDAP -Source997: docs-3.6.tar.bz2 Source998: filter-requires-samba.sh Source999: setup.tar.bz2 @@ -29,6 +28,8 @@ Provides: samba = %{version} Prefix: /usr BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: pam-devel, readline-devel, fileutils, libacl-devel, openldap-devel, krb5-devel, cups-devel, ctdb, e2fsprogs-devel +# requirements for building the man pages: +BuildRequires: libxslt, docbook-utils, docbook-style-xsl # Working around perl dependency problem from docs %define __perl_requires %{SOURCE998} @@ -123,7 +124,6 @@ utilized by SWAT as well as the HTML and PDF version of "Using Samba", # setup the vendor files (init scripts, etc...) %setup -T -D -a 999 -n samba-%{version} -q -%setup -T -D -a 997 -n samba-%{version} -q %build @@ -281,8 +281,11 @@ do fi done -# Remove some permission bits to avoid to many dependencies +# try and build the manpages cd .. +./release-scripts/build-manpages-nogit + +# Remove some permission bits to avoid to many dependencies find examples docs -type f | xargs -r chmod -x %install @@ -368,10 +371,6 @@ ln -s ../..%{initdir}/winbind $RPM_BUILD_ROOT%{_sbindir}/winbind # Remove "*.old" files find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \; -## don't duplicate the docs. These are installed by/with SWAT -rm -rf docs/htmldocs -rm -rf docs/manpages -( cd docs; ln -s %{_prefix}/share/swat/help htmldocs ) ## ## Clean out man pages for tools not installed here @@ -524,7 +523,9 @@ exit 0 %doc Manifest %doc WHATSNEW.txt %doc Roadmap -%doc docs +%doc docs-xml/archives/THANKS +%doc docs-xml/archives/history +%doc docs-xml/registry %doc examples/autofs %doc examples/LDAP %doc examples/libsmbclient |