Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 5b69fbde9afa60eb39367416406c8843 > files > 2

sunclock-3.56-2mdv2009.0.src.rpm

%define name sunclock
%define version 3.56
%define release %mkrel 2

Summary: The sophisticated clock for the X Window system
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: Sciences/Astronomy
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Source: ftp://ftp.ac-grenoble.fr/ge/geosciences/%{name}-%{version}.tar.bz2
URL: http://freshmeat.net/projects/sunclock/
BuildRequires: imake X11-devel jpeg-devel png-devel
Conflicts:   xrmap

%description
Sunclock displays a map of the Earth and shows which portion is illuminated
by the sun. It can commute between two states, the "clock window" and
the "map window". The clock window displays a small map of the Earth
and therefore occupies little space on the screen, while the "map window" 
displays a large map and offers more advanced functions. 

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%build
xmkmf
%make CDEBUGFLAGS="$RPM_OPT_FLAGS" CXXDEBUGFLAGS="$RPM_OPT_FLAGS"

# %install
make install DESTDIR=$RPM_BUILD_ROOT%{_prefix}
make install.man DESTDIR=$RPM_BUILD_ROOT%{_prefix}
mkdir -p $RPM_BUILD_ROOT/usr/share/icons
install wm_icons/sunclock2.xpm -m 644 $RPM_BUILD_ROOT/usr/share/icons/sunclock2.xpm

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Categories=Amusement;
Name=Sunclock
Comment=Sophisticated clock for the X Window system
Exec=%{name}
Icon=toys_section
EOF

mkdir -p $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/doc/html/
#mv $RPM_BUILD_ROOT%{_prefix}/usr/X11R6/lib/X11/doc/html/* $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/doc/html/.

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755)
%doc CHANGES coordinates.txt COPYING INSTALL README TODO VMF.txt
%{_datadir}/%name
%{_prefix}/X11R6/bin/sunclock
%{_prefix}/X11R6/man/man1/*
%{_datadir}/icons/sunclock2.xpm
%{_datadir}/applications/mandriva-*.desktop


%changelog
* Fri Aug 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 3.56-2mdv2009.0
+ Revision: 269395
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Sat May 17 2008 Funda Wang <fundawang@mandriva.org> 3.56-1mdv2009.0
+ Revision: 208511
- New version 3.56

  + Thierry Vignaud <tvignaud@mandriva.com>
    - fix no-buildroot-tag
    - auto convert menu to XDG
    - do not reinvent spec-helper
    - BR png-devel
    - BR jpeg-devel
    - BR X11-devel
    - BR imake
    - kill re-definition of %%buildroot on Pixel's request
    - import sunclock


* Thu Aug 18 2005 Nicolas Lécureuil <neoclust@mandriva.org> 3.54.1-2mdk
- Add Conflict

* Wed Aug 17 2005 Nicolas Lécureuil <neoclust@mandriva.org> 3.54.1-1mdk
- New release 3.54.1

* Thu Feb 03 2005 Lenny Cartier <lenny@mandrakesoft.com> 3.53-1mdk
- 3.53

* Mon Oct 11 2004 Lenny Cartier <lenny@mandrakesoft.com> 3.52-1mdk
- 3.52

* Wed Sep 22 2004 Lenny Cartier <lenny@mandrakesoft.com> 3.51-1mdk
- new

* Tue Aug 30 2001 Francois Massonneau <frmas@free.fr>
- Add files needed for K Menu entries

* Tue Aug 14 2001 Francois Massonneau <frmas@free.fr>
- Change the spec file to match the 3.5x serie

* Tue Jun 26 2001 Francois Massonneau <frmas@free.fr>
- Add the Sunclock icon during the install

* Tue Mar 06 2001 Francois Massonneau <frmas@free.fr>
- First spec file