avatar
Rosa has added c77373c0cb
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "meanwhile-1.0.2.tar.bz2": f5cb0db446334b98261c78238a5a6aa47a831a8d
view file @ c77373c0cb
... ... --- /dev/null
... ... +++ b/meanwhile-1.0.2-fix-str-fmt.patch
... ... @@ -0,0 +1,11 @@
1
--- src/mw_debug.c.str	2009-04-10 17:12:46.000000000 +0200
2
+++ src/mw_debug.c	2009-04-10 17:12:58.000000000 +0200
3
@@ -92,7 +92,7 @@
4
   }
5
   pretty_print(str, buf, len);
6
 
7
-  g_debug(str->str);
8
+  g_debug("%s",str->str);
9
   g_string_free(str, TRUE);
10
 }
11
 
view file @ c77373c0cb
... ... --- /dev/null
... ... +++ b/meanwhile-1.0.2-presence.patch
... ... @@ -0,0 +1,42 @@
1
# User Mikael Berthe <mikael.berthe@lilotux.net>
2
# Date 1194208892 -3600
3
Fix Awareness Snapshots with recent Sametime servers
4
5
With recent Sametime servers there seem to be 2 bytes
6
after the Snapshot Message Blocks.
7
This patch tries to use the end of block offset provided
8
by the server.
9
10
diff -r be8d8f1d3ebc src/common.c
11
--- a/src/common.c	Sun Nov 04 18:48:00 2007 +0100
12
+++ b/src/common.c	Tue Nov 06 11:46:26 2007 +0100
13
@@ -878,23 +878,24 @@ gboolean mwAwareIdBlock_equal(const stru
14
 /* 8.4.2.4 Snapshot */
15
 
16
 void mwAwareSnapshot_get(struct mwGetBuffer *b, struct mwAwareSnapshot *idb) {
17
-  guint32 junk;
18
-  char *empty = NULL;
19
+  guint32 end_of_block;
20
 
21
   g_return_if_fail(b != NULL);
22
   g_return_if_fail(idb != NULL);
23
 
24
-  guint32_get(b, &junk);
25
+  guint32_get(b, &end_of_block);
26
   mwAwareIdBlock_get(b, &idb->id);
27
   mwString_get(b, &idb->group);
28
   gboolean_get(b, &idb->online);
29
-
30
-  g_free(empty);
31
 
32
   if(idb->online) {
33
     mwString_get(b, &idb->alt_id);
34
     mwUserStatus_get(b, &idb->status);
35
     mwString_get(b, &idb->name);
36
+  }
37
+
38
+  if( b->ptr < b->buf + end_of_block ) {
39
+    mwGetBuffer_advance(b, b->buf + end_of_block - b->ptr);
40
   }
41
 }
42
 
view file @ c77373c0cb
... ... --- /dev/null
... ... +++ b/meanwhile.spec
... ... @@ -0,0 +1,190 @@
1
%define name   meanwhile 
2
%define version 1.0.2
3
%define release %mkrel 6
4
%define Summary  Lotus Sametime Community Client library
5
6
%define lib_name_orig lib%{name}
7
%define lib_major 1
8
%define lib_name %mklibname %{name} %{lib_major}
9
%define lib_devel %mklibname %{name} -d
10
11
Summary:        %Summary
12
Name:           %name
13
Version:        %version
14
Release:        %release
15
16
License:	LGPL
17
Group:		System/Libraries
18
URL:		http://meanwhile.sourceforge.net/
19
20
Source: 	http://kent.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
21
Patch0:		meanwhile-1.0.2-fix-str-fmt.patch
22
Patch1:		http://ie.archive.ubuntu.com/gentoo-portage/net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch
23
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
24
25
BuildRequires:	glib2-devel >= 2.2
26
BuildRequires:	doxygen
27
28
%description
29
The heart of the Meanwhile Project is the Meanwhile library, providing the
30
basic Lotus Sametime session functionality along with the core services;
31
Presence, Messaging, Conferencing, and Storage. This extensible client
32
interface allows additional services to be added to a session at runtime,
33
allowing for simple integration of future service handlers such as
34
whiteboard, screen-sharing, and file transfer.
35
36
%package -n %{lib_name}
37
Summary: Library used for Lotus Sametime connectivity
38
Group: Development/C
39
Provides: %{name} = %{version}-%{release}
40
41
%description -n %{lib_name}
42
The heart of the Meanwhile Project is the Meanwhile library, providing the
43
basic Lotus Sametime session functionality along with the core services;
44
Presence, Messaging, Conferencing, and Storage. This extensible client
45
interface allows additional services to be added to a session at runtime,
46
allowing for simple integration of future service handlers such as
47
whiteboard, screen-sharing, and file transfer.
48
49
%package -n %{lib_devel}
50
Summary: Header files and libraries for %{name}
51
Group: Development/C
52
Requires: %{lib_name} = %{version}
53
Provides: %{lib_name_orig}-devel = %{version}-%{release}
54
Provides: %{name}-devel = %{version}-%{release}
55
Provides: lib%{name}-devel = %{version}-%{release}
56
Obsoletes: %{_lib}%{name}1-devel
57
58
%description -n %{lib_devel}
59
This package contains the header files and static libraries for %{name}.
60
If you would like to develop programs using %{name}, you will need to
61
install %{name}-devel.
62
63
%package -n %{name}-doc
64
Summary: Documentation for the %{name} library
65
Group: Development/C
66
Obsoletes: %{_lib}%{name}1-doc
67
Provides: %{_lib}%{name}1-doc
68
69
%description -n %{name}-doc
70
Documentation for the %{name} library. 
71
72
%prep
73
%setup -q
74
%patch0 -p0
75
%patch1 -p1
76
77
%build
78
%configure2_5x
79
%make
80
81
%install
82
rm -rf %buildroot
83
%makeinstall_std
84
85
%clean
86
rm -rf %buildroot
87
88
%if %mdkversion < 200900
89
%post -n %{lib_name} -p /sbin/ldconfig
90
%endif
91
92
%if %mdkversion < 200900
93
%postun -n %{lib_name} -p /sbin/ldconfig
94
%endif
95
96
%files -n %{lib_name}
97
%defattr(-, root, root)
98
%doc AUTHORS ChangeLog COPYING INSTALL README TODO
99
%{_libdir}/libmeanwhile.so.%{lib_major}*
100
101
%files -n %{lib_devel}
102
%defattr(-, root, root)
103
%{_includedir}/meanwhile
104
%{_libdir}/libmeanwhile.a
105
%{_libdir}/libmeanwhile.la
106
%{_libdir}/libmeanwhile.so
107
%{_libdir}/pkgconfig/meanwhile.pc
108
109
%files -n %{name}-doc
110
%defattr(-,root,root)
111
%{_datadir}/doc/%{name}-doc-%{version}/
112
113
114
115
116
%changelog
117
* Wed May 04 2011 Oden Eriksson <oeriksson@mandriva.com> 1.0.2-6mdv2011.0
118
+ Revision: 666410
119
- mass rebuild
120
121
* Fri Dec 03 2010 Oden Eriksson <oeriksson@mandriva.com> 1.0.2-5mdv2011.0
122
+ Revision: 606635
123
- rebuild
124
125
* Fri Jan 15 2010 Emmanuel Andry <eandry@mandriva.org> 1.0.2-4mdv2010.1
126
+ Revision: 491835
127
- apply libraries policy
128
- add patch to fix presence bug with recent sametime servers
129
130
* Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 1.0.2-3mdv2010.0
131
+ Revision: 426083
132
- rebuild
133
134
* Fri Apr 10 2009 Funda Wang <fwang@mandriva.org> 1.0.2-2mdv2009.1
135
+ Revision: 365830
136
- fix str fmt
137
138
* Tue Jun 17 2008 Thierry Vignaud <tv@mandriva.org> 1.0.2-2mdv2009.0
139
+ Revision: 223228
140
- rebuild
141
142
  + Pixel <pixel@mandriva.com>
143
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
144
145
  + Olivier Blin <oblin@mandriva.com>
146
    - restore BuildRoot
147
148
* Mon Dec 17 2007 Thierry Vignaud <tv@mandriva.org> 1.0.2-1mdv2008.1
149
+ Revision: 129837
150
- kill re-definition of %%buildroot on Pixel's request
151
152
153
* Fri Feb 16 2007 Nicholas Brown <nickbrown@mandriva.org> 1.0.2-1mdv2007.0
154
+ Revision: 121706
155
- Import meanwhile
156
157
* Tue Jan 31 2006 Jerome Soyer <saispo@mandriva.org> 1.0.2-1mdk
158
- New release 1.0.2
159
160
* Thu Dec 15 2005 Nick Brown <nickbrown@mandriva.org> 1.0.0-2mdk
161
- Fix library version number
162
163
* Thu Dec 15 2005 Nick Brown <nickbrown@mandriva.org> 1.0.0-1mdk
164
- 1.0.0
165
166
* Tue Nov 22 2005 Nick Brown <nickbrown@mandriva.org> 0.5.0-1mdk
167
- 0.5.0
168
- Add doc sub package
169
170
* Fri Jun 03 2005 Nicolas Lcureuil <neoclust@mandriva.org> 0.4.2-1mdk
171
- 0.4.2
172
- %%mkrel 
173
- Make Rpmbuildupdate happy
174
175
* Wed May 11 2005 Nick Brown <nickbrown@mandriva.org> 0.4.1-1mdk
176
- 0.4.1
177
178
* Tue Mar 22 2005 Nick Brown <nickbrown@mandrake.org> 0.4.0-1mdk
179
- 0.4.0
180
181
* Wed Mar 09 2005 Nick Brown <nickbrown@mandrake.org> 0.4.0-0.cvs20050309.1mdk
182
- cvs version of 0.4.0
183
- rpmlint, fix summary
184
185
* Thu Nov 11 2004 Nick Brown <nickbrown@mandrake.org> 0.3-2mdk
186
- Rebuild with re-released 0.3 (bug fixes).
187
188
* Sat Aug 07 2004 Nick Brown <nickbrown@mandrake.org> 0.3-1mdk
189
- First Mandrakelinux release.
190

Comments