2024-01-05 17:05:07 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
2024-01-05 17:05:06 +01:00
|
|
|
Name: qt-creator
|
2024-01-05 17:05:07 +01:00
|
|
|
Version: 4.5.1
|
2024-01-05 17:05:07 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 17:05:07 +01:00
|
|
|
Summary: An integrated development environment (IDE) tailored to the needs of Qt developers
|
2024-01-05 17:05:06 +01:00
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|
|
|
URL: http://qt.digia.com/Product/Developer-Tools/
|
2024-01-05 17:05:07 +01:00
|
|
|
Source: http://download.qt.io/official_releases/qtcreator/%{majver}/%{version}/qt-creator-opensource-src-%{version}.tar.xz
|
2024-01-05 17:05:06 +01:00
|
|
|
Source1: qtcreator.desktop
|
|
|
|
Source2: qtcreator-wrapper
|
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 17:05:07 +01:00
|
|
|
BuildRequires: libGL-devel
|
|
|
|
BuildRequires: libQt5WebEngine-devel
|
2024-01-05 17:05:06 +01:00
|
|
|
BuildRequires: libgcc
|
2024-01-05 17:05:07 +01:00
|
|
|
BuildRequires: libqt5-devel
|
2024-01-05 17:05:06 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 17:05:07 +01:00
|
|
|
#Requires: libqt4-demos
|
|
|
|
Requires: libqt5-designer
|
|
|
|
Requires: libqt5-devel
|
2024-01-05 17:05:06 +01:00
|
|
|
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
|
2024-01-05 17:05:07 +01:00
|
|
|
%setup -q -n %{name}-opensource-src-%{version}
|
|
|
|
#-D -T
|
2024-01-05 17:05:06 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 17:05:07 +01:00
|
|
|
#:<< _EOF
|
|
|
|
%{_qt5_qmake} \
|
2024-01-05 17:05:07 +01:00
|
|
|
IDE_LIBRARY_BASENAME=%{_lib}
|
|
|
|
|
2024-01-05 17:05:06 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall \
|
|
|
|
INSTALL_ROOT=%{buildroot}%{_prefix}
|
|
|
|
|
2024-01-05 17:05:07 +01:00
|
|
|
mv %{buildroot}%{_bindir}/qtcreator %{buildroot}%{_bindir}/qtcreator.bin
|
2024-01-05 17:05:06 +01:00
|
|
|
|
|
|
|
# install wrapper
|
|
|
|
install -D -m 755 %{S:2} %{buildroot}%{_bindir}/qtcreator
|
|
|
|
|
2024-01-05 17:05:07 +01:00
|
|
|
#install -d -m0755 %{buildroot}%{_datadir}/pixmaps
|
|
|
|
#cp %{buildroot}%{_datadir}/qtcreator/welcomescreen/widgets/images/qtcreator.png \
|
|
|
|
# %{buildroot}%{_datadir}/pixmaps/qtcreator.png
|
2024-01-05 17:05:07 +01:00
|
|
|
|
2024-01-05 17:05:06 +01:00
|
|
|
# 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
|
2024-01-05 17:05:07 +01:00
|
|
|
#install -D -m 644 %{S:1} %{buildroot}%{_datadir}/applications/qtcreator.desktop
|
2024-01-05 17:05:06 +01:00
|
|
|
|
|
|
|
# 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}/*
|
2024-01-05 17:05:07 +01:00
|
|
|
%dir %{_libdir}/qtcreator
|
|
|
|
%{_libdir}/qtcreator/*
|
2024-01-05 17:05:06 +01:00
|
|
|
%dir %{_datadir}/qtcreator
|
|
|
|
%{_datadir}/qtcreator/*
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
2024-01-05 17:05:07 +01:00
|
|
|
%dir %{_prefix}/libexec/qtcreator
|
|
|
|
%{_prefix}/libexec/qtcreator/*
|
|
|
|
%{_datadir}/metainfo/org.qt-project.qtcreator.appdata.xml
|
|
|
|
%doc LICENSE.GPL3-EXCEPT
|
2024-01-05 17:05:06 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:05:07 +01:00
|
|
|
* Tue Feb 13 2018 Automatic Build System <autodist@mambasoft.it> 4.5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:05:07 +01:00
|
|
|
* Wed Dec 27 2017 Automatic Build System <autodist@mambasoft.it> 4.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:05:07 +01:00
|
|
|
* Mon Oct 23 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.1-1mamba
|
|
|
|
- update to 4.4.1
|
|
|
|
|
2024-01-05 17:05:07 +01:00
|
|
|
* Fri Jul 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.1-2mamba
|
|
|
|
- fixed menu icon
|
|
|
|
|
|
|
|
* Fri Jul 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.1-1mamba
|
|
|
|
- update to 2.8.1
|
|
|
|
|
2024-01-05 17:05:06 +01:00
|
|
|
* 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
|