1 |
Summary: A professional CAD system |
2 |
Name: qcad |
3 |
Version: 3.12.2.3 |
4 |
Release: %mkrel 1 |
5 |
Group: Graphics/Editors and Converters |
6 |
License: GPLv3 with exceptions, CC-BY, GPLv2+, LGPLv2.1, BSD |
7 |
URL: http://www.qcad.org |
8 |
# https://github.com/qcad/qcad/archive/v%{version}.tar.gz |
9 |
Source0: %{name}-%{version}.tar.gz |
10 |
# http://www.qcad.org/bugtracker/index.php?do=details&task_id=1307 |
11 |
Patch0: %{name}-3.12.2.3-mga-fix-i18n.patch |
12 |
|
13 |
# minimal BuildRequires |
14 |
BuildRequires: qt5-devel |
15 |
BuildRequires: pkgconfig(Qt5Designer) |
16 |
BuildRequires: pkgconfig(Qt5Script) |
17 |
BuildRequires: pkgconfig(Qt5Svg) |
18 |
BuildRequires: pkgconfig(Qt5WebKit) |
19 |
BuildRequires: pkgconfig(Qt5XmlPatterns) |
20 |
BuildRequires: pkgconfig(Qt5WebKitWidgets) |
21 |
BuildRequires: pkgconfig(Qt5ScriptTools) |
22 |
BuildRequires: pkgconfig(Qt5Help) |
23 |
BuildRequires: pkgconfig(glu) |
24 |
|
25 |
# extra BuildRequires and simular Requires for additional plugins, which were not installed by BuildRequires above |
26 |
BuildRequires: qtimageformats5 |
27 |
BuildRequires: libqt5printsupport5 |
28 |
Requires: qtimageformats5 |
29 |
Requires: libqt5printsupport5 |
30 |
|
31 |
%description |
32 |
QCad is a professional CAD System. With QCad you can easily construct |
33 |
and change drawings with ISO-text and many other features and save |
34 |
them as DXF-files. These DXF-files are the interface to many |
35 |
CAD-systems such as AutoCAD(TM) and many others. |
36 |
|
37 |
%prep |
38 |
%setup -q |
39 |
%autopatch -p1 |
40 |
|
41 |
%build |
42 |
# Use the 5.4.1 generator with Qt 5.4.0 |
43 |
#ln -s qt-labs-qtscriptgenerator-5.4.1 src/3rdparty/qt-labs-qtscriptgenerator-5.4.0 |
44 |
#ln -s qt-labs-qtscriptgenerator-5.4.1.pro src/3rdparty/qt-labs-qtscriptgenerator-5.4.0/qt-labs-qtscriptgenerator-5.4.0.pro |
45 |
%qmake_qt5 |
46 |
%make |
47 |
|
48 |
%install |
49 |
# remove project files |
50 |
find . \( -name '*.pri' -or -name '*.pro' -or -name '*.ts' \) -delete |
51 |
find . \( -name 'Makefile*' -or -name '.gitignore' \) -delete |
52 |
|
53 |
install -dm755 %{buildroot}%{_datadir}/%{name} |
54 |
cp -r examples fonts libraries linetypes patterns plugins scripts ts %{buildroot}%{_datadir}/%{name} |
55 |
cp release/* %{buildroot}%{_datadir}/%{name} |
56 |
|
57 |
# qt |
58 |
for sofiles in %{_qt5_plugindir}/imageformats/*.so |
59 |
do |
60 |
ln -sf ${sofiles} %{buildroot}%{_datadir}/%{name}/plugins/imageformats/${sofiles##/*/} |
61 |
done |
62 |
|
63 |
for sofiles in %{_qt5_plugindir}/sqldrivers/*.so |
64 |
do |
65 |
ln -sf ${sofiles} %{buildroot}%{_datadir}/%{name}/plugins/sqldrivers/${sofiles##/*/} |
66 |
done |
67 |
|
68 |
for sofiles in %{_qt5_plugindir}/printsupport/*.so |
69 |
do |
70 |
ln -sf ${sofiles} %{buildroot}%{_datadir}/%{name}/plugins/printsupport/${sofiles##/*/} |
71 |
done |
72 |
|
73 |
install -Dm644 scripts/%{name}_icon.png %{buildroot}%{_iconsdir}/%{name}_icon.png |
74 |
|
75 |
install -dm0755 %{buildroot}%{_bindir} |
76 |
echo -e '#!/bin/sh\ncd %{_datadir}/%{name}\nLD_LIBRARY_PATH=`pwd`:%{_libdir}/%{name}:$LD_LIBRARY_PATH exec ./%{name}-bin' > %{buildroot}%{_bindir}/%{name} |
77 |
chmod 0755 %{buildroot}%{_bindir}/%{name} |
78 |
|
79 |
rm -f %{buildroot}%{_datadir}/%{name}/*.a |
80 |
|
81 |
install -dm0755 %{buildroot}%{_libdir}/%{name} |
82 |
mv %{buildroot}%{_datadir}/%{name}/*.so %{buildroot}%{_libdir}/%{name} |
83 |
|
84 |
# man page |
85 |
install -Dm644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 |
86 |
|
87 |
# documentation for help system |
88 |
install -Dm644 readme.txt %{buildroot}%{_datadir}/%{name}/readme.txt |
89 |
|
90 |
# desktop |
91 |
install -m 755 -d %{buildroot}%{_datadir}/applications |
92 |
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF |
93 |
[Desktop Entry] |
94 |
Name=Qcad |
95 |
GenericName=CAD system |
96 |
GenericName[da]=Computerhjulpet design (CAD) |
97 |
GenericName[de]=System für computerunterstützte Konstruktion |
98 |
GenericName[it]=Sistema CAD |
99 |
GenericName[ja]=コンピュータ支援設計 (CAD) システム |
100 |
GenericName[ru]=Система автоматизированного проектирования |
101 |
GenericName[sk]=CAD systém |
102 |
GenericName[uk]=Система автоматизованого проектування |
103 |
Comment=A professional CAD system |
104 |
Comment[ru]=Профессиональная CAD система |
105 |
Comment[sq]=Një sistem profesional CAD |
106 |
Comment[be]=Прафэсійная CAD-сыстэма |
107 |
Comment[ast]=Un sistema CAD profesional |
108 |
Comment[bn]=পেশাদারী CAD পদ্ধতি |
109 |
Comment[bs]=Profesionalni sistem CAD |
110 |
Comment[pt_BR]=Um sistema CAD profissional |
111 |
Comment[bg]=Професионална CAD система |
112 |
Comment[ca]=Un sistema CAD professional |
113 |
Comment[ca@valencia]=Un sistema CAD professional |
114 |
Comment[zh_HK]=專業 CAD 系統 |
115 |
Comment[da]=Et professionelt CAD-system |
116 |
Comment[cs]=Profesionální CAD systém |
117 |
Comment[crh]=Profesyonel CAD Sistemi |
118 |
Comment[zh_TW]=專業 CAD 系統 |
119 |
Comment[zh_CN]=一个专业的 CAD 系统 |
120 |
Comment[nl]=Een professioneel CAD-systeem |
121 |
Comment[fi]=Ammattimainen CAD-järjestelmä |
122 |
Comment[fr]=Un système de CAO professionnel |
123 |
Comment[gl]=Un sistema de CAD profesional |
124 |
Comment[de]=Ein professionelles CAD-System |
125 |
Comment[el]=Ένα επαγγελματικό σύστημα σχεδίασης CAD |
126 |
Comment[is]=Hágæða teiknikerfi (CAD) |
127 |
Comment[hu]=Professzionális CAD-rendszer |
128 |
Comment[it]=Un sistema CAD professionale |
129 |
Comment[ja]=プロフェッショナル CAD システム |
130 |
Comment[ky]=Кесиптик CAD - тутуму |
131 |
Comment[ms]=Sistem CAD profesional |
132 |
Comment[nb]=Et profesjonelt CAD-system |
133 |
Comment[pt]=Um sistema CAD profissional |
134 |
Comment[pl]=Profesjonalny system CAD |
135 |
Comment[oc]=Un sistèma de CAO professional |
136 |
Comment[ro]=Un sistem profesional CAD |
137 |
Comment[tg]=Системаи касбии CAD |
138 |
Comment[sv]=Professionellt CAD-system |
139 |
Comment[es]=Un sistema CAD profesional |
140 |
Comment[sl]=Profesionalni sistem CAD |
141 |
Comment[uk]=Професійна САПР |
142 |
Comment[tr]=Profesyonel CAD Sistemi |
143 |
Exec=%{name} |
144 |
Icon=%{name}_icon |
145 |
Terminal=false |
146 |
Type=Application |
147 |
Categories=Office;Chart;Qt; |
148 |
StartupNotify=true |
149 |
EOF |
150 |
|
151 |
%files |
152 |
%doc readme.txt LICENSE.txt README.md gpl-3.0.txt cc-by-3.0.txt gpl-3.0-exceptions.txt |
153 |
%{_bindir}/%{name} |
154 |
%{_libdir}/%{name}/*.so |
155 |
%{_iconsdir}/*.png |
156 |
%{_datadir}/%{name} |
157 |
%{_datadir}/applications/*.desktop |
158 |
%{_mandir}/man1/%{name}.1.* |