Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 191589 - Review Request: qt4-qsa: Qt Script for Applications
Summary: Review Request: qt4-qsa: Qt Script for Applications
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Package Reviews List
URL:
Whiteboard:
Depends On:
Blocks: FE-ACCEPT
TreeView+ depends on / blocked
 
Reported: 2006-05-13 11:20 UTC by Frank Büttner
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-06-28 13:42:51 UTC
Type: ---
Embargoed:
kevin: fedora-cvs+


Attachments (Terms of Use)
fix QTLIB,QTINC (deleted)
2006-06-08 14:19 UTC, Rex Dieter
no flags Details | Diff

Description Frank Büttner 2006-05-13 11:20:16 UTC
Description: qsa is an module for Qt to make application scriptable.
At this time I can't present an full working spec/SRP file, because I have seen, that somebody I working on an Qt4 package. So I will/can't present my QT4 spec file. I use only my file for testing. And Qt4 is needes for my package. So I present my primary specfile for preview. And ask if there an interest to add qsa to Fedora Extras. The full description of QSA can be view here:
http://www.trolltech.com/products/qt/addon/qsa

Comment 1 Gianluca Sforna 2006-05-13 12:03:04 UTC
I have a semi-working spec file for the Qt 3 based one (1.1.x). 
I did not check the Qt4 source package but I expect the build procedure to be
the same ( i.e. plain broken :) ) so if you still have not started to write the
spec maybe you can benefit from my previous work.

Do you need/want me to submit a formal review request?

Comment 2 Frank Büttner 2006-05-13 13:13:42 UTC
I have start written the qsa spec file for Qt4.
But this is very difficult at this time without seen the final one for Qt4.
So I write it so, that it all way's work. But one feature of qsa must be disabled.
When you have an working spec file for qsa then you can post it here and do the
job. And I close this review. I think to modify it for Qt4 is not very hard when
you disable the editor feature then you can use your spec file for QSA 1.2.1
with Qt 4.1.2.
compiling works with configure -release -no-editor -prefix ...

Comment 3 Rex Dieter 2006-05-13 14:09:34 UTC
FYI, qt4 review is bug 188180
I'd say base your qsa work off that, for now, at least.

Comment 4 Rex Dieter 2006-05-13 14:11:36 UTC
As for qsa/qt3, qsa/qt4, I'd recommend submitting each as a separate review 
request (unless it's more convenient to build package both from a single 
specfile).  Once a spec/srpm is mentioned here, I can start a review.

Comment 5 Frank Büttner 2006-05-13 14:28:52 UTC
Ok I do the work for qsa/Qt4 and Gianluca Sforna can do this for qsa/Qt3.
I have found possible a solution for the qt3support part problem.

Comment 6 Frank Büttner 2006-05-13 16:33:04 UTC
So the first version of the spec file is ready.
http://prdownloads.sourceforge.net/qsmartcard/qsa.spec?download
As far the Qt4 package is ready I can remove the hard coded Qt path and the rest
of the work.

Comment 7 Rex Dieter 2006-05-13 16:43:30 UTC
There's no need to hard-code the qt path, at least not in the qt4 case, since it
uses pkg-config.  Use this instead to define qtdir:

BuildRequires: qt4-devel
%global qtdir %(pkg-config --variable=prefix QtCore)

and %files should probably be like:
%files
...
%qtdir/lib/libqsa.so.*

%files devel
...
%qtdir/lib/libqsa.so

qsa-devel certainly will need 
Requires: %{name} = %{version}-%{release}
Requires: qt4-devel

Comment 8 Julian Sikorski 2006-05-28 14:44:17 UTC
Well, are there any particular reasons qt3 package cannot make its way into fc5
extras? At least two programs would benefit from it (LabPlot and museek). Greets.

Comment 9 Frank Büttner 2006-05-28 14:48:06 UTC
Yes. For Qt3 you will need another version of QSA.

Comment 10 Julian Sikorski 2006-05-28 14:59:35 UTC
So this BR is for qt4 qsa. Will have to wait till fc6 then.

Comment 11 Frank Büttner 2006-05-28 15:46:03 UTC
You can build an package for QSA on Qt3 when you will. But you must call it then
qsa3 or something like.

Comment 12 Frank Büttner 2006-05-28 16:23:52 UTC
So after the new version of the Qt package is out here the first public version
of  the package.
http://prdownloads.sourceforge.net/qsmartcard/qsa-1.2.1-3FC4.src.rpm?download

Comment 13 Frank Büttner 2006-06-04 12:47:13 UTC
so the next version is ready for review.
here the URL:
http://prdownloads.sourceforge.net/qsmartcard/qsa-1.2.1-4FC4.src.rpm?download
Changelog:
- enable qt3support
- Prevent for compiling using Qt >=4.2 witch will need another version of QSA.
- add missing .h files

Comment 14 Rex Dieter 2006-06-08 14:13:57 UTC
NEEDSWORK:
* qsa.spec (and probably) qsa's configure script assumes
QTLIB=%qtdir/lib
QTINC=%qtdir/include
which isn't necessarily true.  In particular, on x86_64, QTLIB=%qtdir/lib64. 
Further, future iterations of qt4 may move QTLIB=%_libdir and/or QTINC=%_includedir.

specfile patch forthcoming.

Comment 15 Rex Dieter 2006-06-08 14:19:25 UTC
Created attachment 130748 [details]
fix QTLIB,QTINC

fix QTLIB,QTINC
use install -p
only libqsa.so -> -devel, others in main pkg

Comment 16 Rex Dieter 2006-06-08 14:42:52 UTC
NEEDSWORK
* Source's should be full URL:
Source:       
ftp://ftp.trolltech.com/qsa/source/qsa-x11-opensource-%{version}.tar.gz

Comment 17 Frank Büttner 2006-06-08 15:31:25 UTC
Thanks but I have found an Bug in the Qt packae the variable  for the include
path of the QtTest is wrong it show to %{prefix}/include but it must show
%{prefix}/include/QtTest.
So the line qtinc %(pkg-config QtTest --variable=includedir) must be
qtinc %(pkg-config QtCore --variable=prefix)/include

Comment 18 Rex Dieter 2006-06-08 15:37:28 UTC
Thanks.  I only chose QtTest because the --includedir output *was* prefix/include.

I suppose we could do something not-so-clean-but-still-should-work like:
%define qtinc %(pkg-config QtCore --variable=includedir)/..

Comment 19 Frank Büttner 2006-06-08 16:15:39 UTC
Here the next version:
http://prdownloads.sourceforge.net/qsmartcard/qsa-1.2.1-5FC5.src.rpm?download

Comment 20 Rex Dieter 2006-06-08 16:31:53 UTC
It'll speed the review process a bit too if you could also post links to the 
specfile as well.  That way, I won't have to redownload the entire source over 
and over again.

Comment 21 Rex Dieter 2006-06-08 16:38:43 UTC
%files list is still wrong.  In particular, only libqsa.so should be 
in -devel, easiest template to use is something like:

%files 
%{qtlib}/lib*.so.*

%files devel
%{qtlib}/lib*.so

Comment 22 Frank Büttner 2006-06-08 16:39:32 UTC
ok here the URL of the spec file.
http://prdownloads.sourceforge.net/qsmartcard/qsa.spec?download
it is every try the same.

Comment 25 Rex Dieter 2006-06-08 19:00:27 UTC
Personally, I'd feel more comfortable if you used (something like):
%define qtinc %(dirname $(pkg-config QtCore --variable=includedir))
instead of
%define qtinc %(pkg-config QtCore --variable=prefix)/include

In case we ever do decide to move it out of the qt-prefix (to say, %_includedir).

But that's your call as maintainer.  

Comment 26 Frank Büttner 2006-06-08 19:29:28 UTC
Yes this can be useful.
So here the new one:
http://prdownloads.sourceforge.net/qsmartcard/qsa-1.2.1-7FC5.src.rpm?download
http://prdownloads.sourceforge.net/qsmartcard/qsa.spec?download
rpmlint say that the doc part of the devel package are not nice.:(
Or can we ignore this? 

Comment 27 Rex Dieter 2006-06-08 20:02:48 UTC
Learned something cool today about qmake, you may want to consider this
cleaner/simpler method of determining QTDIR, QTINC, QTLIB:

%define qtdir %(qmake4 -query QT_INSTALL_PREFIX)
%define qtinc %(qmake4 -query QT_INSTALL_HEADERS)
%define qtlib %(qmake4 -query QT_INSTALL_LIBS)

re: rpmlint
A couple of things:
1.  make sure %defattr is *first*, so %files should be:
%files
%defattr(-,root,root)
...

2.  why in -devel %defattr(755,root,root) instead of %defattr(-,root,root)?

3.  Re: wrong-file-end-of-line-encoding, --hidden-file-or-dir warnings.  IMO,
these are small-potatoes.  You can fix these if you want, but it's not a blocker.

Comment 29 Rex Dieter 2006-06-08 20:52:31 UTC
Change
%files devel
%defattr(0755,root,root)
%attr(0644,root,root)%{qtinc}/*
...

To
%files devel
%defattr(0644,root,root)
%{qtinc}/*
...

And we're *real* close.  (unless you have a good reason for doing it your way).

I'll recheck all the blocker guidelines tomorrow morning...

Comment 30 Rex Dieter 2006-06-28 13:42:51 UTC
Looks like the ACCEPT got lost in the bugzilla crash, reclosing.

Comment 31 Laurent Rineau 2006-11-08 15:56:55 UTC
(In reply to comment #29)
> Change
> %files devel
> %defattr(0755,root,root)
> %attr(0644,root,root)%{qtinc}/*
> ...
> 
> To
> %files devel
> %defattr(0644,root,root)
> %{qtinc}/*
> ...

Rex, just for the record, it should have been "%defattr(0644,root,root,755)". 
See bug #214577. I imagine that it was a typo.


Comment 32 Rex Dieter 2006-11-08 16:21:43 UTC
Heck, I *should* have simply suggested
%defattr(-,root,root)

Comment 33 Frank Büttner 2007-06-23 16:05:49 UTC
Package Change Request
======================
Package Name: qt4-qsa
New Branches: F-7

Because the F-7 directory is missing in the CVS repo.

Comment 34 Frank Büttner 2007-06-23 18:59:17 UTC
found it:)

Comment 35 Frank Büttner 2007-10-21 12:15:15 UTC
Package Change Request
======================
Package Name: qt4-qsa
Remove Branches: devel

It can be removed for F-9 and higher, because it have reach it's EOL.
And the script function is available since Qt 4.3.
So it will be only need until F-8, to get old code working and give the
developers  some time to adapt her code to Qt 4.3.

Comment 36 Kevin Fenzi 2007-10-21 16:23:53 UTC
Please follow the package end of life procedure for the devel branch:
http://fedoraproject.org/wiki/PackageMaintainers/PackageEndOfLife

Comment 37 Frank Büttner 2007-10-21 19:15:49 UTC
done.
dead.package file add and send the mail to rel-eng 


Note You need to log in before you can comment on or make changes to this bug.