geda-gaf-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. %define snap 20100214
  2. Name: geda-gaf
  3. Version: 1.6.1
  4. Release: 1%{?_dist_release}
  5. Summary: Design Automation toolkit for electronic design
  6. Group: Applications/Engineering
  7. License: GPLv2
  8. URL: http://www.geda.seul.org
  9. Source0: http://geda.seul.org/devel/v1.6/%{version}/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: desktop-file-utils
  12. BuildRequires: gettext-devel
  13. BuildRequires: gawk
  14. BuildRequires: intltool
  15. BuildRequires: gd-devel
  16. BuildRequires: libtool-ltdl-devel
  17. BuildRequires: shared-mime-info
  18. BuildRequires: gtk2-devel
  19. BuildRequires: guile-devel
  20. BuildRequires: transfig
  21. BuildRequires: libstroke-devel
  22. BuildRequires: perl
  23. Requires: geda-docs = %{version}-%{release}
  24. Requires: geda-gattrib = %{version}-%{release}
  25. Requires: geda-gschem = %{version}-%{release}
  26. Requires: geda-gnetlist = %{version}-%{release}
  27. Requires: geda-gsymcheck = %{version}-%{release}
  28. Requires: geda-utils = %{version}-%{release}
  29. %description
  30. The GPL Electronic Design Automation (gEDA) project has produced and
  31. continues working on a full GPL'd suite and toolkit of Electronic
  32. Design Automation tools. These tools are used for electrical circuit
  33. design, schematic capture, simulation, prototyping, and production.
  34. Currently, the gEDA project offers a mature suite of free software
  35. applications for electronics design, including schematic capture,
  36. attribute management, bill of materials (BOM) generation, netlisting
  37. into over 20 netlist formats, analog and digital simulation, and
  38. printed circuit board (PCB) layout.
  39. %package -n libgeda
  40. Summary: Libraries for the gEDA project
  41. Group: System Environment/Libraries
  42. %description -n libgeda
  43. This package contains libgeda, the library needed by gEDA applications.
  44. %package -n libgeda-devel
  45. Summary: Development files for the libgeda library
  46. Group: Development/Libraries
  47. Requires: libgeda = %{version}-%{release}
  48. Requires: gtk2-devel
  49. Requires: guile-devel
  50. Requires: pkgconfig
  51. %description -n libgeda-devel
  52. Development files for libgeda library
  53. %package -n geda-symbols
  54. Summary: Electronic symbols for gEDA
  55. Group: Applications/Engineering
  56. #BuildArch: noarch
  57. %description -n geda-symbols
  58. This package contains a bunch of symbols of electronic devices
  59. used by gschem, the gEDA project schematic editor.
  60. %package -n geda-docs
  61. Summary: Documentation and Examples for gEDA
  62. Group: Applications/Documentation
  63. #BuildArch: noarch
  64. Requires: geda-symbols
  65. Provides: geda-examples = %{version}-%{release}
  66. Obsoletes: geda-examples < 20090830-2
  67. %description -n geda-docs
  68. This package contains documentation and examples for the gEDA project.
  69. %package -n geda-gattrib
  70. Summary: Attribute editor for gEDA
  71. Group: Applications/Engineering
  72. Requires: geda-symbols
  73. %description -n geda-gattrib
  74. Gattrib is gEDA's attribute editor. It reads a set of gschem .sch files
  75. (schematic files), and creates a spreadsheet showing all components in
  76. rows, with the associated component attributes listed in the columns.
  77. It allows the user to add, modify, or delete component attributes outside
  78. of gschem, and then save the .sch files back out. When it is completed,
  79. it will allow the user to edit attributes attached to components, nets,
  80. and pins. (Currently, only component attribute editing is implemented;
  81. pin attributes are displayed only, and net attributes are TBD.)
  82. %package -n geda-gnetlist
  83. Summary: Netlister for the gEDA project
  84. Group: Applications/Engineering
  85. Requires: geda-symbols
  86. %description -n geda-gnetlist
  87. Gnetlist generates netlists from schematics drawn with gschem
  88. (the gEDA schematic editor). Possible output formats are:
  89. - native
  90. - tango
  91. - spice
  92. - allegro
  93. - PCB
  94. - verilog
  95. and others.
  96. %package -n geda-gschem
  97. Summary: Electronics schematics editor
  98. Group: Applications/Engineering
  99. Requires(pre): libgeda = %{version}-%{release}
  100. Requires: geda-symbols
  101. Requires: geda-docs
  102. %description -n geda-gschem
  103. Gschem is an electronics schematic editor. It is part of the gEDA project.
  104. %package -n geda-gsymcheck
  105. Summary: Symbol checker for electronics schematics editor
  106. Group: Applications/Engineering
  107. Requires: geda-symbols
  108. %description -n geda-gsymcheck
  109. Gsymcheck is a utility to check symbols for gschem.
  110. It is part of the gEDA project.
  111. %package -n geda-utils
  112. Summary: Several utilities for the gEDA project
  113. Group: Applications/Engineering
  114. Requires: geda-symbols
  115. %description -n geda-utils
  116. Several utilities for the gEDA project.
  117. %prep
  118. %setup -q
  119. # rpmlint UTF-8
  120. for f in symbols/{AUTHORS,ChangeLog-1.0} gschem/ChangeLog; do
  121. iconv -f ISO-8859-1 -t UTF-8 $f > $f.tmp && \
  122. ( touch -r $f $f.tmp ; %{__mv} -f $f.tmp $f ) || \
  123. %{__rm} -f $f.tmp
  124. done
  125. # Fixing rpaths
  126. %if "%{_libdir}" != "/usr/lib"
  127. sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
  128. %endif
  129. %build
  130. %configure --disable-static
  131. make %{?_smp_mflags}
  132. %install
  133. %{__rm} -rf %{buildroot}
  134. make INSTALL="%{_bindir}/install -p" install DESTDIR=%{buildroot}
  135. desktop-file-install --vendor "" \
  136. --dir %{buildroot}%{_datadir}/applications \
  137. --delete-original \
  138. %{buildroot}%{_datadir}/applications/geda-gschem.desktop \
  139. %{buildroot}%{_datadir}/applications/geda-gattrib.desktop
  140. %{__rm} -f %{buildroot}%{_libdir}/*.la
  141. %{__rm} -f %{buildroot}%{_datadir}/applications/mimeinfo.cache
  142. %{__rm} -f %{buildroot}%{_datadir}/mime/{XMLnamespaces,aliases,generic-icons,globs,globs2,icons,magic,mime.cache,subclasses,treemagic,types}
  143. # locale's
  144. for i in libgeda38 geda-gattrib geda-gschem ; do
  145. if [ -d %{buildroot}%{_datadir}/locale/ ]; then
  146. for lang_dir in %{buildroot}%{_datadir}/locale/* ; do
  147. lang=$(basename $lang_dir)
  148. if [ -e %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/$i.mo ] ; then
  149. echo "%lang($lang) %{_datadir}/locale/$lang/LC_MESSAGES/$i.mo" >> $i.lang
  150. fi
  151. done
  152. fi
  153. done
  154. install -d %{buildroot}%{_docdir}/%{name}/{examples,gnetlist,gsymcheck,utils}
  155. # gschem
  156. install -pm 644 gschem/examples/*.sch %{buildroot}%{_docdir}/%{name}/examples
  157. install -pm 644 gschem/examples/README.* %{buildroot}%{_docdir}/%{name}/examples
  158. # gnetlist
  159. %{__cp} -pr gnetlist/tests %{buildroot}%{_docdir}/%{name}/gnetlist
  160. %{__cp} -pr gnetlist/docs/* %{buildroot}%{_docdir}/%{name}/gnetlist
  161. %{__cp} -pr gnetlist/examples/* %{buildroot}%{_docdir}/%{name}/examples
  162. %{__rm} -f %{buildroot}%{_docdir}/%{name}/gnetlist/gnetlist.{1,doc}
  163. # gsymcheck
  164. %{__cp} -pr gsymcheck/tests/ %{buildroot}%{_docdir}/%{name}/gsymcheck
  165. # utils
  166. %{__cp} -pr utils/tests %{buildroot}%{_docdir}/%{name}/utils
  167. %{__cp} -pr utils/examples %{buildroot}%{_docdir}/%{name}/utils
  168. find %{buildroot}%{_docdir} -name 'Makefile*' -exec rm -f '{}' \;
  169. %post -n geda-symbols
  170. update-mime-database %{_datadir}/mime &> /dev/null || :
  171. %postun -n geda-symbols
  172. update-mime-database %{_datadir}/mime &> /dev/null || :
  173. %posttrans -n geda-symbols
  174. update-mime-database %{_datadir}/mime &> /dev/null || :
  175. %post -n geda-gschem
  176. touch --no-create %{_datadir}/icons/hicolor || :
  177. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  178. update-mime-database %{_datadir}/mime &> /dev/null || :
  179. %postun -n geda-gschem
  180. if [ $1 -eq 0 ] ; then
  181. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  182. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  183. update-mime-database %{_datadir}/mime &> /dev/null || :
  184. fi
  185. %posttrans -n geda-gschem
  186. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  187. update-mime-database %{_datadir}/mime &> /dev/null || :
  188. %post -n geda-gattrib
  189. touch --no-create %{_datadir}/icons/hicolor || :
  190. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  191. %postun -n geda-gattrib
  192. if [ $1 -eq 0 ] ; then
  193. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  194. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  195. fi
  196. %posttrans -n geda-gattrib
  197. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  198. %post -n libgeda
  199. /sbin/ldconfig
  200. update-mime-database %{_datadir}/mime &> /dev/null || :
  201. %postun -n libgeda
  202. /sbin/ldconfig
  203. update-mime-database %{_datadir}/mime &> /dev/null || :
  204. %posttrans -n libgeda
  205. update-mime-database %{_datadir}/mime &> /dev/null || :
  206. # Package Self test
  207. %check
  208. make distcheck
  209. %clean
  210. %{__rm} -rf %{buildroot}
  211. %files
  212. %defattr(-,root,root,-)
  213. %doc ABOUT-NLS AUTHORS ChangeLog COPYING README NEWS
  214. %files -n libgeda -f libgeda38.lang
  215. %defattr(-,root,root,-)
  216. %doc libgeda/{HACKING,ChangeLog*,BUGS,TODO}
  217. %dir %{_datadir}/gEDA/
  218. %dir %{_datadir}/gEDA/scheme
  219. %{_libdir}/libgeda.so.*
  220. %{_datadir}/gEDA/prolog.ps
  221. %{_datadir}/gEDA/scheme/geda.scm
  222. %{_datadir}/gEDA/system-gafrc
  223. %{_datadir}/mime/packages/libgeda.xml
  224. %files -n libgeda-devel
  225. %defattr(-,root,root,-)
  226. %{_includedir}/libgeda/
  227. %{_libdir}/libgeda.so
  228. %{_libdir}/pkgconfig/libgeda.pc
  229. %files -n geda-symbols
  230. %defattr(-,root,root,-)
  231. %doc symbols/{AUTHORS,ChangeLog*,README,TODO}
  232. %{_datadir}/gEDA/sym/
  233. %dir %{_datadir}/gEDA/gafrc.d/
  234. %{_datadir}/gEDA/gafrc.d/geda-clib.scm
  235. %{_datadir}/mime/application/x-geda-symbol.xml
  236. %{_datadir}/icons/hicolor/*/mimetypes/application-x-geda-symbol.*
  237. %{_datadir}/mime/application/x-geda-gsch2pcb-project.xml
  238. %{_datadir}/icons/hicolor/*/mimetypes/application-x-geda-gsch2pcb-project.*
  239. %files -n geda-docs
  240. %defattr(-,root,root,-)
  241. %dir %{_docdir}/%{name}/
  242. %doc %{_docdir}/%{name}/man
  243. %doc %{_docdir}/%{name}/wiki
  244. %doc %{_docdir}/%{name}/examples
  245. %doc %{_docdir}/%{name}/gedadocs.html
  246. %doc %{_docdir}/%{name}/nc.pdf
  247. %files -n geda-gattrib -f geda-gattrib.lang
  248. %defattr(-,root,root,-)
  249. %doc gattrib/design/{gEDA_Structures_updated.png,ProgramArchitecture.gnumeric}
  250. %doc gattrib/{BUGS,ChangeLog*,NOTES,README,ToDos}
  251. %{_bindir}/gattrib
  252. %{_datadir}/gEDA/system-gattribrc
  253. %{_datadir}/gEDA/gattrib-menus.xml
  254. %{_datadir}/applications/geda-gattrib.desktop
  255. %{_datadir}/icons/hicolor/*/apps/geda-gattrib.*
  256. %files -n geda-gnetlist
  257. %defattr(-,root,root,-)
  258. %doc gnetlist/{BUGS,ChangeLog*,TODO}
  259. %doc %{_docdir}/%{name}/gnetlist
  260. %{_bindir}/gnetlist
  261. %{_bindir}/mk_verilog_syms
  262. %{_bindir}/sch2eaglepos.sh
  263. %{_bindir}/sw2asc
  264. %{_datadir}/gEDA/scheme/gnet*.scm
  265. %{_datadir}/gEDA/system-gnetlistrc
  266. %{_mandir}/man1/gnetlist.*
  267. %files -n geda-gschem -f geda-gschem.lang
  268. %defattr(-,root,root,-)
  269. %doc gschem/{BUGS,ChangeLog*,TODO}
  270. %{_bindir}/gschem
  271. %{_bindir}/gschemdoc
  272. %{_datadir}/gEDA/scheme/auto-place-attribs.scm
  273. %{_datadir}/gEDA/scheme/default-attrib-positions.scm
  274. %{_datadir}/gEDA/scheme/image.scm
  275. %{_datadir}/gEDA/scheme/pcb.scm
  276. %{_datadir}/gEDA/scheme/print.scm
  277. %{_datadir}/gEDA/scheme/auto-uref.scm
  278. %{_datadir}/gEDA/scheme/generate_netlist.scm
  279. %{_datadir}/gEDA/scheme/gschem.scm
  280. %{_datadir}/gEDA/scheme/list-keys.scm
  281. %{_datadir}/gEDA/scheme/print-NB-attribs.scm
  282. %{_datadir}/gEDA/bitmap/gschem-*
  283. %{_datadir}/gEDA/system-gschemrc
  284. %{_datadir}/gEDA/gschem-gtkrc
  285. %{_datadir}/gEDA/gschem-colormap-darkbg
  286. %{_datadir}/gEDA/gschem-colormap-lightbg
  287. %{_datadir}/gEDA/print-colormap-darkbg
  288. %{_datadir}/gEDA/print-colormap-lightbg
  289. %{_datadir}/gEDA/scheme/color-map.scm
  290. %{_datadir}/mime/application/x-geda-schematic.xml
  291. %{_datadir}/applications/geda-gschem.desktop
  292. %{_mandir}/man1/gschem.*
  293. %{_datadir}/icons/hicolor/*/apps/geda-gschem.*
  294. %{_datadir}/icons/hicolor/*/mimetypes/application-x-geda-schematic.*
  295. %files -n geda-gsymcheck
  296. %defattr(-,root,root,-)
  297. %doc gsymcheck/{BUGS,ChangeLog*,TODO}
  298. %doc %{_docdir}/%{name}/gsymcheck
  299. %{_bindir}/gsymcheck
  300. %{_datadir}/gEDA/system-gsymcheckrc
  301. %{_mandir}/man1/gsymcheck.*
  302. %files -n geda-utils
  303. %defattr(-,root,root,-)
  304. %doc utils/{ChangeLog*,README,AUTHORS}
  305. %doc %{_docdir}/%{name}/utils
  306. %doc %{_docdir}/%{name}/readmes/
  307. %{_bindir}/garchive
  308. %{_bindir}/grenum
  309. %{_bindir}/gmk_sym
  310. %{_bindir}/smash_megafile
  311. %{_bindir}/convert_sym
  312. %{_bindir}/sarlacc_schem
  313. %{_bindir}/sarlacc_sym
  314. %{_bindir}/gschupdate
  315. %{_bindir}/gsymfix.pl
  316. %{_bindir}/pcb_backannotate
  317. %{_bindir}/gschlas
  318. %{_bindir}/olib
  319. %{_bindir}/refdes_renum
  320. %{_bindir}/gsch2pcb
  321. %{_bindir}/pads_backannotate
  322. %{_bindir}/tragesym
  323. %{_bindir}/gsymupdate
  324. %{_bindir}/gxyrs
  325. %{_bindir}/gnet_hier_verilog.sh
  326. %{_datadir}/gEDA/system-gschlasrc
  327. %{_mandir}/man1/grenum.1.gz
  328. %{_datadir}/gEDA/perl/lib/gxyrs.pm
  329. %changelog
  330. * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.1-1
  331. - Initial build for Vine Linux
  332. * Tue Nov 24 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.6.0-3
  333. - Enabling self test: https://fedorahosted.org/fedora-electronic-lab/ticket/56
  334. * Mon Nov 02 2009 Dennis Gilmore <dennis@ausil.us> - 1.6.0-2
  335. - RHEL-5 does not support noarch subpackages
  336. * Tue Oct 6 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.6.0-1
  337. - new upstream release
  338. * Thu Sep 24 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.4-2
  339. - Fixed most rpmlints and rpath
  340. - Optimize desktop/icon scriptlets
  341. * Mon Aug 31 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.5.4-1
  342. - new development snapshot
  343. * Sun Dec 21 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20081220-1
  344. - new upstream release
  345. * Tue Nov 11 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20080929-1
  346. - New upstream release
  347. * Sat Feb 02 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20080127-1
  348. - New upstream release
  349. * Tue Jan 22 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20071231-1
  350. - New upstream release
  351. * Mon Sep 03 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20070902-1
  352. - New upstream release
  353. * Thu Aug 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20070708-2
  354. - mass rebuild for fedora 8 - ppc32
  355. * Sat Jul 14 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20070708-1
  356. - New upstream release
  357. * Tue Jun 27 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20070626-1
  358. - new upstream release
  359. * Thu Jun 14 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20070526-1
  360. - new upstream release
  361. * Wed Mar 28 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 20070216-1
  362. - fix ownership of /usr/share/gEDA/docs - #233792
  363. * Sun Sep 10 2006 Chitlesh Goorah <chitlesh@fedoraproject.org> - 20061020-1
  364. - New upstream release
  365. * Sun Sep 10 2006 Chitlesh Goorah <chitlesh@fedoraproject.org> - 20060906-2
  366. - Rebuilt for FC-6 devel
  367. * Sun Sep 10 2006 Chitlesh Goorah <chitlesh@fedoraproject.org> - 20060906-1
  368. - Upstream release 20060906
  369. * Tue Sep 05 2006 Chitlesh Goorah <chitlesh@fedoraproject.org> - 20060824-2
  370. - Removed unauthorized file : MPEG sequence : favicon
  371. * Tue Sep 05 2006 Chitlesh Goorah <chitlesh@fedoraproject.org> - 20060824-1
  372. - Upstream release 20060824
  373. * Mon Aug 28 2006 Chitlesh Goorah <chitlesh@fedoraproject.org> - 20060123-3
  374. - rebuilt for FC5 and later with minor fixes