Bug 1321333

Summary: /usr/share/doc/speexdsp/manual.pdf needs to be removed during build
Product: [Fedora] Fedora Reporter: Brian J. Murrell <brian>
Component: speexdspAssignee: David King <amigadave>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: amigadave, mlichvar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 19:38:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Brian J. Murrell 2016-03-25 15:18:34 UTC
Description of problem:
When rebuilding the speexdsp SRPM on EL7, the build fails because /usr/share/doc/speexdsp/manual.pdf is unpackaged.

Version-Release number of selected component (if applicable):
1.2-0.7.rc3

How reproducible:
100%

Steps to Reproduce:
1. Install speexdsp-1.2-0.7.rc3.fc23.src.rpm on EL7
2. Try to rpmbuild --rebuild it
3.

Actual results:
Fails because it finds /usr/share/doc/speexdsp/manual.pdf unpackaged.

Expected results:
Should build cleanly.

Additional info:

Looking at the Makefile in doc seems to confirm that the actual behaviour is expected.

install-docDATA is the Makefile target that installs manual.pdf.  It installs it into $(DESTDIR)$(docdir).  We can see that docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} and that PACKAGE_TARNAME = speexdsp so thus it the action will install manual.pdf into /usr/share/doc/speexdsp but that file is not packaged in the speexdsp.spec file.  The following patch to the speexdsp.spec file seems to fix the problem:

--- speexdsp-1.2-0.7.rc3.spec	2015-10-23 11:59:02.000000000 -0400
+++ speexdsp.spec	2016-03-25 10:33:13.870060815 -0400
@@ -58,6 +58,7 @@
 
 %install
 make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
+rm $RPM_BUILD_ROOT/usr/share/doc/speexdsp/manual.pdf
 
 # Remove libtool archives
 find %{buildroot} -type f -name "*.la" -delete

Comment 1 Fedora End Of Life 2016-11-24 16:14:13 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Fedora End Of Life 2016-12-20 19:38:25 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.