avatar
Rosa has added 21e0028cf7
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "taglib-1.6.3.tar.gz": ee54f10c63f236ef1c29c82e39c227a75a7e3785
view file @ 21e0028cf7
... ... --- /dev/null
... ... +++ b/taglib-1.4_wchar.diff
... ... @@ -0,0 +1,31 @@
1
diff -ruN taglib-1.4.org/taglib/toolkit/tstring.cpp taglib-1.4/taglib/toolkit/tstring.cpp
2
--- taglib-1.4.org/taglib/toolkit/tstring.cpp	2005-07-26 06:31:15.000000000 +0900
3
+++ taglib-1.4/taglib/toolkit/tstring.cpp	2006-05-26 12:02:55.000000000 +0900
4
@@ -202,12 +202,22 @@
5
   s.resize(d->data.size());
6
 
7
   if(!unicode) {
8
-    std::string::iterator targetIt = s.begin();
9
-    for(wstring::const_iterator it = d->data.begin(); it != d->data.end(); it++) {
10
-      *targetIt = char(*it);
11
-      ++targetIt;
12
+    bool cjk = false;
13
+    //pre-scan: is there any cjk unicode character? if so, convert the string into utf-8.
14
+    for(unsigned int i=0; i< d->data.size(); i++){
15
+      if(d->data[i] > 0xff){
16
+        cjk = true;
17
+        break;
18
+      }
19
+    }
20
+    if(!cjk){
21
+      std::string::iterator targetIt = s.begin();
22
+      for(wstring::const_iterator it = d->data.begin(); it != d->data.end(); it++) {
23
+        *targetIt = char(*it);
24
+        ++targetIt;
25
+      }
26
+      return s;
27
     }
28
-    return s;
29
   }
30
 
31
   const int outputBufferSize = d->data.size() * 3 + 1;
... ... --- /dev/null
... ... +++ b/taglib.spec
... ... @@ -0,0 +1,256 @@
1
%define major 1
2
%define minor 0
3
%define libname %mklibname %{name} %{major}
4
%define develname %mklibname %{name} -d
5
%define libnametagc %mklibname %{name}_c %{minor}
6
%define libold %mklibname %{name} 0
7
%define libolddev %mklibname %{name} 0 -d
8
9
Summary:	Library for reading and editing audio meta data
10
Name:		taglib
11
Version:	1.6.3
12
Release:	%mkrel 2
13
License:	LGPLv2+
14
Group:		File tools
15
URL:		http://developer.kde.org/~wheeler/taglib.html
16
Source:		http://developer.kde.org/~wheeler/files/src/%{name}-%{version}.tar.gz
17
#(tpg) http://foetida.jaist.ac.jp:37565/~yaz/diary/2006/07/taglib-1.4_wchar.diff
18
Patch0:		taglib-1.4_wchar.diff
19
Conflicts:	taglib <= 0.96-1mdk
20
BuildRequires:	zlib-devel
21
BuildRequires:	cppunit-devel
22
BuildRequires:	kde4-macros
23
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
24
25
%description
26
TagLib, is well, a library for reading and editing audio meta data, 
27
commonly know as tags.
28
Some goals of TagLib:
29
A clean, high level, C++ API to handling audio meta data.
30
Support for at least ID3v1, ID3v2 and Ogg Vorbis comments.
31
A generic, simple API for the most common tagging related functions.
32
Binary compatibility between minor releases using the standard KDE/Qt 
33
techniques for C++ binary compatibility.
34
Make the tagging framework extensible by library users; i.e. it will be 
35
possible for libarary users to implement additional ID3v2 frames, 
36
without modifying the TagLib source.
37
Because TagLib desires to be toolkit agnostic, in hope of being widely 
38
adopted and the most flexible in licensing TagLib provides many of its 
39
own toolkit classes; in fact the only external dependency that TagLib has, 
40
it a semi-sane STL implementation.
41
42
#---------------------------------------------------------------------
43
44
%package -n %{libname}
45
Group:		System/Libraries
46
Summary:	Library for reading and editing audio meta data
47
Conflicts:	taglib <= 0.96-1mdk
48
Obsoletes:	%{libold} < 1.5.0
49
Obsoletes:	taglib < 1.5.0
50
51
%description -n %{libname}
52
Main taglib library.
53
54
55
%files -n %{libname}
56
%defattr(-,root,root)
57
%{_libdir}/libtag.so.%{major}*
58
59
#---------------------------------------------------------------------
60
61
%package -n %{libnametagc}
62
Group:		System/Libraries
63
Summary:	A C bindings for taglib library
64
Conflicts:	taglib <= 0.96-1mdk
65
Conflicts:	%{libold} < 1.5.0
66
Obsoletes:	taglib < 1.5.0
67
68
%description	-n %{libnametagc}
69
TagLib, is well, a library for reading and editing audio meta data.
70
71
%files -n %{libnametagc}
72
%defattr(-,root,root)
73
%{_libdir}/libtag_c.so.%{minor}*
74
75
#---------------------------------------------------------------------
76
77
%package -n %{develname}
78
Group:		Development/C
79
Summary:	Headers and static lib for taglib development
80
Requires:	%{libname} = %{version}-%{release}
81
Requires:	%{libnametagc} = %{version}-%{release}
82
Provides:	%{name}-devel = %{version}-%{release}
83
Provides:	lib%{name}-devel = %{version}-%{release}
84
Conflicts:	taglib <= 0.96-1mdk
85
Obsoletes:	%{libolddev}
86
87
%description -n %{develname}
88
Install this package if you want do compile applications i
89
using the libtag library.
90
91
%files -n %{develname}
92
%defattr(-,root,root)
93
%{_bindir}/taglib-config
94
%{_libdir}/*.so
95
%{_libdir}/pkgconfig/*
96
%{_includedir}/*
97
%{multiarch_bindir}/taglib-config
98
99
#---------------------------------------------------------------------
100
101
%prep
102
%setup -q 
103
%patch0 -p1
104
105
%build
106
%cmake_kde4 -DWITH_ASF=ON -DWITH_MP4=ON
107
%make
108
109
%install
110
rm -rf %{buildroot}
111
%makeinstall_std -C build
112
113
%multiarch_binaries %{buildroot}%{_bindir}/taglib-config
114
115
%clean
116
rm -rf %{buildroot}
117
118
119
%changelog
120
* Mon May 02 2011 Oden Eriksson <oeriksson@mandriva.com> 1.6.3-2mdv2011.0
121
+ Revision: 661752
122
- multiarch fixes
123
124
* Fri Oct 01 2010 Funda Wang <fwang@mandriva.org> 1.6.3-1mdv2011.0
125
+ Revision: 582221
126
- update to new version 1.6.3
127
128
* Sat Apr 10 2010 Funda Wang <fwang@mandriva.org> 1.6.2-1mdv2010.1
129
+ Revision: 533551
130
- new version 1.6.2
131
132
* Sat Mar 13 2010 Funda Wang <fwang@mandriva.org> 1.6.1-1mdv2010.1
133
+ Revision: 518719
134
- BR kde4-macros
135
- update url
136
137
  + Emmanuel Andry <eandry@mandriva.org>
138
    - New version 1.6.1
139
140
  + Nicolas Lécureuil <nlecureuil@mandriva.com>
141
    - Use CMake to build
142
      Fix file list
143
      Remove old macros
144
145
* Fri Sep 18 2009 Nicolas Lécureuil <nlecureuil@mandriva.com> 1.6-3mdv2010.0
146
+ Revision: 444460
147
- Rebuild
148
- enable asf and mp4 support ( needed for amarok)
149
150
* Tue Sep 15 2009 Frederik Himpe <fhimpe@mandriva.org> 1.6-1mdv2010.0
151
+ Revision: 443191
152
- Update to new version 1.6
153
- Remove gcc 4.3 tests patch: not needed anymore
154
155
* Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 1.5-6mdv2010.0
156
+ Revision: 427224
157
- rebuild
158
159
* Mon Aug 18 2008 Emmanuel Andry <eandry@mandriva.org> 1.5-5mdv2009.0
160
+ Revision: 273257
161
- add P1 from gentoo to pass check with gcc4.3
162
163
  + Thierry Vignaud <tv@mandriva.org>
164
    - rebuild
165
166
  + Pixel <pixel@mandriva.com>
167
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
168
169
* Tue Mar 11 2008 Götz Waschk <waschk@mandriva.org> 1.5-4mdv2008.1
170
+ Revision: 185173
171
- rebuild for missing package
172
173
* Mon Feb 25 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.5-3mdv2008.1
174
+ Revision: 175106
175
- enable checks
176
- add cppunit-devel as a buildrequires, used by checks
177
- link with -ldl
178
179
* Mon Feb 25 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.5-2mdv2008.1
180
+ Revision: 174957
181
- new license policy
182
- add missing buildrequires on zlib-devel
183
- Patch0: convert cjk chars into utf8
184
- add explicit provides on libtaglib-devel
185
- use standard macros and defines
186
- make use of %%major in file list
187
188
* Thu Feb 21 2008 Helio Chissini de Castro <helio@mandriva.com> 1.5-1mdv2008.1
189
+ Revision: 173556
190
- New final upstream release 1.5
191
192
  + Thierry Vignaud <tv@mandriva.org>
193
    - fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake
194
195
* Thu Feb 14 2008 Helio Chissini de Castro <helio@mandriva.com> 1.5-0.rc1.2mdv2008.1
196
+ Revision: 168652
197
- Obsolete taglib package, as they have no files inside, just a wrong explicit requires
198
199
* Wed Feb 13 2008 Helio Chissini de Castro <helio@mandriva.com> 1.5-0.rc1.1mdv2008.1
200
+ Revision: 167117
201
- Release Candidate 1 of new Taglib. Major bugfixes, but keeps ABI and API compatible.
202
203
  + Olivier Blin <oblin@mandriva.com>
204
    - restore BuildRoot
205
206
  + Thierry Vignaud <tv@mandriva.org>
207
    - kill re-definition of %%buildroot on Pixel's request
208
209
* Mon May 28 2007 Nicolas Lécureuil <nlecureuil@mandriva.com> 1.4-3mdv2008.0
210
+ Revision: 31990
211
- Add Patch2 (close bug #30620)
212
213
214
* Tue Apr 03 2007 Laurent Montel <lmontel@mandriva.com> 1.4-3mdv2007.1
215
+ Revision: 150241
216
- Fix mem leak
217
218
* Wed Dec 13 2006 Götz Waschk <waschk@mandriva.org> 1.4-2mdv2007.1
219
+ Revision: 96488
220
- Import taglib
221
222
* Wed Dec 13 2006 Götz Waschk <waschk@mandriva.org> 1.4-2mdv2007.1
223
- use the right configure macro
224
225
* Thu Jul 28 2005 Laurent MONTEL <lmontel@mandriva.com> 1.4-1mdk
226
- 1.4
227
228
* Wed Jan 26 2005 Laurent MONTEL <lmontel@mandrakesoft.com> 1.3.1-3mdk
229
- Add for multiarch
230
231
* Fri Jan 14 2005 Laurent MONTEL <lmontel@mandrakesoft.com> 1.3.1-2mdk
232
- Add patch1: fix kde bug #96926
233
234
* Mon Nov 08 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 1.3.1-1mdk
235
- 1.3.1
236
237
* Sat Oct 02 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 1.3-1mdk
238
- 1.3
239
240
* Wed Sep 29 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.2-2mdk
241
- merge lost changes from amd64-branch:
242
  * mklibnamification fixes
243
244
* Thu Jul 29 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 1.2-1mdk
245
- 1.2
246
- Desactivate doc
247
248
* Tue Jul 27 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 1.1-3mdk
249
- Compile doc
250
251
* Fri Jun 04 2004 Montel Laurent <lmontel@mandrakesoft.com> 1.1-2mdk
252
- Rebuild with new gcc
253
254
* Tue Apr 06 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 1.1-1mdk
255
- 1.1
256

Comments