avatar
Rosa has added b7e8660ad4
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "libical-0.46.tar.gz": a2a9cad21e0c336246100eef8d079cbaff50a6f3
view file @ b7e8660ad4
... ... --- /dev/null
... ... +++ b/libical-0.43-format-security.patch
... ... @@ -0,0 +1,12 @@
1
diff -p -up libical-0.43/examples/access_properties_and_parameters.c.format-security libical-0.43/examples/access_properties_and_parameters.c
2
--- libical-0.43/examples/access_properties_and_parameters.c.format-security	2009-01-15 14:33:10.000000000 +0100
3
+++ libical-0.43/examples/access_properties_and_parameters.c	2009-01-15 14:33:34.000000000 +0100
4
@@ -44,7 +44,7 @@ void get_required_attendees(icalcomponen
5
 	    /* Remember, the caller does not own this string, so you
6
                should strdup it if you want to change it. */
7
 	    const char *attendee = icalproperty_get_attendee(p);
8
-	    printf(attendee);
9
+	    printf("%s", attendee);
10
 	}
11
     }
12
 
... ... --- /dev/null
... ... +++ b/libical.spec
... ... @@ -0,0 +1,196 @@
1
Name: libical
2
Version: 0.46
3
Release: %mkrel 2
4
Summary: An implementation of basic iCAL protocols
5
License: LGPLv2+
6
Group: System/Libraries
7
Url: http://sourceforge.net/projects/freeassociation/
8
Source0: http://downloads.sourceforge.net/freeassociation/%{name}-%{version}.tar.gz
9
# (fc) 0.43-1mdv fix format security error
10
Patch0:	libical-0.43-format-security.patch
11
BuildRequires: db-devel
12
BuildRequires: flex
13
BuildRequires: bison
14
Buildrequires: cmake
15
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
16
17
%description
18
Libical is an Open Source implementation of the IETF's iCalendar
19
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
20
It parses iCal components and provides a C API for manipulating
21
the component properties, parameters, and subcomponents.
22
23
#------------------------------------------------------
24
25
%define major 0
26
%define libname %mklibname ical %{major}
27
28
%package -n %{libname}
29
Summary: Files for developing applications that use libical
30
Group: System/Libraries
31
32
%description -n %{libname}
33
Libical is an Open Source implementation of the IETF's iCalendar
34
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
35
It parses iCal components and provides a C API for manipulating
36
the component properties, parameters, and subcomponents.
37
38
%files -n %{libname}
39
%{_libdir}/*ical.so.%{major}*
40
41
#------------------------------------------------------
42
43
%define major 0
44
%define libnamess %mklibname icalss %{major}
45
46
%package -n %{libnamess}
47
Summary: Files for developing applications that use libical
48
Group: System/Libraries
49
50
%description -n %{libnamess}
51
Libical is an Open Source implementation of the IETF's iCalendar
52
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
53
It parses iCal components and provides a C API for manipulating
54
the component properties, parameters, and subcomponents.
55
56
%files -n %{libnamess}
57
%{_libdir}/*icalss.so.%{major}*
58
59
#------------------------------------------------------
60
61
%define major 0
62
%define libnamevcal %mklibname icalvcal %{major}
63
64
%package -n %{libnamevcal}
65
Summary: Files for developing applications that use libical
66
Group: System/Libraries
67
68
%description -n %{libnamevcal}
69
Libical is an Open Source implementation of the IETF's iCalendar
70
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
71
It parses iCal components and provides a C API for manipulating
72
the component properties, parameters, and subcomponents.
73
74
%files -n %{libnamevcal}
75
%{_libdir}/*vcal.so.%{major}*
76
77
#------------------------------------------------------
78
79
%define develname %mklibname ical -d
80
81
%package -n %{develname}
82
Summary:	Files for developing applications that use libical
83
Group:		Development/C
84
Provides:	%{name}-devel = %{version}-%{release}
85
Requires:	%{libname} = %{version}-%{release}
86
Requires:	%{libnamess} = %{version}-%{release}
87
Requires:	%{libnamevcal} = %{version}-%{release}
88
Obsoletes:	%mklibname ical 0 -d
89
90
%description -n %{develname}
91
The header files and libtool library for
92
developing applications that use libical.
93
94
#------------------------------------------------------
95
96
%prep
97
%setup -q
98
%patch0 -p1 -b .format-security
99
100
%build
101
%cmake -DICAL_ERRORS_ARE_FATAL=false
102
103
# Not ready for nproc
104
make
105
106
%install
107
rm -fr %buildroot
108
%makeinstall_std -C build
109
110
%if %mdkversion < 200900
111
%post -n %{libname} -p /sbin/ldconfig
112
%endif
113
114
%if %mdkversion < 200900
115
%postun -n %{libname} -p /sbin/ldconfig
116
%endif
117
118
%files -n %{develname}
119
%doc README TODO ChangeLog NEWS TEST THANKS
120
%doc doc/UsingLibical*
121
%{_includedir}/*
122
%{_libdir}/*.a
123
%{_libdir}/*.so
124
%{_libdir}/pkgconfig/*
125
126
127
%changelog
128
* Fri Apr 29 2011 Funda Wang <fwang@mandriva.org> 0.46-2mdv2011.0
129
+ Revision: 660621
130
- br db
131
132
  + Oden Eriksson <oeriksson@mandriva.com>
133
    - mass rebuild
134
135
* Sat Sep 18 2010 Tomasz Pawel Gajc <tpg@mandriva.org> 0.46-1mdv2011.0
136
+ Revision: 579724
137
- update to new version 0.46
138
139
* Mon Jan 04 2010 Emmanuel Andry <eandry@mandriva.org> 0.44-1mdv2010.1
140
+ Revision: 486241
141
- New version 0.44
142
143
* Wed Sep 02 2009 Christophe Fergeau <cfergeau@mandriva.com> 0.43-3mdv2010.0
144
+ Revision: 425565
145
- rebuild
146
147
* Wed Feb 18 2009 Götz Waschk <waschk@mandriva.org> 0.43-2mdv2009.1
148
+ Revision: 342342
149
- disable fatal errors for e-d-s
150
151
* Thu Jan 15 2009 Frederic Crozat <fcrozat@mandriva.com> 0.43-1mdv2009.1
152
+ Revision: 329792
153
- Release 0.43
154
- Patch0: fix format security error
155
156
* Mon Nov 03 2008 Helio Chissini de Castro <helio@mandriva.com> 0.41-1mdv2009.1
157
+ Revision: 299524
158
- Update ical to current version, now finally cmake based
159
160
  + Tomasz Pawel Gajc <tpg@mandriva.org>
161
    - update to new version 0.33
162
163
* Fri Aug 08 2008 Thierry Vignaud <tv@mandriva.org> 0.31-2mdv2009.0
164
+ Revision: 267817
165
- rebuild early 2009.0 package (before pixel changes)
166
167
  + Pixel <pixel@mandriva.com>
168
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
169
170
* Thu Apr 17 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 0.31-1mdv2009.0
171
+ Revision: 195308
172
- add missing buildrequires on bison
173
- new version
174
175
* Sun Feb 03 2008 Funda Wang <fwang@mandriva.org> 0.30-1mdv2008.1
176
+ Revision: 161695
177
- Br flex
178
- New version 0.30
179
180
  + Olivier Blin <oblin@mandriva.com>
181
    - restore BuildRoot
182
183
  + Thierry Vignaud <tv@mandriva.org>
184
    - kill re-definition of %%buildroot on Pixel's request
185
186
* Tue Nov 20 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 0.27-3mdv2008.1
187
+ Revision: 110798
188
- obsolete really ancient libical devel package (with mdk tag ;)
189
- SILENt this is not needed also
190
191
* Tue Nov 20 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 0.27-2mdv2008.1
192
+ Revision: 110618
193
- add more explicit provides on devel package
194
- import libical
195
196

Comments