Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release-src > by-pkgid > bba35b060a45e9546c8dbb58f39cf22f > files > 3

sunclock-3.56-3mdv2010.1.src.rpm

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

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
Patch0: sunclock-3.56-fix-str-fmt.patch
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
%setup -q
%patch0 -p0

%build
xmkmf
%make CDEBUGFLAGS="%{optflags}" CXXDEBUGFLAGS="%{optflags}"

%install
make install DESTDIR=$RPM_BUILD_ROOT%{_prefix} BINDIR=/bin MANDIR=/share/man/man1
make install.man DESTDIR=$RPM_BUILD_ROOT%{_prefix} BINDIR=/bin MANDIR=/share/man/man1
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

%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
%{_bindir}/sunclock
%{_mandir}/man1/*
%{_datadir}/icons/sunclock2.xpm
%{_datadir}/applications/mandriva-*.desktop


%changelog
* Sun Jan 24 2010 Funda Wang <fwang@mandriva.org> 3.56-3mdv2010.1
+ Revision: 495378
- fix str fmt
- use standard file location

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild

* 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 <fwang@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