Bug 197933

Summary: specfile places include files in /usr/include/pqxx/, pqxx-config thinks they are in /usr/include/
Product: [Fedora] Fedora Reporter: Curt Hastings <curt>
Component: libpqxxAssignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: extras-qa
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: 2006-08-03 10:50:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The attached patch file, applied to the specfile, fixes the problem. none

Description Curt Hastings 2006-07-07 14:11:02 UTC
Description of problem:

The specfile incorrectly places an additional pqxx directory in the path to the
main pqxx include file, which should be /usr/include/pqxx/pqxx.  Code such as

#include <pqxx/pqxx>

....

Should be possible to compile with

gcc -I`pqxx-config --cflags`

but does not.

Version-Release number of selected component (if applicable):

http://download.fedora.redhat.com/pub/fedora/linux/extras/5/SRPMS/libpqxx-2.6.6-1.fc5.src.rp

(and binaries built from the same)

How reproducible:

cd /usr/src/redhat/SPECS
rpmbuild --bb libpqxx.spec

The attached patch fixes the problem.
After making the change:

rpmbuild --bb libpqxx.spec
rpm -qlp /usr/src/redhat/RPMS/i386/libpqxx-devel-2.6.6-1.i386.rpm 
/usr/bin/pqxx-config
/usr/include
/usr/include/pqxx
/usr/include/pqxx/all.h
/usr/include/pqxx/basic_connection
/usr/include/pqxx/basic_connection.hxx

etc...

Comment 1 Curt Hastings 2006-07-07 14:11:02 UTC
Created attachment 132051 [details]
The attached patch file, applied to the specfile, fixes the problem.