forked from BackupTheBerlios/sim-im
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asp-linux.spec
169 lines (130 loc) · 3.84 KB
/
asp-linux.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
%define subversion 1
%define date 20031105
%define is_release 1
%define desktop_file 1
%define gkrellm 0
Summary: SIM - Simple Instant Messenger
Name: sim
Version: 0.9.1
%if %{is_release}
Release: 1asp
%else
Release: 1.%{date}.1asp
%endif
License: GPL
Url: http://sim-im.berlios.de/
Group: Applications/Communications
%if %{is_release}
Source: sim-%{version}.tar.bz2
%else
Source: sim-%{date}.tar.bz2
%endif
BuildRoot: %{_tmppath}/sim-buildroot
BuildRequires: qt-devel kdelibs-devel arts-devel /usr/bin/dos2unix /usr/bin/perl
%if %{desktop_file}
BuildRequires: desktop-file-utils
%endif
%description
A simple ICQ client with v8 protocol support (2001) for X win system
(requires QT, can be build for KDE). It also runs under MS Windows.
%if %{gkrellm}
%package gkrellm
Summary: sim GKrellM2 plugin
Group: Applications/Communications
Requires: gkrellm >= 2.1.0
Requires: %{name} = %{version}-%{release}
%description gkrellm
sim GKrellM2 plugin
%endif
%prep
%if %{is_release}
%setup
%else
%setup -q -n sim
%endif
%build
make -f admin/Makefile.common
%if %{gkrellm}
%configure
%else
%configure --without-gkrellm_plugin
%endif
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install-strip DESTDIR=$RPM_BUILD_ROOT
# desktop file install
%if %{desktop_file}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
dos2unix $RPM_BUILD_ROOT%{_datadir}/applnk-redhat/Internet/sim.desktop
# perl -pi -e "s|sim.png|licq|g" $RPM_BUILD_ROOT%{_datadir}/applnk-redhat/Internet/sim.desktop
desktop-file-install --delete-original --vendor net \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--add-category X-Red-Hat-Base \
--add-category Network \
--add-category Application \
$RPM_BUILD_ROOT%{_datadir}/applnk-redhat/Internet/sim.desktop
%endif
%find_lang %{name}
# clean unused files
rm -rf %{buildroot}%{_libdir}/menu
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-, root, root, 755)
%doc AUTHORS COPYING README TODO INSTALL
%{_bindir}/sim
%{_libdir}/libsim*
%if %{desktop_file}
%{_datadir}/applications/net-sim.desktop
%else
%{_datadir}/applnk/Internet/sim.desktop
%endif
%dir %{_datadir}/apps/sim
%{_datadir}/apps/sim/COPYING
%dir %{_datadir}/apps/sim/plugins
%dir %{_datadir}/apps/sim/plugins/*
%dir %{_datadir}/apps/sim/pict
%{_datadir}/apps/sim/pict/*
%dir %{_datadir}/apps/sim/sounds
%{_datadir}/apps/sim/sounds/*
%{_datadir}/icons/*/*/*/*
%if %{gkrellm}
%files gkrellm
%{_libdir}/gkrellm2/plugins/*
%endif
%changelog
* Tue Nov 11 2005 Leonid Kanter <[email protected]> 0.9.1-1asp
- 0.9.1
* Wed Nov 05 2005 Leonid Kanter <[email protected]>
- Post-release 20031105 (should fix login problem after icq servers update)
* Wed Oct 21 2003 Leonid Kanter <[email protected]>
- 20031021
* Wed Sep 24 2003 Leonid Kanter <[email protected]>
- 20030924
* Wed Sep 17 2003 Leonid Kanter <[email protected]>
- 20030917
* Tue Aug 26 2003 Leonid Kanter <[email protected]>
- update to 20030826
* Mon Jul 28 2003 Leonid Kanter <[email protected]> 0.9-cvs
- update to current 0.9 state
* Sat Apr 26 2003 Leonid Kanter <[email protected]> 0.8.2-1asp
- 0.8.2 release
* Wed Apr 23 2003 Leonid Kanter <[email protected]>
- build gkrellm2 plugin as separate package
* Mon Mar 03 2003 Leonid Kanter <[email protected]>
- cvs snapshot 20030303, more improvements in spec
* Wed Feb 12 2003 Leonid Kanter <[email protected]>
- new cvs snapshot, use desktop-file-utils
* Tue Dec 17 2002 Leon Kanter <[email protected]>
- Universal spec, included missed simctrl
* Tue Dec 17 2002 Leon Kanter <[email protected]>
- 0.8.1
* Wed Oct 23 2002 Leon Kanter <[email protected]>
- Apply fontsize patch from cvs
* Tue Oct 22 2002 Leon Kanter <[email protected]>
- Built official release for asp7.3
* Tue Sep 24 2002 Leon Kanter <[email protected]>
- this cvs snapshot should fix font-related problems
* Wed Sep 11 2002 Leon Kanter <[email protected]>
- Spec cleanup, built for asplinux%{_bindir}/sim