ABF is currently being migrated to new servers. Pull requests should be working.
avatar
Rosa has added 8d67fa1ac0
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "qtscriptgenerator-src-0.1.0.tar.gz": eeae733106369e289f257b754822bc372fd6ba75
view file @ 8d67fa1ac0
... ... --- /dev/null
... ... +++ b/include_everything.patch
... ... @@ -0,0 +1,55 @@
1
--- b/generator/qtscript_masterinclude.h	2009-03-21 20:37:30.719523909 -0400
2
+++ a/generator/qtscript_masterinclude.h	2009-03-21 21:00:25.108149339 -0400
3
@@ -31,17 +31,41 @@
4
 
5
 #include <QtUiTools/QtUiTools>
6
 
7
-#ifndef QT_NO_XMLPATTERNS
8
-#  include <QtXmlPatterns/QtXmlPatterns>
9
-#endif
10
-
11
-#ifndef QT_NO_WEBKIT
12
-#  include <QtWebKit/QtWebKit>
13
-#endif
14
-
15
-#ifndef QT_NO_PHONON
16
-#  include <phonon/phonon>
17
-#endif
18
+#include <QtXmlPatterns/QtXmlPatterns>                                                              
19
+
20
+#include <QtWebKit/QtWebKit>                                                                        
21
+                                                                                                    
22
+#include "phonon/abstractaudiooutput.h"                                                             
23
+#include "phonon/abstractmediastream.h"                                                             
24
+#include "phonon/abstractvideooutput.h"                                                             
25
+#include "phonon/addoninterface.h"                                                                  
26
+#include "phonon/audiooutput.h"                                                                     
27
+#include "phonon/audiooutputinterface.h"                                                            
28
+#include "phonon/backendcapabilities.h"                                                             
29
+#include "phonon/backendinterface.h"
30
+#include "phonon/effect.h"
31
+#include "phonon/effectinterface.h"
32
+#include "phonon/effectparameter.h"
33
+#include "phonon/effectwidget.h"
34
+#include "phonon/mediacontroller.h"
35
+#include "phonon/medianode.h"
36
+#include "phonon/mediaobject.h"
37
+#include "phonon/mediaobjectinterface.h"
38
+#include "phonon/mediasource.h"
39
+#include "phonon/objectdescription.h"
40
+#include "phonon/objectdescriptionmodel.h"
41
+#include "phonon/path.h"
42
+#include "phonon/phonondefs.h"
43
+#include "phonon/phononnamespace.h"
44
+#include "phonon/platformplugin.h"
45
+#include "phonon/seekslider.h"
46
+#include "phonon/streaminterface.h"
47
+#include "phonon/videoplayer.h"
48
+#include "phonon/videowidget.h"
49
+#include "phonon/videowidgetinterface.h"
50
+#include "phonon/volumefadereffect.h"
51
+#include "phonon/volumefaderinterface.h"
52
+#include "phonon/volumeslider.h"
53
 
54
 #include "../qtbindings/qtscript_core/qtscriptconcurrent.h"
55
 
view file @ 8d67fa1ac0
... ... --- /dev/null
... ... +++ b/qtscriptgenerator-src-0.1.0-fix-build.patch
... ... @@ -0,0 +1,11 @@
1
--- qtbindings/qtbindings.pro~	2009-02-20 12:42:24.000000000 +0100
2
+++ qtbindings/qtbindings.pro	2009-04-12 20:24:25.000000000 +0200
3
@@ -6,8 +6,6 @@
4
 	  qtscript_sql \
5
 	  qtscript_svg \
6
 	  qtscript_xml \
7
-	  qtscript_phonon \
8
 	  qtscript_webkit \
9
-	  qtscript_xmlpatterns \
10
 	  qtscript_uitools \
11
 	  qs_eval
view file @ 8d67fa1ac0
... ... --- /dev/null
... ... +++ b/qtscriptgenerator-src-0.1.0-fix-gcc44.patch
... ... @@ -0,0 +1,32 @@
1
--- qtscriptgenerator-src-0.1.0/generator/parser/rpp/pp-engine-bits.h~	2009-02-20 12:42:24.000000000 +0100
2
+++ qtscriptgenerator-src-0.1.0/generator/parser/rpp/pp-engine-bits.h	2009-05-27 01:24:39.000000000 +0200
3
@@ -15,6 +15,8 @@
4
 #ifndef PP_ENGINE_BITS_H
5
 #define PP_ENGINE_BITS_H
6
 
7
+#include <cstdio>
8
+
9
 namespace rpp {
10
 
11
 inline std::string pp::fix_file_path(std::string const &filename) const
12
--- qtscriptgenerator-src-0.1.0/generator/parser/rpp/pp-macro-expander.h~	2009-02-20 12:42:24.000000000 +0100
13
+++ qtscriptgenerator-src-0.1.0/generator/parser/rpp/pp-macro-expander.h	2009-05-27 01:26:14.000000000 +0200
14
@@ -15,6 +15,8 @@
15
 #ifndef PP_MACRO_EXPANDER_H
16
 #define PP_MACRO_EXPANDER_H
17
 
18
+#include <cstdio>
19
+
20
 namespace rpp {
21
 
22
 struct pp_frame
23
--- qtscriptgenerator-src-0.1.0/generator/parser/rpp/pp-internal.h~	2009-02-20 12:42:24.000000000 +0100
24
+++ qtscriptgenerator-src-0.1.0/generator/parser/rpp/pp-internal.h	2009-05-27 01:30:04.000000000 +0200
25
@@ -16,6 +16,7 @@
26
 #define PP_INTERNAL_H
27
 
28
 #include <algorithm>
29
+#include <cstdio>
30
 
31
 namespace rpp {
32
 
view file @ 8d67fa1ac0
... ... --- /dev/null
... ... +++ b/qtscriptgenerator-src-0.1.0-fix-strings.patch
... ... @@ -0,0 +1,11 @@
1
--- qtscriptgenerator-src-0.1.0/generator/reporthandler.cpp~	2009-02-20 12:42:24.000000000 +0100
2
+++ qtscriptgenerator-src-0.1.0/generator/reporthandler.cpp	2009-04-11 11:39:43.000000000 +0200
3
@@ -39,7 +39,7 @@
4
     if (db && db->isSuppressedWarning(warningText)) {
5
         ++m_suppressed_count;
6
     } else if (!m_reported_warnings.contains(warningText)) {
7
-        qDebug(qPrintable(warningText));
8
+        qDebug("%s", qPrintable(warningText));
9
         ++m_warning_count;
10
 
11
         m_reported_warnings.insert(warningText);
view file @ 8d67fa1ac0
... ... --- /dev/null
... ... +++ b/qtscriptgenerator.spec
... ... @@ -0,0 +1,128 @@
1
Name:          qtscriptgenerator
2
Version:       0.1.0
3
Release:       %mkrel 8
4
Summary:       A tool to generate Qt bindings for Qt Script    
5
Group:         System/Libraries
6
License:       GPLv2   
7
URL:           http://code.google.com/p/qtscriptgenerator/ 
8
Source0:       http://qtscriptgenerator.googlecode.com/files/qtscriptgenerator-src-%{version}.tar.gz   
9
Patch0:        qtscriptgenerator-src-0.1.0-fix-strings.patch
10
Patch1:        include_everything.patch
11
Patch2:        qtscriptgenerator-src-0.1.0-fix-build.patch
12
Patch3:        qtscriptgenerator-src-0.1.0-fix-gcc44.patch
13
BuildRoot:     %_tmppath/%name-%version-%release-root
14
BuildRequires: libxslt-proc
15
BuildRequires: phonon-devel >= 4.3.1
16
BuildRequires: qt4-devel >= 3:4.5.0
17
18
# not strictly required, but the expectation would be for the 
19
# bindings to be present
20
Requires:      qtscriptbindings = %{version}-%{release}
21
22
%description
23
Qt Script Generator is a tool to generate Qt bindings for Qt Script.
24
25
%files
26
%defattr(-,root,root,-)
27
%{qt4bin}/generator
28
29
#--------------------------------------------------------------------
30
31
%package -n qtscriptbindings 
32
Summary:    Qt bindings for Qt Script
33
Group:      System/Libraries
34
Provides:   qtscript-qt = %{version}-%{release}
35
Requires:   qt4-common
36
37
%description -n qtscriptbindings
38
Bindings providing access to substantial portions of the Qt API
39
from within Qt Script.
40
41
%files -n qtscriptbindings
42
%defattr(-,root,root,-)
43
%doc README LICENSE.GPL
44
%doc README.qsexec
45
%doc doc/
46
%doc examples/
47
%{_bindir}/qsexec
48
%{qt4plugins}/script/libqtscript*
49
50
#--------------------------------------------------------------------
51
52
%prep
53
%setup -q -n %{name}-src-%{version}
54
%patch0 -p1
55
%patch1 -p1
56
%patch2 -p0
57
%patch3 -p1
58
%build
59
60
# workaround buildsys bogosity, see also:
61
# http://code.google.com/p/qtscriptgenerator/issues/detail?id=38
62
export INCLUDE=%{qt4include}
63
64
pushd generator 
65
%{qmake_qt4} generator.pro
66
make
67
./generator
68
popd
69
70
pushd qtbindings
71
%{qmake_qt4} qtbindings.pro
72
make %{?_smp_mflags}
73
popd
74
 
75
pushd tools/qsexec/src
76
%{qmake_qt4} qsexec.pro
77
make  %{?_smp_mflags}
78
popd
79
80
81
%install
82
rm -rf %{buildroot} 
83
84
mkdir -p %{buildroot}%{qt4plugins}/script/
85
# install doesn't do symlinks
86
cp -a plugins/script/libqtscript* \
87
  %{buildroot}%{qt4plugins}/script/
88
89
cp -a tools/qsexec/README.TXT README.qsexec
90
install -D -p -m755 tools/qsexec/qsexec %{buildroot}%{_bindir}/qsexec
91
92
install -D -p -m755 generator/generator %{buildroot}%{qt4bin}/generator
93
94
%clean
95
rm -rf %{buildroot} 
96
97
98
%changelog
99
* Thu May 05 2011 Oden Eriksson <oeriksson@mandriva.com> 0.1.0-8mdv2011.0
100
+ Revision: 669390
101
- mass rebuild
102
103
* Fri Dec 03 2010 Oden Eriksson <oeriksson@mandriva.com> 0.1.0-7mdv2011.0
104
+ Revision: 607264
105
- rebuild
106
107
* Wed Mar 17 2010 Oden Eriksson <oeriksson@mandriva.com> 0.1.0-5mdv2010.1
108
+ Revision: 523885
109
- rebuilt for 2010.1
110
111
* Wed May 27 2009 Nicolas Lécureuil <nlecureuil@mandriva.com> 0.1.0-4mdv2010.0
112
+ Revision: 380069
113
- Fix build with gcc 4.4
114
115
* Mon Apr 13 2009 Nicolas Lécureuil <nlecureuil@mandriva.com> 0.1.0-3mdv2009.1
116
+ Revision: 366538
117
- Fix Requires
118
119
* Sun Apr 12 2009 Nicolas Lécureuil <nlecureuil@mandriva.com> 0.1.0-2mdv2009.1
120
+ Revision: 366529
121
- Fix Requires
122
123
* Sun Apr 12 2009 Nicolas Lécureuil <nlecureuil@mandriva.com> 0.1.0-1mdv2009.1
124
+ Revision: 366505
125
- Add BuildRoot
126
- import qtscriptgenerator
127
128

Comments