Logoj0ke.net Open Build Service > Projects > multimedia > libgpod > Changes
Sign Up | Log In

Changes of Revision 2

[-] Changed libgpod.spec
x
 
1
@@ -1,35 +1,42 @@
2
 # norootforbuild
3
 
4
-%define soname     2
5
+%define soname     3
6
+%define pkg_version_3  0.6.0
7
+%define pkg_version_2  0.5.2
8
 %define pkg_version_1  0.4.2
9
 %define pkg_version_0  0.4.0
10
+%define pkg_version_latest %{pkg_version_3}
11
 
12
+%define build_so_2 1
13
+#
14
+# Only build .so.1 and .so.0 libraries on openSUSE versions below 10.3,
15
+# as 10.3 ships .so.2 and not older ones:
16
+#
17
 %if %suse_version < 1030
18
 %define build_so_1 1
19
 %define build_so_0 1
20
+%else
21
+%define build_so_1 0
22
+%define build_so_0 0
23
 %endif
24
 
25
-%if %suse_version >= 1030
26
 Name:      libgpod%{soname}
27
-%else
28
-Name:      libgpod
29
-%endif
30
 Summary:   Shared Library to access the Contents of an iPod
31
 License:   GNU Library General Public License version 2 or later (LGPL 2)
32
 Group:     System/Libraries
33
 URL:       http://gtkpod.sourceforge.net/
34
-Version:   0.5.2
35
-Release:   100
36
-Source:        http://prdownloads.sourceforge.net/gtkpod/libgpod-%{version}.tar.gz
37
-%if %{?build_so_1:1}0
38
-Source1:   http://prdownloads.sourceforge.net/gtkpod/libgpod-%{pkg_version_1}.tar.gz
39
-Patch1:        libgpod-0.4.2.patch
40
-%endif
41
-%if %{?build_so_0:1}0
42
-Source2:   http://prdownloads.sourceforge.net/gtkpod/libgpod-%{pkg_version_0}.tar.gz
43
-%endif
44
-Patch2:        libgpod-gettext-soname.patch
45
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
46
+Version:   %{pkg_version_latest}
47
+Release:   100.5
48
+Source:        http://prdownloads.sourceforge.net/gtkpod/libgpod-%{pkg_version_latest}.tar.gz
49
+Source3:   http://prdownloads.sourceforge.net/gtkpod/libgpod-%{pkg_version_2}.tar.gz
50
+Source2:   http://prdownloads.sourceforge.net/gtkpod/libgpod-%{pkg_version_1}.tar.gz
51
+Source1:   http://prdownloads.sourceforge.net/gtkpod/libgpod-%{pkg_version_0}.tar.gz
52
+Patch1:        libgpod-0.4.2-lower_ithumb_max_size.patch
53
+Patch2:        libgpod-0.4.0-gettext-soname.patch
54
+Patch3:        libgpod-0.4.2-gettext-soname.patch
55
+Patch4:        libgpod-0.5.2-gettext-soname.patch
56
+Patch5:        libgpod-0.6.0-gettext-soname.patch
57
+BuildRoot: %{_tmppath}/%{name}-%{pkg_version_latest}-build
58
 BuildRequires: gtk2-devel hal-devel perl-XML-Parser update-desktop-files gtk-doc
59
 BuildRequires: gcc glibc-devel make autoconf automake libtool intltool gettext-devel
60
 # python bindings need eyeD3 0.6.6 which is only there since 10.1
61
@@ -40,10 +47,8 @@
62
 %if %suse_version >= 1030
63
 BuildRequires:  fdupes
64
 %endif
65
-%if %suse_version < 1030
66
-Obsoletes: libgpod2
67
-Provides:  libgpod2 = %{version}-%{release}
68
-%endif
69
+Provides:  libgpod%{soname} = %{pkg_version_latest}-%{release}
70
+Provides:  libgpod = %{pkg_version_latest}-%{release}
71
 
72
 %description
73
 libgpod is a shared library to access the contents of an iPod. This library
74
@@ -55,11 +60,14 @@
75
 libgpod supports playlists, smart playlists, playcounts, ratings and podcasts.
76
 Support for cover art and photos is currently being tested.
77
 
78
+%debug_package
79
+
80
 %package -n libgpod-devel
81
 Group:        Development/Libraries/C and C++
82
 Summary:      Library to Manipulate Songs and Playlists Stored on iPod
83
-Requires:     %{name} = %{version}-%{release}
84
-Requires:     gtk2-devel glibc-devel glib2-devel dbus-1-devel hal-devel
85
+Requires:     libgpod%{soname} = %{pkg_version_latest}-%{release}
86
+Requires:     gtk2-devel glibc-glib2-devel dbus-1-devel hal-devel
87
+Provides:     libgpod-devel = %{pkg_version_latest}-%{release}
88
 
89
 %description -n libgpod-devel
90
 libgpod is a library meant to abstract access to an iPod content. It
91
@@ -69,7 +77,7 @@
92
 %package -n libgpod-devel-static
93
 Group:        Development/Libraries/C and C++
94
 Summary:      Library to Manipulate Songs and Playlists Stored on iPod
95
-Requires:     libgpod-devel = %{version}-%{release}
96
+Requires:     libgpod-devel = %{pkg_version_latest}-%{release}
97
 
98
 %description -n libgpod-devel-static
99
 libgpod is a library meant to abstract access to an iPod content. It
100
@@ -79,15 +87,14 @@
101
 %if %suse_version >= 1010
102
 %package -n libgpod-python
103
 Summary:      Python Module to access iPod Content
104
-Summary(de):  Ein  Python module für den iPod Zugriff
105
 Group:       Development/Languages/Python
106
-Provides:     python-libgpod = %{version}-%{release}
107
+Provides:     python-libgpod = %{pkg_version_latest}-%{release}
108
 Requires:     python-mutagen
109
 
110
 %description -n libgpod-python
111
 A python module to access iPod content. This module provides bindings to the
112
 libgpod library.
113
-%endif
114
+%endif # %suse_version >= 1010
115
 
116
 %package -n libgpod-doc
117
 Summary:      Developer Documentation for libgpod
118
@@ -96,39 +103,99 @@
119
 %description -n libgpod-doc
120
 API reference documentation for libgpod
121
 
122
-%if %suse_version >= 930
123
-%debug_package
124
+%if %build_so_2
125
+%package -n libgpod2
126
+Summary:   Shared Library to access the Contents of an iPod
127
+Version:   %{pkg_version_2}
128
+License:   GNU Library General Public License version 2 or later (LGPL 2)
129
+Group:     System/Libraries
130
+Provides:  libgpod2 = %{pkg_version_2}-%{release}
131
+Provides:  libgpod = %{pkg_version_2}-%{release}
132
+%if %suse_version >= 1020 && %suse_version < 1030
133
+Obsoletes: libgpod
134
+Provides:  libgpod = %{pkg_version_2}-%{release}
135
+%endif
136
+%description -n libgpod2
137
+This package contains libgpod.so.2 for backwards compatibility.
138
 %endif
139
-%prep
140
-%if %{?build_so_1:1}0 && %{?build_so_0:1}0
141
-%setup -q -b 1 -b 2 -n "libgpod-%{version}"
142
-%else
143
-%if %{?build_so_1:1}0
144
-%setup -q -b 1 -n "libgpod-%{version}"
145
-%else
146
-%if %{?build_so_0:1}0
147
-%setup -q -b 2 -n "libgpod-%{version}"
148
-%else
149
-%setup -q -n "libgpod-%{version}"
150
-%endif #%{?build_so_0:1}0
151
-%endif #%{?build_so_1:1}0
152
-%endif #%{?build_so_1:1}0 && %{?build_so_0:1}0
153
 
154
-%if %suse_version >= 1030
155
-%patch2 -p1
156
-%__sed -i 's|@@SONAME@@|%{soname}|g' configure.ac
157
+%if %build_so_1
158
+%package -n libgpod1
159
+Summary:   Shared Library to access the Contents of an iPod
160
+Version:   %{pkg_version_1}
161
+License:   GNU Library General Public License version 2 or later (LGPL 2)
162
+Group:     System/Libraries
163
+Provides:  libgpod1 = %{pkg_version_1}-%{release}
164
+Provides:  libgpod = %{pkg_version_1}-%{release}
165
+%description -n libgpod1
166
+This package contains libgpod.so.1 for backwards compatibility.
167
 %endif
168
 
169
-%if %suse_version >= 1010
170
-%__sed -i '/^#!\/usr\/bin\/env python/ d' \
171
-        bindings/python/gtkpod.py
172
+%if %build_so_0
173
+%package -n libgpod0
174
+Summary:   Shared Library to access the Contents of an iPod
175
+Version:   %{pkg_version_0}
176
+License:   GNU Library General Public License version 2 or later (LGPL 2)
177
+Group:     System/Libraries
178
+Provides:  libgpod0 = %{pkg_version_0}-%{release}
179
+Provides:  libgpod = %{pkg_version_0}-%{release}
180
+%if %suse_version < 1020
181
+Obsoletes: libgpod
182
+Provides:  libgpod = %{pkg_version_0}-%{release}
183
+%endif
184
+%description -n libgpod0
185
+This package contains libgpod.so.0 for backwards compatibility.
186
+%endif
187
+
188
+%prep
189
+%setup -q -n "libgpod-%{pkg_version_latest}"
190
+# change GETTEXT_PACKAGE from libgpod to libgpod%{soname}:
191
+%patch5
192
+%__sed -i 's|@@SONAME@@|%{soname}|g' configure.ac
193
+# Fix path to python:
194
+%__sed -i '/^#!\/usr\/bin\/env python/ d' bindings/python/gtkpod.py
195
 %__chmod 644 bindings/python/examples/*.py
196
+
197
+%if %build_so_0
198
+%setup -q -D -T -a 1 -n "libgpod-%{pkg_version_latest}"
199
+pushd "libgpod-%{pkg_version_0}"
200
+# change GETTEXT_PACKAGE from libgpod to libgpod0:
201
[+] Added libgpod-0.4.0-gettext-soname.patch ^
[+] Added libgpod-0.4.2-gettext-soname.patch ^
[+] Added libgpod-0.4.2-lower_ithumb_max_size.patch ^
[+] Added libgpod-0.5.2-gettext-soname.patch ^
[+] Added libgpod-0.6.0-gettext-soname.patch ^
Added libgpod-0.6.0.tar.gz ^