electronics-menu-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. %{?!_icondir:%define _icondir %{_datadir}/icons}
  2. Name: electronics-menu
  3. Version: 1.0
  4. Release: 9%{?_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. Patch2: electronics-menu-1.0-typo.patch
  15. Patch4: electronics-menu-1.0-submenus-qucs.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildArch: noarch
  18. Requires(pre): gtk2
  19. %description
  20. The programs from the category Electronics are normally located
  21. in the Edutainment directory.
  22. This Package adds a Electronics menu to the xdg menu structure.
  23. %{name} is listed among Fedora Electronic Lab (FEL) packages.
  24. %prep
  25. %setup -q -a 1
  26. %patch0 -p0 -b .submenus
  27. %patch1 -p0 -b .submenus
  28. # allowing timestamps
  29. sed -i 's|install|install -p|g' Makefile
  30. # Fedora Specific Vendor
  31. sed -i 's|<Filename>|<Filename>fedora-|' electronics.menu
  32. %build
  33. %install
  34. %{__rm} -rf %{buildroot}
  35. %{__make} install DESTDIR=%{buildroot}
  36. %clean
  37. %{__rm} -rf %{buildroot}
  38. %post
  39. touch --no-create %{_datadir}/icons/hicolor || :
  40. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  41. %postun
  42. if [ $1 -eq 0 ] ; then
  43. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  44. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  45. fi
  46. %posttrans
  47. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc COPYING README
  51. %{_icondir}/hicolor/??x??/categories/applications-electronics*.png
  52. %{_icondir}/hicolor/scalable/categories/applications-electronics*.svg
  53. %config(noreplace) %{_sysconfdir}/xdg/menus/applications-merged/electronics.menu
  54. %{_datadir}/desktop-directories/*.directory
  55. %changelog
  56. * Thu Oct 30 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.0-9
  57. - added Patch2 and 4 from fc
  58. * Mon Apr 8 2013 Alain Portal <alain.portal[AT]univ-montp2[DOT]fr> - 1.0-12
  59. - Fix a typo in menu french translation
  60. - Frenchify submenus
  61. - Add eeschema & pcbnew (kicad), pikdev and qucs menu entries
  62. * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0-8
  63. - Initial build for Vine Linux
  64. * Tue Sep 29 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-7
  65. - Improved submenus structure for F-12
  66. * Sat Aug 28 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-6
  67. - Improved submenus structure for F-12
  68. * Wed Jul 08 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-4
  69. - patched for submenus
  70. - added extra icons and directory desktop files to support the submenus feature
  71. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  73. * Sun Jul 06 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-2
  74. - Corrected yum install with requires(pre)
  75. * Fri Feb 01 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0-1
  76. - Initial package for Fedora