From 86ee6d3d98f746a9ffafbd8c3b5af75c1ae800dd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:05:08 +0100 Subject: [PATCH] rebuilt to remove executable requirements group fixed build as noarch [release 0.1-2mamba;Fri Feb 05 2010] --- README.md | 2 + gnome-mime-text-x-java_16.png | Bin 0 -> 783 bytes gnome-mime-text-x-java_48.png | Bin 0 -> 3202 bytes java-icon.png | Bin 0 -> 3724 bytes menu-java.spec | 109 ++++++++++++++++++++++++++++++++++ 5 files changed, 111 insertions(+) create mode 100644 gnome-mime-text-x-java_16.png create mode 100644 gnome-mime-text-x-java_48.png create mode 100644 java-icon.png create mode 100644 menu-java.spec diff --git a/README.md b/README.md index 7849b19..66a8725 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # menu-java +This Package adds a Java menu to the xdg menu structure. + diff --git a/gnome-mime-text-x-java_16.png b/gnome-mime-text-x-java_16.png new file mode 100644 index 0000000000000000000000000000000000000000..3c315bb853c201c0baf8413b40d38b2d3de6eec5 GIT binary patch literal 783 zcmV+q1MvKbP)z@;j(q!3lK=n!AY({UO#lFTB>(_`g8%^e{{R4h=>PzA zFaQARU;qF*m;eA5Z<1fdMgRZ;g-Jv~RCwBA`v3nw0|Qw%5A;uug6RPWAQS^wU^cTd0og#?IanB&zkg(4`v04Ok57O>OiY}Ck?ALc zo2z#uObEHsQk>-H^%zrR7MfC0tu46X+tfKXh(%EAnG0rUS~V9nxXISj8S z&t%ZKcbnnQuYU|bfBs?k_3ICc3jhKL#RV*^3=Hh7j0~JSoD6dFXEQuXOa+Vo{rrL9 z{Wlf{b{0mU1*|9r00a<<0UR9641NhK!E74~aR!FWX$*nlpBS2FoMw3U{uhIgAR9w| zvL%WE00D&J1x6rTJv#tJ!TOhc3`b79WT?)!2h(4^{zQ=n2p|*}Faw<^%+JNpSZ2Xc z-*o~m4suO&)&_?B6e9+45grr+00IcbfZGpVGZfbC1#4I`)fGiyTre<v4c0&LF N002ovPDHLkV1gFnI|u*( literal 0 HcmV?d00001 diff --git a/gnome-mime-text-x-java_48.png b/gnome-mime-text-x-java_48.png new file mode 100644 index 0000000000000000000000000000000000000000..ba867bebdd7e0815e57697071934ce0fb47d9c64 GIT binary patch literal 3202 zcmV-|41M#7P)w(EZ*psMAWc}ikt!qr z01MVhL_t(|oUNLBa9q`W$3MSwAKI55Sd#UyWlO?O0>;5+C~+J&N!zrB3`{c9DFi}h z3N#opop#!iG6~SMlfaauopxyGWRd{k@kc_E35J%5X>psBLU}kgv5owY_N zF`pp`paLae95|jFqre0(g%fx|qnZF82i&TvznBMb)p2U9$noPRCSU!Z-9tx?^uPVw zPrmo<*IwJc2RI3w2BP=7l}L5Zt>!`npdDDLsy};o&q-{oSgXXz*~W^hB1Z6xAVx5r z;2F+%&ohEzDV3%uo*o0H$mMb@THHeKffIVD_kYB86Ho^%0j^NhXZE}^I&XL}07?{35k(X99z4vz-~crlpN$(oLTNgr_rM4PgZ*PK zZ~Ns#&%f~4lgEeqMu4gEOw1*~RGS&xItYP_f;UF+d_!$r7SzWNLR2lsjt#JN>+>`= zWvFk+u%u&g-F4S}?5ltH*{}Q~kf*wPrxI|+xEOfj3E6CbVDS8qd_GHUZH73G7#SXB z&+Y@Xwb$W!hQ%En*$p3Ew&_pr{{DkNCW(d@FW_R}gV4kGg(w2w_o%PWlg(u@#xOB) zntl8Bkx^MN-;$YeYwr(8q~0z(i8o-v?; zs-P&Ho!yj57T+^?o)gj9(%O9KvYfwe?F}0_Px4G9;6mX=9DE#G1WOn~CJSPmG2&R0 z)TVTGEn)I>sbYQ4Gx)w?)#^prz_0l@P{SN0Oez5v3Ll0B5hac-o(E>QpRuQ&Lak+b zIsz;LMHhr8Zasi@Z{p1X=dUabjNeLrW(s8<2n-bm_A(Qo)nkr$8lF1m1 z2NN%ELls06-}eXupM0T~hK45Id1p6=5BH+POifO3$t8`nw|B63QJ2Qil4hU*7{(QS zXJxZg0#d;XWV0UA(-FofH8p}UiV@|+lTQ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java.spec @@ -0,0 +1,109 @@ +Name: menu-java +Version: 0.1 +Release: 2mamba +Summary: Desktop Java Menu +Group: Graphical Desktop/Look 'n' feel +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://openmamba.org/ +Source0: gnome-mime-text-x-java_16.png +Source1: gnome-mime-text-x-java_48.png +# Designer: Everaldo Coelho +# License:GNU Lesser General Public License +Source2: java-icon.png +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: ImageMagick +BuildRoot: %{_tmppath}/%{name}-%{version}-root +#BuildArch: noarch + +%description +This Package adds a Java menu to the xdg menu structure. + +%prep + +%setup -c -n %{name} -D -T + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/16x16/mimetypes +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes + +#install -pm 644 %{S:0} \ +# %{buildroot}%{_datadir}/icons/hicolor/16x16/mimetypes/gnome-mime-text-x-java.png + +#install -pm 644 %{S:1} \ +# %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/gnome-mime-text-x-java.png + +convert -resize 16x16 %{S:2} \ + %{buildroot}%{_datadir}/icons/hicolor/16x16/mimetypes/java-icon.png + +install -pm 644 %{S:2} \ + %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/java-icon.png + +mkdir -p %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged + +cat > %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged/java.menu << EOF + + + Applications + + Settings + + Java + java.directory + + X-openmamba-Java + + + + +EOF + +mkdir -p %{buildroot}%{_datadir}/desktop-directories + +cat > %{buildroot}%{_datadir}/desktop-directories/java.directory << EOF +[Desktop Entry] +Name=Java configuration +Icon=%{_datadir}/icons/hicolor/48x48/mimetypes/java-icon.png +Type=Directory +EOF + + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post +touch --no-create %{_datadir}/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; +fi + +%preun +touch --no-create %{_datadir}/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; +fi + + +%files +%defattr(-,root,root) +%{_datadir}/desktop-directories/java.directory +%{_datadir}/icons/hicolor/*x*/mimetypes/*.png +%{_sysconfdir}/xdg/menus/applications-merged/java.menu + + +%changelog +* Fri Feb 05 2010 Silvan Calarco 0.1-2mamba +- rebuilt to remove executable requirements +- group fixed +- build as noarch + +* Wed Mar 18 2009 gil b52-1mamba +- first build \ No newline at end of file