/[packages]/backports/8/kicad/current/SPECS/kicad.spec
ViewVC logotype

Contents of /backports/8/kicad/current/SPECS/kicad.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1668621 - (show annotations) (download)
Mon Jan 4 06:44:37 2021 UTC (3 years, 3 months ago) by daviddavid
Original Path: cauldron/kicad/current/SPECS/kicad.spec
File size: 6912 byte(s)
- switch to wxgtk 3.1

1 # limit parallel builds on aarch64
2 %ifarch aarch64
3 %global _smp_ncpus_max 8
4 %endif
5
6 # Turn off the brp-python-bytecompile automagic
7 %global _python_bytecompile_extra 0
8
9 %define Werror_cflags %nil
10
11 %define docname kicad-doc
12 %define symname kicad-symbols
13 %define p3dname kicad-packages3D
14 %define templname kicad-templates
15 %define fpname kicad-footprints
16 %define i18nname kicad-i18n
17
18 Name: kicad
19 Summary: An open source program for the creation of electronic schematic diagrams
20 Epoch: 1
21 Version: 5.1.9
22 Release: %mkrel 2
23 License: GPLv3+
24 Group: Sciences/Computer science
25 Url: http://kicad-pcb.org/
26 Source0: https://gitlab.com/kicad/code/kicad/-/archive/%{version}/%{name}-%{version}.tar.bz2
27 Source1: https://gitlab.com/kicad/services/%{docname}/-/archive/%{version}/%{docname}-%{version}.tar.bz2
28 Source2: https://gitlab.com/kicad/libraries/%{symname}/-/archive/%{version}/%{symname}-%{version}.tar.gz
29 Source3: https://gitlab.com/kicad/libraries/%{p3dname}/-/archive/%{version}/%{p3dname}-%{version}.tar.gz
30 Source4: https://gitlab.com/kicad/libraries/%{templname}/-/archive/%{version}/%{templname}-%{version}.tar.gz
31 Source5: https://gitlab.com/kicad/libraries/%{fpname}/-/archive/%{version}/%{fpname}-%{version}.tar.gz
32 Source6: https://gitlab.com/kicad/code/%{i18nname}/-/archive/%{version}/%{i18nname}-%{version}.tar.bz2
33
34 # This needs to be aligned with kicad-library-*/template/fp-lib-table.for-pretty
35
36 Patch1: 0001-Do-not-strip-executables.patch
37
38 BuildRequires: wxgtk-devel
39 BuildRequires: mesa-common-devel
40 BuildRequires: imagemagick
41 BuildRequires: boost-devel
42 BuildRequires: glm-devel
43 BuildRequires: opencascade-devel
44 BuildRequires: pkgconfig(ngspice)
45 BuildRequires: pkgconfig(glew)
46 BuildRequires: pkgconfig(cairo)
47 BuildRequires: pkgconfig(openssl) >= 1.1
48 BuildRequires: libgomp-devel
49 BuildRequires: pkgconfig(libcurl)
50 BuildRequires: cmake
51 # doc
52 BuildRequires: dblatex
53 BuildRequires: po4a
54 BuildRequires: asciidoc
55 BuildRequires: git
56 BuildRequires: perl(Unicode::LineBreak)
57 BuildRequires: source-highlight
58 # python scripting
59 BuildRequires: pkgconfig(python3)
60 BuildRequires: python3-wxpython4
61 BuildRequires: swig
62
63 BuildRequires: desktop-file-utils
64 Requires: %{name}-library
65 Requires: %{docname}
66 Requires: %{i18nname}
67 Requires: python3-wxpython4
68
69 %description
70 Kicad is an open source (GPL) program for the creation of electronic
71 schematic diagrams and printed circuit board artwork.
72
73 Kicad is a set of four programs and a project manager:
74
75 * Eeschema: Schematic entry.
76 * Pcbnew: Board editor.
77 * Gerbview: GERBER viewer (photoplotter documents).
78 * Cvpcb: footprint selector for components used in the circuit design.
79 * Kicad: project manager.
80
81 %package doc
82 Summary: Documentation for kicad (creation of electronic schematic diagrams)
83 Requires: %{name}
84 BuildArch: noarch
85
86 %description doc
87 Kicad is an open source (GPL) program for the creation of electronic
88 schematic diagrams and printed circuit board artwork.
89
90 Kicad-doc is the documentation for kicad.
91
92 %package i18n
93 Summary: Kicad locales
94 Requires: %{name}
95 BuildArch: noarch
96
97 Obsoletes: kicad-locales-ca
98 Obsoletes: kicad-locales-cs
99 Obsoletes: kicad-locales-de
100 Obsoletes: kicad-locales-en
101 Obsoletes: kicad-locales-es
102 Obsoletes: kicad-locales-fi
103 Obsoletes: kicad-locales-fr
104 Obsoletes: kicad-locales-hu
105 Obsoletes: kicad-locales-it
106 Obsoletes: kicad-locales-ja
107 Obsoletes: kicad-locales-ko
108 Obsoletes: kicad-locales-lt
109 Obsoletes: kicad-locales-nl
110 Obsoletes: kicad-locales-pl
111 Obsoletes: kicad-locales-pt
112 Obsoletes: kicad-locales-ru
113 Obsoletes: kicad-locales-sl
114 Obsoletes: kicad-locales-sv
115 Obsoletes: kicad-locales-zh-cn
116
117 %description i18n
118 Kicad is an open source (GPL) program for the creation of electronic
119 schematic diagrams and printed circuit board artwork.
120
121 Kicad-i18n provides locales for kicad.
122
123
124 %package library
125 Summary: Library for kicad (creation of electronic schematic diagrams)
126 License: LGPLv2
127 Requires: %{name}
128 BuildArch: noarch
129
130 %description library
131 Kicad is an open source (GPL) program for the creation of electronic
132 schematic diagrams and printed circuit board artwork.
133
134 Kicad-library is a set of libraries needed by kicad.
135
136 %prep
137 %setup -q -a 1 -a 2 -a 3 -a 4 -a 5 -a 6
138 %autopatch -p1
139
140 %build
141 export LC_ALL=C
142
143 # Building kicad
144 # Set CMAKE_PREFIX_PATH because of a misconfiguration in opencascade
145 %cmake \
146 -DBUILD_SHARED_LIBS:BOOL=OFF \
147 -DCMAKE_BUILD_TYPE=Release \
148 -DKICAD_BUILD_VERSION=%{version} \
149 -DBUILD_GITHUB_PLUGIN=ON \
150 -DKICAD_SPICE=ON \
151 -DKICAD_USE_OCC=ON \
152 -DKICAD_SCRIPTING=ON \
153 -DKICAD_SCRIPTING_MODULES=ON \
154 -DKICAD_SCRIPTING_WXPYTHON=ON \
155 -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON \
156 -DKICAD_SCRIPTING_PYTHON3=ON \
157 -DKICAD_SCRIPTING_ACTION_MENU=ON \
158 -DCPACK_DO_STRIP=OFF
159 %cmake_build
160 # for %%cmake:
161
162 # Building kicad-doc
163 pushd %{docname}-%{version}
164 %cmake \
165 -DCMAKE_BUILD_TYPE=Release \
166 -DBUILD_FORMATS=html
167 %cmake_build
168 popd
169
170 # Building kicad-symbols
171 pushd %{symname}-%{version}
172 %cmake \
173 -DCMAKE_BUILD_TYPE=Release
174 %cmake_build
175 popd
176
177 # Building kicad-packages3D
178 pushd %{p3dname}-%{version}
179 %cmake \
180 -DCMAKE_BUILD_TYPE=Release
181 %cmake_build
182 popd
183
184 # Building kicad-templates
185 pushd %{templname}-%{version}
186 %cmake \
187 -DCMAKE_BUILD_TYPE=Release
188 %cmake_build
189 popd
190
191 # Building kicad-footprints
192 pushd %{fpname}-%{version}
193 %cmake \
194 -DCMAKE_BUILD_TYPE=Release
195 %cmake_build
196 popd
197
198
199 # Building kicad-i18n
200 pushd %{i18nname}-%{version}
201 %cmake \
202 -DCMAKE_BUILD_TYPE=Release \
203 -DKICAD_I18N_UNIX_STRICT_PATH=ON
204 %cmake_build
205 popd
206
207 %install
208 pushd %{docname}-%{version}
209 # Installing kicad-doc
210 %cmake_install
211 popd
212
213 # Installing kicad-symbols
214 pushd %{symname}-%{version}
215 %cmake_install
216 popd
217
218 # Installing kicad-packages3D
219 pushd %{p3dname}-%{version}
220 %cmake_install
221 popd
222
223 # Installing kicad-templates
224 pushd %{templname}-%{version}
225 %cmake_install
226 popd
227
228 # Installing kicad-footprints
229 pushd %{fpname}-%{version}
230 %cmake_install
231 popd
232
233 # Installing kicad-i18n
234 pushd %{i18nname}-%{version}
235 %cmake_install
236 popd
237 %find_lang %{name}
238
239 # Installing kicad
240 %cmake_install
241
242 # create desktop file
243 desktop-file-install --vendor='' \
244 --remove-category='Scientific' \
245 --add-category='Science;Electronics;Education' \
246 --dir=%buildroot%{_datadir}/applications \
247 %buildroot%{_datadir}/applications/*.desktop
248
249 # remove unwanted devel files
250 rm -r %{buildroot}%{_libdir}/libkicad_3dsg.so
251
252 %files
253 %{_bindir}/*
254 %{_libdir}/libkicad_3dsg.so.*
255 %{_iconsdir}/*/*/*
256 %{python3_sitelib}/_pcbnew.so
257 %{python3_sitelib}/pcbnew.*
258 %{python3_sitelib}/__pycache__/*
259 %{_datadir}/%{name}/demos/
260 %{_datadir}/%{name}/template/
261 %{_datadir}/applications/*.desktop
262 %{_datadir}/mime/packages/kicad-*.xml
263 %{_datadir}/appdata/kicad.*.xml
264 %{_libdir}/%{name}/plugins/
265 %{_datadir}/%{name}/plugins/
266 %{_datadir}/%{name}/scripting/
267 %dir %{_libdir}/%{name}
268 %dir %{_datadir}/%{name}
269
270 %files doc
271 %doc %{_docdir}/%{name}/
272
273 %files i18n -f %{name}.lang
274
275 %files library
276 %{_datadir}/%{name}/library
277 %{_datadir}/%{name}/modules

  ViewVC Help
Powered by ViewVC 1.1.30