electronics-menu-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. %{?!_icondir:%define _icondir %{_datadir}/icons}
  2. Name: electronics-menu
  3. Version: 1.0
  4. Release: 8%{?_dist_release}
  5. Summary: Electronics Menu for the Desktop
  6. License: GPLv2
  7. Group: User Interface/Desktops
  8. URL: http://geda.seul.org/
  9. Source0: http://geda.seul.org/dist/%{name}-%{version}.tar.gz
  10. # Created by Chitlesh
  11. Source1: electronics-menu-1.0-submenu.tar.bz2
  12. Patch0: electronics-menu-1.0-submenus.patch
  13. Patch1: electronics-menu-1.0-makefile.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildArch: noarch
  16. Requires(pre): gtk2
  17. %description
  18. The programs from the category Electronics are normally located
  19. in the Edutainment directory.
  20. This Package adds a Electronics menu to the xdg menu structure.
  21. %{name} is listed among Fedora Electronic Lab (FEL) packages.
  22. %prep
  23. %setup -q -a 1
  24. %patch0 -p0 -b .submenus
  25. %patch1 -p0 -b .submenus
  26. # allowing timestamps
  27. sed -i 's|install|install -p|g' Makefile
  28. # Fedora Specific Vendor
  29. sed -i 's|<Filename>|<Filename>fedora-|' electronics.menu
  30. for NOVENDOR in dinotrace electric magic gsim85 mcu8051ide GNUSim8085 \
  31. xcircuit xsch xvpn xgra dreal graal xpat xfsm toped pcb \
  32. gwave gspiceui geda-gschem geda-gattrib ktechlab gerbv piklab; do
  33. sed -i "s|<Filename>fedora-$NOVENDOR|<Filename>$NOVENDOR|" electronics.menu
  34. done
  35. %build
  36. %install
  37. %{__rm} -rf %{buildroot}
  38. %{__make} install DESTDIR=%{buildroot}
  39. %clean
  40. %{__rm} -rf %{buildroot}
  41. %post
  42. touch --no-create %{_datadir}/icons/hicolor || :
  43. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  44. %postun
  45. if [ $1 -eq 0 ] ; then
  46. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  47. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  48. fi
  49. %posttrans
  50. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  51. %files
  52. %defattr(-,root,root,-)
  53. %doc COPYING README
  54. %{_icondir}/hicolor/??x??/categories/applications-electronics*.png
  55. %{_icondir}/hicolor/scalable/categories/applications-electronics*.svg
  56. %config(noreplace) %{_sysconfdir}/xdg/menus/applications-merged/electronics.menu
  57. %{_datadir}/desktop-directories/*.directory
  58. %changelog
  59. * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0-8
  60. - Initial build for Vine Linux
  61. * Tue Sep 29 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-7
  62. - Improved submenus structure for F-12
  63. * Sat Aug 28 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-6
  64. - Improved submenus structure for F-12
  65. * Wed Jul 08 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-4
  66. - patched for submenus
  67. - added extra icons and directory desktop files to support the submenus feature
  68. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  70. * Sun Jul 06 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-2
  71. - Corrected yum install with requires(pre)
  72. * Fri Feb 01 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-1
  73. - Initial package for Fedora