-
Notifications
You must be signed in to change notification settings - Fork 0
/
sunclock.spec
109 lines (86 loc) · 3.04 KB
/
sunclock.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
%define name sunclock
%define version 3.55
%define release %mkrel 1
Summary: The sophisticated clock for the X Window system
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: Sciences/Astronomy
Source: ftp://ftp.ac-grenoble.fr/ge/geosciences/%{name}-%{version}.tar.bz2
URL: http://freshmeat.net/projects/sunclock/
BuildRoot: %{_tmppath}/%{name}-buildroot
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}
if [ -f $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man1/sunclock.1x ]; then
find $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man1/sunclock.1x -type f -exec bzip2 -9f {} \;
fi
mkdir -p $RPM_BUILD_ROOT/usr/share/icons
install wm_icons/sunclock2.xpm -m 644 $RPM_BUILD_ROOT/usr/share/icons/sunclock2.xpm
install -d $RPM_BUILD_ROOT%{_menudir}
cat <<EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): \
needs="X11" \
section="Amusement/Toys" \
title="Sunclock" \
longtitle="Sophisticated clock for the X Window system" \
command="%{name}" \
icon="toys_section.png"
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/.
%post
%update_menus
%postun
%clean_menus
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc CHANGES coordinates.txt COPYING INSTALL README TODO VMF.txt
%{_datadir}/sunclock/Sunclockrc
%{_datadir}/sunclock/earthmaps/vmf/*
%{_datadir}/sunclock/i18n/*
%{_datadir}/editkit/README
%{_datadir}/editkit/emxrc
%{_datadir}/editkit/rc.common
%{_prefix}/X11R6/bin/emx
%{_prefix}/X11R6/bin/sunclock
%{_prefix}/X11R6/man/man1/sunclock.1*
%{_prefix}/X11R6/man/man1/emx.1x
%{_prefix}/X11R6/lib/X11/doc/html/*
%{_datadir}/icons/sunclock2.xpm
%_menudir/*
%changelog
* Thu Aug 18 2005 Nicolas Lécureuil <[email protected]> 3.54.1-2mdk
- Add Conflict
* Wed Aug 17 2005 Nicolas Lécureuil <[email protected]> 3.54.1-1mdk
- New release 3.54.1
* Thu Feb 03 2005 Lenny Cartier <[email protected]> 3.53-1mdk
- 3.53
* Mon Oct 11 2004 Lenny Cartier <[email protected]> 3.52-1mdk
- 3.52
* Wed Sep 22 2004 Lenny Cartier <[email protected]> 3.51-1mdk
- new
* Tue Aug 30 2001 Francois Massonneau <[email protected]>
- Add files needed for K Menu entries
* Tue Aug 14 2001 Francois Massonneau <[email protected]>
- Change the spec file to match the 3.5x serie
* Tue Jun 26 2001 Francois Massonneau <[email protected]>
- Add the Sunclock icon during the install
* Tue Mar 06 2001 Francois Massonneau <[email protected]>
- First spec file