update to 2.6.2 [release 2.6.2-1mamba;Tue Feb 12 2013]

This commit is contained in:
Silvan Calarco 2024-01-05 17:05:06 +01:00
parent e5fc073b16
commit c0b0c7b9f3
4 changed files with 158 additions and 0 deletions

View File

@ -1,2 +1,13 @@
# qt-creator
Qt Creator is a cross-platform integrated development environment (IDE) tailored to the needs of Qt developers.
It includes:
* An advanced C++ code editor
* Integrated GUI layout and forms designer
* Project and build management tools
* Integrated, context-sensitive help system
* Visual debugger
* Rapid code navigation tools
* Supports multiple platforms

127
qt-creator.spec Normal file
View File

@ -0,0 +1,127 @@
Name: qt-creator
Version: 2.6.2
Release: 1mamba
Summary: An IDE for QT
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://qt.digia.com/Product/Developer-Tools/
Source: http://releases.qt-project.org/qtcreator/%{version}/qt-creator-%{version}-src.tar.gz
Source1: qtcreator.desktop
Source2: qtcreator-wrapper
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libqt4-devel
BuildRequires: libQtDeclarative
BuildRequires: libstdc++6-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
Requires: libqt4-demos
Requires: libqt4-designer
Requires: libqt4-devel
Requires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Qt Creator is a cross-platform integrated development environment (IDE) tailored to the needs of Qt developers.
It includes:
* An advanced C++ code editor
* Integrated GUI layout and forms designer
* Project and build management tools
* Integrated, context-sensitive help system
* Visual debugger
* Rapid code navigation tools
* Supports multiple platforms
%prep
%setup -q -n %{name}-%{version}-src
%build
%{_qt4_qmake}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
INSTALL_ROOT=%{buildroot}%{_prefix}
install -D -m 755 bin/qtcreator %{buildroot}%{_bindir}/qtcreator.bin
# install wrapper
install -D -m 755 %{S:2} %{buildroot}%{_bindir}/qtcreator
# link icons
#for i in 16 24 32 48 64 128 256
#do
# install -d %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps
# ln -s ../../../../pixmaps/qtcreator_logo_${i}.png \
# %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/qtcreator.png
#done
# install desktop file
install -D -m 644 %{S:1} %{buildroot}%{_datadir}/applications/qtcreator.desktop
# copy doc to its correct destination
#install -D share/doc/qtcreator/qtcreator.qch \
# %{buildroot}%{_qt4_docdir}/qch/qtcreator.qch
rm -rf %{buildroot}%{_docdir}
# remove useless devel libraries
rm -f %{buildroot}%{_libdir}/qtcreator/*.so
# Remove rpaths
for f in %{buildroot}{%{_libdir}/qtcreator/{plugins/Nokia/*.so,*.so.?.*},%{_bindir}/qtcreator.bin}
do
chrpath --list $f && chrpath --delete $f || :
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/*
%dir %{_prefix}/lib/qtcreator
%{_prefix}/lib/qtcreator/*
%dir %{_datadir}/qtcreator
%{_datadir}/qtcreator/*
#%{_datadir}/pixmaps/*.png
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
#%{_qt4_docdir}/qch/*.qch
%doc README LICENSE.LGPL LGPL_EXCEPTION.TXT
%changelog
* Tue Feb 12 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.2-1mamba
- update to 2.6.2
* Sun Aug 12 2012 Automatic Build System <autodist@mambasoft.it> 2.5.2-1mamba
- automatic version update by autodist
* Wed May 30 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.5.0-1mamba
- update to 2.5.0
* Tue Oct 04 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.3.1-1mamba
- update to 2.3.1
* Wed Sep 07 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.3.0-1mamba
- update to 2.3.0
* Mon Jul 25 2011 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
- automatic version update by autodist
* Fri May 06 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0-1mamba
- update to 2.2.0
* Thu Feb 17 2011 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- automatic update by autodist
* Sun Nov 07 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.0.1-1mamba
- update to 2.0.1
* Mon Jul 12 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.3.1-1mamba
- package created by autospec

9
qtcreator-wrapper Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
bindir=$(dirname "$(readlink -nf $0)")
if test "$(uname -m)" = "x86_64" ; then
libdir=$(cd "${bindir}/../lib64" ; pwd)
else
libdir=$(cd "${bindir}/../lib" ; pwd)
fi
LD_LIBRARY_PATH="${libdir}/qtcreator:${LD_LIBRARY_PATH}" exec "${bindir}/qtcreator.bin" ${1+"$@"}

11
qtcreator.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Exec=qtcreator %F
Name=Qt Creator
GenericName=C++ IDE for developing Qt applications
X-KDE-StartupNotify=true
Icon=qtcreator
Terminal=false
Categories=Development;IDE;Qt;X-Development-Qt4;
MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.nokia.qt.qmakeprofile;application/vnd.nokia.xml.qt.resource;
InitialPreference=9