]> granicus.if.org Git - graphviz/commitdiff
Update spec file for --docdir changes
authorDavid Seifert <soap@gentoo.org>
Sat, 16 Apr 2022 16:00:18 +0000 (18:00 +0200)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 16 Apr 2022 16:27:27 +0000 (09:27 -0700)
* We nest `pdf` and `html` in separate directories in $(docdir), to
  mimic the old documentation packaging structure.

redhat/graphviz.spec.fedora.in

index 9357fbeddeed04289382f767005ad73e205fe3c5..2cfa502360bf9c663f3286b1fc5663328137034d 100644 (file)
@@ -873,6 +873,8 @@ CFLAGS="$RPM_OPT_FLAGS" \
         --includedir=%{_includedir} \
         --datadir=%{_datadir} \
         --mandir=%{_mandir} \
+        --pdfdir='$(docdir)/pdf' \
+        --htmldir='$(docdir)/html' \
         --disable-static \
         --disable-dependency-tracking \
         --enable-sharp \
@@ -947,12 +949,10 @@ make %{?_smp_mflags}
 
 %install
 rm -rf %{buildroot} __doc
-make DESTDIR=%{buildroot} \
-        docdir=%{buildroot}%{_docdir}/%{name} \
-        install
+make DESTDIR=%{buildroot} install
 find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
-cp -a %{buildroot}%{_datadir}/%{name}/doc __doc
-rm -rf %{buildroot}%{_datadir}/%{name}/doc
+cp -a %{buildroot}%{_docdir}/%{name} __doc
+rm -rf %{buildroot}%{_docdir}/%{name}
 
 # PHP configuration file
 %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d