2024-01-05 16:59:51 +01:00
|
|
|
%define _csver 2.0.4.0-1
|
|
|
|
%define _dever 2.1.0.0-1
|
|
|
|
%define _enver 2.1.0.0-1
|
|
|
|
%define _huver 2.0.4.0-1
|
|
|
|
|
|
|
|
Name: qcad
|
2024-01-05 16:59:52 +01:00
|
|
|
Version: 3.26.4.5
|
2024-01-05 16:59:51 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 16:59:51 +01:00
|
|
|
Summary: A professional 2D CAD system
|
2024-01-05 16:59:51 +01:00
|
|
|
Group: Graphical Desktop/Applications/Graphics
|
2024-01-05 16:59:51 +01:00
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
2024-01-05 16:59:52 +01:00
|
|
|
URL: https://www.qcad.org/en/
|
2024-01-05 16:59:51 +01:00
|
|
|
Source0: git://github.com/qcad/qcad.git/v%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
#Source0: ftp://ribbonsoft.com/archives/qcad/%{name}-%{version}-1-community.src.tar.gz
|
|
|
|
#Source1: ftp://ribbonsoft.com/archives/qcad/%{name}-manual-cs-%{_csver}.html.zip
|
|
|
|
#Source2: ftp://ribbonsoft.com/archives/qcad/%{name}-manual-de-%{_dever}.html.zip
|
|
|
|
#Source3: ftp://ribbonsoft.com/archives/qcad/%{name}-manual-en-%{_enver}.html.zip
|
|
|
|
#Source4: ftp://ribbonsoft.com/archives/qcad/%{name}-manual-hu-%{_huver}.html.zip
|
2024-01-05 16:59:51 +01:00
|
|
|
License: GPL
|
2024-01-05 16:59:51 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libGLU-devel
|
2024-01-05 16:59:52 +01:00
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libcups-devel
|
2024-01-05 16:59:51 +01:00
|
|
|
BuildRequires: libgcc
|
2024-01-05 16:59:52 +01:00
|
|
|
BuildRequires: libglvnd-devel
|
2024-01-05 16:59:52 +01:00
|
|
|
BuildRequires: libqt5-devel
|
2024-01-05 16:59:51 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 16:59:51 +01:00
|
|
|
BuildRequires: libmng-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libXmu-devel
|
|
|
|
BuildRequires: libSM-devel
|
|
|
|
BuildRequires: libICE-devel
|
|
|
|
BuildRequires: libIDL-devel
|
|
|
|
BuildRequires: libpthread-stubs-devel
|
|
|
|
BuildRequires: libXext-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
QCad is a professional 2D CAD System. With QCad you can easily construct and change drawings with ISO-text and many other features and save them as DXF-files.
|
|
|
|
These DXF-files are the interface to many CAD-systems such as AutoCAD(TM) and many others.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 16:59:51 +01:00
|
|
|
%setup -q
|
2024-01-05 16:59:52 +01:00
|
|
|
#-D -T
|
|
|
|
#:<< _EOF
|
2024-01-05 16:59:51 +01:00
|
|
|
#-n %{name}-%{version}-1-community.src -a1 -a2 -a3 -a4
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
#if [ ! -e src/3rdparty/qt-labs-qtscriptgenerator-%{_qt5_version} ]; then
|
|
|
|
# cp -a src/3rdparty/qt-labs-qtscriptgenerator-5.9.5 src/3rdparty/qt-labs-qtscriptgenerator-%{_qt5_version}
|
|
|
|
# mv src/3rdparty/qt-labs-qtscriptgenerator-%{_qt5_version}/qt-labs-qtscriptgenerator-5.9.5.pro \
|
|
|
|
# src/3rdparty/qt-labs-qtscriptgenerator-%{_qt5_version}/qt-labs-qtscriptgenerator-%{_qt5_version}.pro
|
|
|
|
#fi
|
2024-01-05 16:59:51 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 16:59:52 +01:00
|
|
|
#:<< _EOF
|
|
|
|
qmake-qt5
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
%make -j1
|
2024-01-05 16:59:51 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
# remove project files
|
|
|
|
find . \( -name '*.pri' -or -name '.pro' -or -name '*.ts' \) -delete
|
|
|
|
find . \( -name 'Makefile' -name '.gitignore' \) -delete
|
2024-01-05 16:59:51 +01:00
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
install -dm755 %{buildroot}%{_datadir}/{qcad,pixmaps,applications}
|
|
|
|
cp -r examples fonts libraries patterns plugins scripts ts %{buildroot}%{_datadir}/qcad
|
|
|
|
cp release/* %{buildroot}%{_datadir}/qcad/
|
|
|
|
#cp debug/* %{buildroot}%{_datadir}/qcad
|
2024-01-05 16:59:51 +01:00
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
install -m755 readme.txt %{buildroot}%{_datadir}/qcad/readme.txt
|
2024-01-05 16:59:51 +01:00
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
# qtwebkit
|
2024-01-05 16:59:52 +01:00
|
|
|
ln -sf %{_libdir}/qt5/plugins/designer/libqwebengineview.so %{buildroot}%{_datadir}/qcad/plugins/designer/libqwebengineview.so
|
2024-01-05 16:59:51 +01:00
|
|
|
# qt
|
2024-01-05 16:59:52 +01:00
|
|
|
for sofiles in %{_libdir}/qt5/plugins/imageformats/*.so
|
2024-01-05 16:59:51 +01:00
|
|
|
do
|
|
|
|
ln -sf ${sofiles} %{buildroot}%{_datadir}/qcad/plugins/imageformats/${sofiles##/*/}
|
|
|
|
done
|
2024-01-05 16:59:52 +01:00
|
|
|
for sofiles in %{_libdir}/qt5/plugins/sqldrivers/*.so
|
2024-01-05 16:59:51 +01:00
|
|
|
do
|
|
|
|
ln -sf ${sofiles} %{buildroot}%{_datadir}/qcad/plugins/sqldrivers/${sofiles##/*/}
|
|
|
|
done
|
2024-01-05 16:59:51 +01:00
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
install -Dm644 scripts/qcad_icon.png %{buildroot}%{_datadir}/pixmaps/qcad_icon.png
|
|
|
|
#install -Dm644 QCad.desktop %{buildroot}%{_datadir}/applications/QCad.desktop
|
2024-01-05 16:59:51 +01:00
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
install -dm0755 %{buildroot}%{_bindir}
|
|
|
|
echo -e '#!/bin/sh\nLD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"/usr/share/qcad" exec /usr/share/qcad/qcad-bin "$@"' >%{buildroot}/usr/bin/qcad
|
2024-01-05 16:59:51 +01:00
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
rm -f %{buildroot}%{_datadir}/qcad/scripts/.gitignore
|
2024-01-05 16:59:51 +01:00
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
chmod 0755 %{buildroot}%{_bindir}/qcad
|
2024-01-05 16:59:51 +01:00
|
|
|
|
|
|
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=QCad
|
|
|
|
Comment=A professional 2D CAD system
|
|
|
|
Comment[it]=Un sistema professionale di CAD 2D
|
|
|
|
GenericName=A professional 2D CAD system
|
|
|
|
GenericName[it]=Un sistema professionale di CAD 2D
|
2024-01-05 16:59:51 +01:00
|
|
|
Exec=%{_bindir}/qcad
|
|
|
|
Icon=%{_datadir}/pixmaps/qcad_icon.png
|
2024-01-05 16:59:51 +01:00
|
|
|
Terminal=0
|
|
|
|
Type=Application
|
2024-01-05 16:59:51 +01:00
|
|
|
Categories=Application;Development;Electronics;Engineering;
|
2024-01-05 16:59:51 +01:00
|
|
|
X-KDE-StartupNotify=false
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 16:59:51 +01:00
|
|
|
%{_bindir}/qcad
|
|
|
|
%dir %{_datadir}/qcad
|
|
|
|
%{_datadir}/qcad/*.a
|
|
|
|
%{_datadir}/qcad/*.so
|
2024-01-05 16:59:52 +01:00
|
|
|
#%{_datadir}/qcad/mainwindow_prototype
|
2024-01-05 16:59:51 +01:00
|
|
|
%{_datadir}/qcad/qcad-bin
|
|
|
|
%{_datadir}/qcad/readme.txt
|
|
|
|
%dir %{_datadir}/qcad/examples
|
|
|
|
%{_datadir}/qcad/examples/*
|
|
|
|
%dir %{_datadir}/qcad/fonts
|
|
|
|
%{_datadir}/qcad/fonts/*
|
|
|
|
%dir %{_datadir}/qcad/libraries
|
|
|
|
%{_datadir}/qcad/libraries/*
|
|
|
|
%dir %{_datadir}/qcad/patterns
|
|
|
|
%{_datadir}/qcad/patterns/*
|
|
|
|
%dir %{_datadir}/qcad/plugins
|
|
|
|
%{_datadir}/qcad/plugins/*
|
|
|
|
%dir %{_datadir}/qcad/scripts
|
|
|
|
%{_datadir}/qcad/scripts/*
|
|
|
|
%dir %{_datadir}/qcad/ts
|
|
|
|
%{_datadir}/qcad/ts/*
|
2024-01-05 16:59:51 +01:00
|
|
|
%{_datadir}/applications/*
|
|
|
|
%{_datadir}/pixmaps/*
|
2024-01-05 16:59:51 +01:00
|
|
|
%doc gpl-3.0.txt gpl-3.0-exceptions.txt LICENSE.txt
|
|
|
|
#% doc qcad/doc qcad/README qcad/data
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
%changelog
|
2024-01-05 16:59:52 +01:00
|
|
|
* Thu Jul 22 2021 Automatic Build System <autodist@mambasoft.it> 3.26.4.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Thu Jun 10 2021 Automatic Build System <autodist@mambasoft.it> 3.26.4.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Tue Jun 01 2021 Automatic Build System <autodist@mambasoft.it> 3.26.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Fri Apr 16 2021 Automatic Build System <autodist@mambasoft.it> 3.26.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Sat Mar 13 2021 Automatic Build System <autodist@mambasoft.it> 3.26.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Thu Mar 04 2021 Automatic Build System <autodist@mambasoft.it> 3.26.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Mon Feb 22 2021 Automatic Build System <autodist@mambasoft.it> 3.25.2.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Sat Jul 06 2019 Automatic Build System <autodist@mambasoft.it> 3.22.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Thu Jun 20 2019 Automatic Build System <autodist@mambasoft.it> 3.22.1.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Sun Jun 09 2019 Automatic Build System <autodist@mambasoft.it> 3.22.0.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Tue Mar 19 2019 Automatic Build System <autodist@mambasoft.it> 3.22.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Wed Feb 27 2019 Automatic Build System <autodist@mambasoft.it> 3.22.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Fri Dec 28 2018 Automatic Build System <autodist@mambasoft.it> 3.21.3.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Thu Sep 13 2018 Automatic Build System <autodist@mambasoft.it> 3.21.2.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Fri Aug 24 2018 Automatic Build System <autodist@mambasoft.it> 3.21.2.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Sun Jul 29 2018 Automatic Build System <autodist@mambasoft.it> 3.21.2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Tue Jul 17 2018 Automatic Build System <autodist@mambasoft.it> 3.21.2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Tue Jan 02 2018 Automatic Build System <autodist@mambasoft.it> 3.19.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Wed Oct 11 2017 Automatic Build System <autodist@mambasoft.it> 3.18.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Mon Aug 14 2017 Automatic Build System <autodist@mambasoft.it> 3.17.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Mon Mar 06 2017 Automatic Build System <autodist@mambasoft.it> 3.16.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Wed Feb 08 2017 Automatic Build System <autodist@mambasoft.it> 3.16.4.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Fri Dec 16 2016 Automatic Build System <autodist@mambasoft.it> 3.16.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Sat Jun 04 2016 Automatic Build System <autodist@mambasoft.it> 3.15.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:52 +01:00
|
|
|
* Fri Feb 19 2016 Automatic Build System <autodist@mambasoft.it> 3.12.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
* Wed Nov 11 2015 Automatic Build System <autodist@mambasoft.it> 3.12.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
* Wed Oct 07 2015 Automatic Build System <autodist@mambasoft.it> 3.11.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
* Thu Aug 06 2015 Automatic Build System <autodist@mambasoft.it> 3.9.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
* Mon Mar 16 2015 Automatic Build System <autodist@mambasoft.it> 3.9.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
* Mon Feb 09 2015 Automatic Build System <autodist@mambasoft.it> 3.8.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
* Mon Feb 02 2015 Automatic Build System <autodist@mambasoft.it> 3.7.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
* Wed Jan 21 2015 Automatic Build System <autodist@mambasoft.it> 3.7.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
* Fri Jun 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.1.4-1mamba
|
|
|
|
- update to 3.5.1.4
|
|
|
|
|
|
|
|
* Wed Jun 12 2013 Automatic Build System <autodist@mambasoft.it> 3.0.14.0-1mamba
|
|
|
|
- update to 3.0.14.0
|
|
|
|
|
2024-01-05 16:59:51 +01:00
|
|
|
* Fri Mar 07 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.5.0-2mamba
|
|
|
|
- remove use of update-desktop-database
|
|
|
|
- sort specfile heaeder entries in the usual way for openmamba
|
|
|
|
- list one build requirement per line
|
|
|
|
- remove version from deskt menu entry and other fixes
|
|
|
|
|
|
|
|
* Sat Dec 08 2007 Tiziana Ferro <tiziana.ferro@email.it> 2.0.5.0-1mamba
|
|
|
|
- update to 2.0.5.0
|
|
|
|
|
|
|
|
* Mon Apr 18 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.0.4.0-3qilnx
|
|
|
|
- rebuild and added a changelog entry
|
|
|
|
|
|
|
|
* Fri Apr 08 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.0.4.0-2qilnx
|
|
|
|
- rebuild and moved from devel-contrib repository to devel repository
|
|
|
|
|
|
|
|
* Sat Sep 25 2004 Matteo Bernasconi <voyagernm@virgilio.it> 2.0.4-1qilnx
|
|
|
|
- first build
|