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 Source3: %{name}.desktop
21 URL: http://www.cadsoft.de/freeware.htm
22 ExclusiveArch: %{ix86} %{x8664}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _eagledir %{_libdir}/eagle-light
26 # binutils have problems to strip bin/eagle so need disable striping
27 %define no_install_post_strip 1
30 Eagle Layout Editor. Limitations:
31 - The useable board area is limited to 100 x 80 mm (4 x 3.2 inches).
32 - Only two signal layers can be used (Top and Bottom).
33 - The schematic editor can only create one sheet.
34 To run Eagle, you need licence key. Freeware Licence key is in:
35 /usr/share/eagle-light/bin/
37 %description -l pl.UTF-8
38 Edytor płytek drukowanych Eagle. Ograniczenia:
39 - Obszar płytki jest ograniczony do 100 x 80 mm (4 x 3.2 cale)
40 - Tylko dwie sygnałowe warstwy mogą być używane (wierzchnia i spodnia)
41 - Edytor schematów może stworzyć jeden arkusz
42 Aby uruchomic Eagle, potrzebny jest klucz licencyjny. Klucz licencyjny
43 Freeware znajduje się w katalogu:
44 /usr/share/eagle-light/bin/
57 mv -f eagle-%{version}/* .
58 rm -rf eagle-%{version}
63 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT%{_eagledir}/{bin,cam,dru,lbr,projects,scr,ulp,bin/icons,doc} \
66 $RPM_BUILD_ROOT%{_mandir}/man1 \
67 $RPM_BUILD_ROOT%{_pixmapsdir} \
68 $RPM_BUILD_ROOT%{_desktopdir}
70 cp -af doc/eagle.1 $RPM_BUILD_ROOT%{_mandir}/man1
71 cp -af bin/eagle $RPM_BUILD_ROOT%{_eagledir}/bin
72 cp -af bin/eagleicon50.png $RPM_BUILD_ROOT%{_pixmapsdir}/eagle.png
73 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
75 sed -i 's#/usr/lib/#/usr/lib64/#' $RPM_BUILD_ROOT%{_desktopdir}/*.desktop
77 # some doc files must be in bin dir because eagle use them internally
78 cp -af bin/{eagle.def,freeware.key,*.png,*.qm,*.htm} $RPM_BUILD_ROOT%{_eagledir}/bin
79 touch $RPM_BUILD_ROOT%{_eagledir}/bin/eagle.key
80 cp -arf cam/* $RPM_BUILD_ROOT%{_eagledir}/cam
81 cp -arf dru/* $RPM_BUILD_ROOT%{_eagledir}/dru
82 cp -arf lbr/* $RPM_BUILD_ROOT%{_eagledir}/lbr
83 cp -arf projects/* $RPM_BUILD_ROOT%{_eagledir}/projects
84 cp -arf scr/* $RPM_BUILD_ROOT%{_eagledir}/scr
85 cp -arf ulp/* $RPM_BUILD_ROOT%{_eagledir}/ulp
87 cp -arf bin/icons/* $RPM_BUILD_ROOT%{_eagledir}/bin/icons
90 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
94 %doc doc/UPDATE_* doc/README_* doc/library_*.txt doc/*.pdf doc/ulp/*.pdf
97 %{_desktopdir}/*.desktop
100 %dir %{_eagledir}/bin/icons
101 %attr(755,root,root) %{_eagledir}/bin/eagle
102 # I'm not sure that eagle.key should have 665 atributtes
103 #%attr(665,root,users)
104 %{_eagledir}/bin/eagle.key
105 %{_eagledir}/bin/freeware.key
106 %{_eagledir}/bin/eagle.def
107 %{_eagledir}/bin/*.png
108 %{_eagledir}/bin/*.htm
109 %lang(de) %{_eagledir}/bin/*_de.qm
110 %lang(hu) %{_eagledir}/bin/*_hu.qm
111 %lang(ru) %{_eagledir}/bin/*_ru.qm
112 %lang(zh) %{_eagledir}/bin/*_zh*.qm
113 # - all files should be in folders ../ to eagle binary. Stupid :/
117 %{_eagledir}/projects
121 %{_eagledir}/bin/icons/*.svg