source: projects/specs/trunk/e/electronics-menu/electronics-menu-vl.spec @ 9043

Revision 9043, 3.1 KB checked in by inagaki, 9 years ago (diff)

2014-10-31 Ryoichi INAGAKI <ryo1@…>

  • electronics-menu, pcb: updated


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