d6f97d9
Name:           astronomy-menus
d6f97d9
Version:        1.0
d6f97d9
Release:        2%{?dist}
d6f97d9
Summary:        Astronomy menu for the Desktop
d6f97d9
Group:          User Interface/Desktops
d6f97d9
License:        Public Domain
d6f97d9
URL:            http://fedoraproject.org/wiki/SIGs/Astronomy
d6f97d9
# git clone git://git.fedorahosted.org/git/astronomy.git
d6f97d9
# make -C astronomy/projects/astronomy-menus dist
d6f97d9
Source0:        %{name}-%{version}.tar.gz
d6f97d9
d6f97d9
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d6f97d9
BuildArch:      noarch
d6f97d9
Requires:       redhat-menus hicolor-icon-theme
d6f97d9
BuildRequires:  m4 tidy
d6f97d9
d6f97d9
%description
d6f97d9
Astronomy submenu for the Education menu, for better usability of the
d6f97d9
Fedora Astronomy packages.
d6f97d9
d6f97d9
d6f97d9
%package toplevel
d6f97d9
Summary:        Toplevel astronomy menu for the Desktop
d6f97d9
Group:          User Interface/Desktops
d6f97d9
d6f97d9
%description toplevel
d6f97d9
Astronomy submenu for the Education menu, for better usability of the
d6f97d9
Fedora Astronomy packages.
d6f97d9
d6f97d9
This package places the submenu at the Application menu root, which
d6f97d9
may make sense if there are no other Education packages, such as in
d6f97d9
Fedora Astronomy Live Media Spin.
d6f97d9
d6f97d9
d6f97d9
%prep
d6f97d9
%setup -q
d6f97d9
d6f97d9
d6f97d9
%build
d6f97d9
make %{_smp_mflags}
d6f97d9
d6f97d9
d6f97d9
%install
d6f97d9
rm -rf $RPM_BUILD_ROOT
d6f97d9
make install DESTDIR=$RPM_BUILD_ROOT
d6f97d9
d6f97d9
d6f97d9
%check
d6f97d9
make test
d6f97d9
d6f97d9
d6f97d9
%clean
d6f97d9
rm -rf $RPM_BUILD_ROOT
d6f97d9
d6f97d9
d6f97d9
%post
d6f97d9
touch --no-create %{_datadir}/icons/hicolor || :
d6f97d9
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
d6f97d9
        %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
d6f97d9
fi
d6f97d9
d6f97d9
d6f97d9
%postun
d6f97d9
touch --no-create %{_datadir}/icons/hicolor || :
d6f97d9
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
d6f97d9
        %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
d6f97d9
fi
d6f97d9
d6f97d9
d6f97d9
%post toplevel
d6f97d9
touch --no-create %{_datadir}/icons/hicolor || :
d6f97d9
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
d6f97d9
        %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
d6f97d9
fi
d6f97d9
d6f97d9
d6f97d9
%postun toplevel
d6f97d9
touch --no-create %{_datadir}/icons/hicolor || :
d6f97d9
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
d6f97d9
        %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
d6f97d9
fi
d6f97d9
d6f97d9
d6f97d9
%files
d6f97d9
%defattr(-,root,root,-)
d6f97d9
%config(noreplace) %{_sysconfdir}/xdg/menus/applications-merged/astronomy.menu
d6f97d9
%{_datadir}/desktop-directories/Astronomy.directory
d6f97d9
%{_datadir}/icons/hicolor/scalable/devices/dome.svg
d6f97d9
%doc README
d6f97d9
d6f97d9
d6f97d9
%files toplevel
d6f97d9
%defattr(-,root,root,-)
d6f97d9
%config(noreplace) %{_sysconfdir}/xdg/menus/applications-merged/astronomy-toplevel.menu
d6f97d9
%{_datadir}/desktop-directories/Astronomy.directory
d6f97d9
%{_datadir}/icons/hicolor/scalable/devices/dome.svg
d6f97d9
%doc README
d6f97d9
d6f97d9
d6f97d9
%changelog
d6f97d9
* Tue Mar 25 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 1.0-2
d6f97d9
- Fix BRs and call scriptlets for the subpackage as well (Marek Mahut)
d6f97d9
d6f97d9
* Tue Mar 24 2009 Lubomir Rintel (Fedora Astronomy) <lkundrak@v3.sk> - 1.0-1
d6f97d9
- Initial packaging