rebuilt to remove executable requirements
group fixed build as noarch [release 0.1-2mamba;Fri Feb 05 2010]
This commit is contained in:
parent
0b41cb5eef
commit
86ee6d3d98
@ -1,2 +1,4 @@
|
||||
# menu-java
|
||||
|
||||
This Package adds a Java menu to the xdg menu structure.
|
||||
|
||||
|
BIN
gnome-mime-text-x-java_16.png
Normal file
BIN
gnome-mime-text-x-java_16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 783 B |
BIN
gnome-mime-text-x-java_48.png
Normal file
BIN
gnome-mime-text-x-java_48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
BIN
java-icon.png
Normal file
BIN
java-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
109
menu-java.spec
Normal file
109
menu-java.spec
Normal file
@ -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 <silvan.calarco@mambasoft.it>
|
||||
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
|
||||
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
|
||||
<Menu>
|
||||
<Name>Applications</Name>
|
||||
<Menu>
|
||||
<Name>Settings</Name>
|
||||
<Menu>
|
||||
<Name>Java</Name>
|
||||
<Directory>java.directory</Directory>
|
||||
<Include>
|
||||
<Category>X-openmamba-Java</Category>
|
||||
</Include>
|
||||
</Menu>
|
||||
</Menu>
|
||||
</Menu>
|
||||
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 <silvan.calarco@mambasoft.it> 0.1-2mamba
|
||||
- rebuilt to remove executable requirements
|
||||
- group fixed
|
||||
- build as noarch
|
||||
|
||||
* Wed Mar 18 2009 gil <puntogil@libero.it> b52-1mamba
|
||||
- first build
|
Loading…
Reference in New Issue
Block a user