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