Sorry for delay.

> On Tue, May 08, 2007 at 03:01:07PM +0200, Rainer Lay wrote:
> config.pro:
> PREFIX      = /usr
> EPREFIX     = /usr
> DATAROOTDIR = $$PREFIX/share
> DATA_PATH   = /usr/share/pdfedit
> DOC_PATH    = /usr/share/doc/pdfedit
> MAN_PATH    = /usr/share/man/man1
> BIN_PATH    = /usr/bin
> E_RELEASE   = yes
> QTVERSION   = qt3

This file seems little bit different than mine one, but looks ok to me.

I have tried several combinations with(out) --prefix for configure
script and INSTALL_ROOT (un)set and all paths worked ok.
Unfortunatelly, I am not able to reproduce your environment (Martin told
me to check this on his virtual machine installation).

> 
> compilation is started like:
> %setup -q
> 
> %build
> export QMAKESPEC=$QTDIR/mkspecs/linux-g++
> %configure
> make 
> 
> %install
> [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
> mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir}}
> LANG=en INSTALL_ROOT=$RPM_BUILD_ROOT/ make install

I am not familiar with RPM packages building, but Pavel Ondrousek is
maintaining one for the Fedora distribution. His spec file is in
attachement. I think that he doesn't have any problem to build the
package and there is one also for 0.3.1 version.

> 
> 
> kind regards,
> Rainer
> 
> Michal Hocko schrieb:
> > On Tue, May 08, 2007 at 12:18:41PM +0200, Michal Hocko wrote:
> >   
> >> On Tue, May 08, 2007 at 11:34:46AM +0200, Rainer Lay wrote:
> >>     
> >>> Sorry for that.
> >>>
> >>> LANG=en INSTALL_ROOT=/var/tmp/pdfedit-0.3.1-buildroot/ make install
> >>> cd doc && ( gmake doc_dist|| make doc_dist )
> >>> gmake[1]: Entering directory `/usr/src/packages/BUILD/pdfedit-0.3.1/doc'
> >>>
> >>> ...
> >>>
> >>> cd src && make install
> >>> make[1]: Entering directory `/usr/src/packages/BUILD/pdfedit-0.3.1/src'
> >>> cd gui && make install
> >>> make[2]: Entering directory 
> >>> `/usr/src/packages/BUILD/pdfedit-0.3.1/src/gui'
> >>> mkdir: cannot create directory
> >>> `/var/tmp/pdfedit-0.3.1-buildroot/../../../../../../share': Permission
> >>> denied
> >>>       
> >> Seems that problem is in your Makefile, because share directory is out 
> >> of INSTALL_ROOT...
> >>
> >> I have tried similar 
> >> INSTALL_ROOT=~/tmp/pdfedit make install
> >> and everything worked fine.
> >>
> >> Can you send Makefiles generated by your qmake? 
> >> [tar -cf Makefiles.tar `find -name "Makefile"`] 
> >> Though src/gui/Makefile should be enough.
> >> Maybe there is problem in Makefiles generation on your platform.
> >>     
> >
> >   
> >> On Tue, May 08, 2007 at 01:04:13PM +0200, Rainer Lay wrote:
> >> here they come ...
> >>     
> >
> > Here is a part of your src/gui/Makefile:
> > [...]
> > INCPATH  = -I/usr/lib/qt3/mkspecs/default -I. -I.. -I../utils -I../xpdf
> > -I../xpdf/xpdf -I../xpdf/goo -I../kernel -I../kpdf-kde-3.3.2
> > -I../xpdf/splash -I../qsa/src/qsa -I../../../../../../include
> > -I$(QTDIR)/include -I.ui/ -I.moc/
> > [...]
> > Makefile: pdfedit.pro  /usr/lib/qt3/mkspecs/default/qmake.conf 
> > ../../config.pro \
> >     ../xpdf/config_xpdf_variables \
> >     ../kernel/kernel-obj.pro \
> >     ../../../../../../lib/qt3/lib/libqt-mt.prl
> >     $(QMAKE) -o Makefile pdfedit.pro
> > [...]
> > install_data: all 
> >     @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)../../../../../../share/pdfedit/" || 
> > $(MKDIR) "$(INSTALL_ROOT)../../../../../../share/pdfedit/"
> >     -$(INSTALL_FILE) "pdfeditrc" 
> > "$(INSTALL_ROOT)../../../../../../share/pdfedit/"
> >     -$(INSTALL_FILE) "mode.conf" 
> > "$(INSTALL_ROOT)../../../../../../share/pdfedit/"
> > [...]
> >
> > As you can see there is ../../../../../../ path used for both header
> > files and installation target.
> > Have you used any special parameters during configuration?
> > What is in your config.pro (in the root of pdfedit)?

Best regrads
-- 
Michal Hocko
Summary: Editor for manipulating PDF documents
Name: pdfedit
Version: 0.2.5
Release: 1
License: GPL
Group: Applications/Publishing
Source: %{name}-%{version}.tar.gz
URL: http://pdfedit.petricek.net
Packager: Pavel Ondrousek
BuildArch: i386
Requires: glibc, qt >= 3
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: qt-devel >= 3 

%description
Editor for manipulating PDF documents.

%define _bindir /usr/bin

%prep
%setup 

%build
%configure 
make  

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir}}

make install INSTALL_ROOT=$RPM_BUILD_ROOT


%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT


%files 
%defattr(-,root,root)
%{_bindir}/pdfedit
%{_mandir}/man1/pdfedit.1.gz
%{_datadir}/doc/pdfedit/*
%{_datadir}/pdfedit/*

%changelog
* Mon Mar 01 2007 Pavel Ondrousek 
- original version
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to