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