Repository :
http://git.fedorahosted.org/cgit/notion.git
On branch : master
---------------------------------------------------------------
commit b2541668fd4ef0b672630f2665fb42baecedc2bb
Author: Jeff Backus <jeff.backus(a)gmail.com>
Date: Mon Nov 25 08:16:55 2013 -0500
* Had to add back in DOCDIR=%{_pkgdocdir}, otherwise rpmbuild complains about new
files in BUILD.
---------------------------------------------------------------
notion.spec | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/notion.spec b/notion.spec
index a903865..f321ad0 100644
--- a/notion.spec
+++ b/notion.spec
@@ -137,17 +137,19 @@ sed -e 's|^\(PREFIX=\).*$|\1%{_prefix}|' \
-e 's|\(CFLAGS *+*= *\)\(-Os\)|\1 $(RPM_OPT_FLAGS) \2|' \
-i system-autodetect.mk
+# Installing docs to a temporary directory so that we can pick them up with
+# doc macro later.
+mkdir _docs_staging
+
%build
-make %{?_smp_mflags}
+make %{?_smp_mflags} DOCDIR=$RPM_BUILD_DIR/%{buildsubdir}/_docs_staging
# Note: -doc won't build w/ ?_smp_mflags.
cd $RPM_BUILD_DIR/%{buildsubdir}/%{name}-doc
-# Installing docs to a temporary directory so that we can pick them up with
-# doc macro later.
make DOCDIR=$RPM_BUILD_DIR/%{buildsubdir}/_docs_staging TOPDIR=.. all
%install
-make install DESTDIR=$RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT DOCDIR=%{_pkgdocdir}
%find_lang %{name} --with-man