Re: Qt 4 RPMs for development?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Than Ngo schrieb:
> Tarjei Knapstad wrote:
> 
>> I'm about to start some development work using Qt 4. Before I embark
>> on building my own, does anyone know of Qt4 RPMs for FC4 that does not
>> conflict with the 3.x version in the distro?
>>  
>>
> there's Qt4 srpm on ftp://people.red/hat.com/than/rawhide. You can
> download it and do a rebuild
> for FC4.
> 
> Than
> 
or take this for Qt 4.1.0
%define smp 1
%define FEDORA FC4 

summary: Die Qt4 Bibliothek
name: qt4
Version: 4.1.0
release: 1.%FEDORA
license: GPL
packager: Frank Büttner <frank-buettner@xxxxxxx>
Vendor: Trolltech
URL:http://www.trolltech.com
group: System Environment/Libraries
source0: qt-x11-opensource-src-%{version}.tar.gz
buildRoot: /tmp/%{name}-buildroot

%description
Qt ist ein GUI-Software-Toolkit, das das Schreiben und Verwalten von
GUI-Anwendungen für das X Window System vereinfacht.
Qt ist in C++ geschrieben und vollständig objektorientiert.

%package devel
group: Development/Libraries
Summary: Dateien um Qt Programme zu übersetzen

%description devel
Enthält die Header und Tools um Qt Programm zu übersetzen.

%package tools
group: Development/Tools
Summary: Zubehör

%description tools
Enthält den Designer sowie den Linguist.

%package doc
group: Documentation
Summary: Qt Doku

%description doc
Enthält die Qt Dokumentation als HTML.

%package ODBC
group: System Environment/Libraries
Summary: Datenbanktreiber

%description ODBC
Enthält den ODBC Datenbanktreiber

%package MySQL
group: System Environment/Libraries
Summary: Datenbanktreiber

%description MySQL
Enthält den MySQL Datenbanktreiber.

%package PostgreSQL
group: System Environment/Libraries
Summary: Datenbanktreiber

%description PostgreSQL
Enthält den PostgeSQL Datenbanktreiber.

%package SQLite
group: System Environment/Libraries
Summary: Datenbanktreiber

%description SQLite
Enthält den SQLite Datenbanktreiber.

%package qt3support
group: System Environment/Libraries
Summary: Qt3 Support Bibliothek

%description qt3support
Enthält die Qt3 Support Bibliothek um Qt3 Programm unter Qt4 zu übersetzen
Von der Benutzung wird abgeraten.

%package config
group: User Interface/Desktops
Summary: Konfiguriert Qt

%description config
Enthält das grafische Konfigurationsprogramm um Qt zu konfigurieren.

%package translation
group: System Environment/Libraries
Summary: Qt Ã?bersetzungen

%description translation
Enthält �bersetzungen für die Qt Dialoge.

%prep
%setup -n qt-x11-opensource-src-%{version}

%build
%if %{smp}
	export SMP_MFLAGS="%{?_smp_mflags}"
%endif
unset QTDIR
#Compiler Flags setzen
perl -pi -e "s|-O2|$INCLUDES $RPM_OPT_FLAGS|g" mkspecs/*/qmake.conf
# -no-qt3support
echo yes | ./configure -prefix /usr/lib/Qt-%{version} \
 -release -fast -no-exceptions\
 -plugin-sql-mysql -plugin-sql-odbc -plugin-sql-psql \
 -plugin-sql-sqlite -v -nis -cups -I/usr/include/mysql
make $SMP_MFLAGS -j3 sub-src
make $SMP_MFLAGS -j3 sub-tools

%install
rm -rf $RPM_BUILD_ROOT
make INSTALL_ROOT=$RPM_BUILD_ROOT sub-src-install_subtargets
make INSTALL_ROOT=$RPM_BUILD_ROOT sub-tools-install_subtargets
make INSTALL_ROOT=$RPM_BUILD_ROOT install_qmake
make INSTALL_ROOT=$RPM_BUILD_ROOT install_mkspecs
make INSTALL_ROOT=$RPM_BUILD_ROOT install_htmldocs
make INSTALL_ROOT=$RPM_BUILD_ROOT install_translations

#Symbole enrferen
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/lib/*.%{version}
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/plugins/sqldrivers/*
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/plugins/imageformats/*
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/plugins/accessible/*
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/plugins/designer/*
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/plugins/codecs/*
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/qt3to4
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/uic3
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/assistant
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/lupdate
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/lrelease
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/moc
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/qmake
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/qm2ts
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/rcc
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/uic
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/designer
/usr/bin/strip -s $RPM_BUILD_ROOT/usr/lib/Qt-%{version}/bin/linguist


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(755,root,root)
/usr/lib/Qt-%{version}/lib/libQtCore*
/usr/lib/Qt-%{version}/lib/libQtGui* 
/usr/lib/Qt-%{version}/lib/libQtNetwork*
/usr/lib/Qt-%{version}/lib/libQtOpenGL*
/usr/lib/Qt-%{version}/lib/libQtSql*
/usr/lib/Qt-%{version}/lib/libQtXml*
/usr/lib/Qt-%{version}/lib/libQtSvg*
/usr/lib/Qt-%{version}/lib/libQtAssistantClient*
/usr/lib/Qt-%{version}/lib/*.pc
/usr/lib/Qt-%{version}/plugins/codecs/*
/usr/lib/Qt-%{version}/plugins/imageformats/*
/usr/lib/Qt-%{version}/plugins/accessible/*

%files qt3support
%defattr(755,root,root)
/usr/lib/Qt-%{version}/lib/libQt3Support*
/usr/lib/Qt-%{version}/bin/qt3to4
/usr/lib/Qt-%{version}/bin/uic3
/usr/lib/Qt-%{version}/q3porting.xml

%files devel
%defattr(755,root,root)
/usr/lib/Qt-%{version}/lib/libQtTest*
/usr/lib/Qt-%{version}/include/*
/usr/lib/Qt-%{version}/mkspecs/*
/usr/lib/Qt-%{version}/bin/assistant
/usr/lib/Qt-%{version}/bin/lrelease
/usr/lib/Qt-%{version}/bin/moc
/usr/lib/Qt-%{version}/bin/qm2ts
/usr/lib/Qt-%{version}/bin/qmake
/usr/lib/Qt-%{version}/bin/rcc
/usr/lib/Qt-%{version}/bin/uic

%files tools
%defattr(755,root,root)
/usr/lib/Qt-%{version}/bin/linguist
/usr/lib/Qt-%{version}/bin/lupdate
/usr/lib/Qt-%{version}/bin/designer
/usr/lib/Qt-%{version}/lib/libQtDesigner*
/usr/lib/Qt-%{version}/phrasebooks/*
/usr/lib/Qt-%{version}/plugins/designer/*

%files doc
%defattr(444,root,root)
/usr/lib/Qt-%{version}/doc/*

%files ODBC
%defattr(755,root,root)
/usr/lib/Qt-%{version}/plugins/sqldrivers/libqsqlodbc.so

%files MySQL
%defattr(755,root,root)
/usr/lib/Qt-%{version}/plugins/sqldrivers/libqsqlmysql.so

%files PostgreSQL
%defattr(755,root,root)
/usr/lib/Qt-%{version}/plugins/sqldrivers/libqsqlpsql.so

%files SQLite
%defattr(755,root,root)
/usr/lib/Qt-%{version}/plugins/sqldrivers/libqsqlite.so

%files config
%defattr(755,root,root)
/usr/lib/Qt-%{version}/bin/qtconfig

%files translation
%defattr(444,root,root)
/usr/lib/Qt-%{version}/translations/*

%changelog
* Fri Jan 27 2006 Frank Büttner <frank-buettner@xxxxxxx>
- An Qt 4.1 angepasst
- -j3 bei make eingefügt
* Sun Nov 20 2005 Frank Büttner <frank-buettner@xxxxxxx>
- Start

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux