3 # - If you have any idea how to PLDize this program, do it:)
4 # - in first run eagle.key should be writable for user or use
5 # sudo /usr/lib/eagle-light/bin/eagle to change license
6 # - Is banner in rpm needed to introduce how to run it?
8 Summary: Eagle Layout Editor
9 Summary(pl.UTF-8): Edytor płytek drukowanych Eagle
14 Group: X11/Applications/Science
15 Source0: ftp://ftp.cadsoft.de/eagle/program/latest/eagle-lin32-%{version}.run
16 # Source0-md5: 2538a6e89825e7f17a475c139772e92a
17 Source1: ftp://ftp.cadsoft.de/eagle/program/latest/eagle-lin64-%{version}.run
18 # Source1-md5: 32af1a9e3af2a95121dc332a520e9486
19 Source2: ftp://ftp.cadsoft.de/eagle/program/latest/elektro-tutorial.pdf
20 # Source2-md5: 4454bfbf5b6137d3bfb47a4cefde0630
21 Source3: %{name}.desktop
22 URL: http://www.cadsoft.de/freeware.htm
23 ExclusiveArch: %{ix86} %{x8664}
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _eagledir %{_libdir}/eagle-light
27 # binutils have problems to strip bin/eagle so need disable striping
28 %define no_install_post_strip 1
31 Eagle Layout Editor. Limitations:
32 - The useable board area is limited to 100 x 80 mm (4 x 3.2 inches).
33 - Only two signal layers can be used (Top and Bottom).
34 - The schematic editor can only create one sheet.
35 To run Eagle, you need licence key. Freeware Licence key is in:
36 /usr/share/eagle-light/bin/
38 %description -l pl.UTF-8
39 Edytor płytek drukowanych Eagle. Ograniczenia:
40 - Obszar płytki jest ograniczony do 100 x 80 mm (4 x 3.2 cale)
41 - Tylko dwie sygnałowe warstwy mogą być używane (wierzchnia i spodnia)
42 - Edytor schematów może stworzyć jeden arkusz
43 Aby uruchomic Eagle, potrzebny jest klucz licencyjny. Klucz licencyjny
44 Freeware znajduje się w katalogu:
45 /usr/share/eagle-light/bin/
58 mv -f eagle-%{version}/* .
59 rm -rf eagle-%{version}
64 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_eagledir}/{bin,cam,dru,lbr,projects,scr,ulp,bin/icons,doc} \
67 $RPM_BUILD_ROOT%{_mandir}/man1 \
68 $RPM_BUILD_ROOT%{_pixmapsdir} \
69 $RPM_BUILD_ROOT%{_desktopdir}
71 cp -af doc/eagle.1 $RPM_BUILD_ROOT%{_mandir}/man1
72 cp -af bin/eagle $RPM_BUILD_ROOT%{_eagledir}/bin
73 cp -af bin/eagleicon50.png $RPM_BUILD_ROOT%{_pixmapsdir}/eagle.png
74 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
76 sed -i 's#/usr/lib/#/usr/lib64/#' $RPM_BUILD_ROOT%{_desktopdir}/*.desktop
78 # some doc files must be in bin dir because eagle use them internally
79 cp -af bin/{eagle.def,freeware.key,*.png,*.qm,*.htm} $RPM_BUILD_ROOT%{_eagledir}/bin
80 touch $RPM_BUILD_ROOT%{_eagledir}/bin/eagle.key
81 cp -arf cam/* $RPM_BUILD_ROOT%{_eagledir}/cam
82 cp -arf dru/* $RPM_BUILD_ROOT%{_eagledir}/dru
83 cp -arf lbr/* $RPM_BUILD_ROOT%{_eagledir}/lbr
84 cp -arf projects/* $RPM_BUILD_ROOT%{_eagledir}/projects
85 cp -arf scr/* $RPM_BUILD_ROOT%{_eagledir}/scr
86 cp -arf ulp/* $RPM_BUILD_ROOT%{_eagledir}/ulp
88 cp -arf bin/icons/* $RPM_BUILD_ROOT%{_eagledir}/bin/icons
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
95 %doc doc/UPDATE_* doc/README_* doc/library_*.txt doc/*.pdf doc/ulp/*.pdf
98 %{_desktopdir}/*.desktop
100 %dir %{_eagledir}/bin
101 %dir %{_eagledir}/bin/icons
102 %attr(755,root,root) %{_eagledir}/bin/eagle
103 # I'm not sure that eagle.key should have 665 atributtes
104 #%attr(665,root,users)
105 %{_eagledir}/bin/eagle.key
106 %{_eagledir}/bin/freeware.key
107 %{_eagledir}/bin/eagle.def
108 %{_eagledir}/bin/*.png
109 %{_eagledir}/bin/*.htm
110 %lang(de) %{_eagledir}/bin/*_de.qm
111 %lang(hu) %{_eagledir}/bin/*_hu.qm
112 %lang(ru) %{_eagledir}/bin/*_ru.qm
113 %lang(zh) %{_eagledir}/bin/*_zh*.qm
114 # - all files should be in folders ../ to eagle binary. Stupid :/
118 %{_eagledir}/projects
122 %{_eagledir}/bin/icons/*.svg