]>
Commit | Line | Data |
---|---|---|
3b31192c ER |
1 | # TODO |
2 | # check: http://fred.uwcs.co.uk/diff (from http://www.fredemmott.co.uk/blog_121) | |
1433ce6c ER |
3 | # some warning at doc build: |
4 | #warning: failed to load external entity "../../docs/reference/xml/*.xml" | |
5 | #unable to parse ../../docs/reference/xml/*.xml | |
6 | #make[3]: [gpod_doc.i] Error 6 (ignored) | |
7 | # - mountdir perms?: %dir %{_localstatedir}/run/%{name} | |
f810560c | 8 | # |
346f02f5 | 9 | # Conditional build: |
893385af JB |
10 | %bcond_without dotnet # .NET bindings |
11 | %bcond_without python # Python bindings | |
346f02f5 JR |
12 | |
13 | %ifarch x32 | |
14 | %undefine with_dotnet | |
15 | %endif | |
16 | ||
dc0cd0ea | 17 | Summary: Shared library to access the contents of an iPod |
66c9f5b5 | 18 | Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do zawartości iPodów |
dc0cd0ea | 19 | Name: libgpod |
acdb3ab4 | 20 | Version: 0.8.3 |
4da71a16 | 21 | Release: 7 |
dc0cd0ea ER |
22 | License: GPL v2 |
23 | Group: Libraries | |
f53eb40d | 24 | Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2 |
acdb3ab4 | 25 | # Source0-md5: f8a0b7a34e768e33a708e8dd172bd6f8 |
17bbfba4 | 26 | Source1: %{name}.tmpfiles |
b3957213 | 27 | Patch0: %{name}-gcc43.patch |
79b175a4 | 28 | Patch1: %{name}-monodir.patch |
b636bf01 | 29 | Patch2: mono4.patch |
893385af | 30 | Patch3: %{name}-swig.patch |
4da71a16 | 31 | Patch4: %{name}-libplist.patch |
7a3b7b01 | 32 | URL: http://www.gtkpod.org/libgpod/ |
893385af | 33 | BuildRequires: autoconf >= 2.65 |
d778f737 | 34 | BuildRequires: automake |
1f8b9048 | 35 | BuildRequires: docbook-dtd412-xml |
f810560c | 36 | BuildRequires: gdk-pixbuf2-devel >= 2.6.0 |
fdb3769e | 37 | BuildRequires: gettext-tools |
f810560c | 38 | BuildRequires: glib2-devel >= 1:2.16.0 |
f3883363 | 39 | BuildRequires: gtk-doc >= 1.0 |
f870e1c5 | 40 | BuildRequires: intltool >= 0.35 |
acdb3ab4 | 41 | BuildRequires: libimobiledevice-devel >= 1.1.5 |
4da71a16 | 42 | BuildRequires: libplist-devel >= 2.2.0 |
f53eb40d | 43 | BuildRequires: libsmbios-devel |
893385af JB |
44 | BuildRequires: libtool >= 2:2 |
45 | BuildRequires: libusb-devel >= 1.0 | |
46 | BuildRequires: libxml2-devel >= 2.0 | |
815117fd | 47 | BuildRequires: pkgconfig |
f53eb40d | 48 | BuildRequires: rpmbuild(macros) >= 1.647 |
c08734c8 | 49 | BuildRequires: sg3_utils-devel >= 1.26 |
893385af | 50 | BuildRequires: sqlite3-devel >= 3 |
f810560c | 51 | BuildRequires: zlib-devel |
f3883363 JB |
52 | # for noinst test only |
53 | #BuildRequires: taglib-devel | |
740f7e35 ER |
54 | %if %{with dotnet} |
55 | BuildRequires: dotnet-gtk-sharp2-devel >= 2.12.0 | |
893385af | 56 | BuildRequires: mono-csharp >= 1.9.1 |
d1cc0fe4 | 57 | BuildRequires: mono-devel >= 1.9.1 |
740f7e35 ER |
58 | BuildRequires: rpmbuild(monoautodeps) |
59 | %endif | |
60 | %if %{with python} | |
61 | BuildRequires: python-devel >= 2.1.1 | |
740f7e35 ER |
62 | BuildRequires: python-mutagen >= 1.8 |
63 | BuildRequires: python-pygobject-devel >= 2.8.0 | |
64 | BuildRequires: rpm-pythonprov | |
65 | BuildRequires: swig-python >= 1.3.24 | |
66 | %endif | |
893385af JB |
67 | Requires: glib2 >= 1:2.16.0 |
68 | Requires: libimobiledevice >= 1.1.5 | |
4da71a16 | 69 | Requires: libplist >= 2.2.0 |
a42c7f51 | 70 | Suggests: udev-libgpod = %{version}-%{release} |
dc0cd0ea ER |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
72 | ||
73 | %description | |
74 | libgpod is a library meant to abstract access to an iPod content. It | |
75 | provides an easy to use API to retrieve the list of files and playlist | |
76 | stored on an iPod, to modify them and to save them back to the iPod. | |
77 | ||
a824449a JR |
78 | %description -l pl.UTF-8 |
79 | libgpod to biblioteka mająca na celu wyabstrahowanie dostępu do | |
80 | zawartości iPodów. Udostępnia łatwe w użyciu API do pobierania listy | |
81 | plików i playlist zapisanych na iPodzie, modyfikowania ich i | |
4f047121 JB |
82 | zapisywania z powrotem na iPoda. |
83 | ||
a42c7f51 JR |
84 | %package -n udev-libgpod |
85 | Summary: UDEV rules and programs for iPod devices | |
86 | Summary(pl.UTF-8): Reguły i programy używane przez UDEV dla urządzeń iPod | |
9192b18d JB |
87 | Group: Applications/System |
88 | Requires: %{name} = %{version}-%{release} | |
a42c7f51 | 89 | Obsoletes: hal-libgpod |
9192b18d | 90 | |
a42c7f51 JR |
91 | %description -n udev-libgpod |
92 | UDEV rules and programs to initialize iPod devices for libgpod | |
93 | library. | |
9192b18d | 94 | |
a42c7f51 | 95 | %description -n udev-libgpod -l pl.UTF-8 |
f53eb40d ER |
96 | Reguły i program dla UDEV do przygotowywania urządzeń iPod do użytku z |
97 | biblioteką libgpod. | |
9192b18d | 98 | |
d778f737 | 99 | %package devel |
4f047121 | 100 | Summary: Header files for libgpod library |
66c9f5b5 | 101 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgpod |
d778f737 ER |
102 | Group: Development/Libraries |
103 | Requires: %{name} = %{version}-%{release} | |
f810560c MB |
104 | Requires: gdk-pixbuf2-devel >= 2.6.0 |
105 | Requires: glib2-devel >= 1:2.16.0 | |
d778f737 ER |
106 | |
107 | %description devel | |
4f047121 JB |
108 | This is the package containing the header files for libgpod library. |
109 | ||
a824449a JR |
110 | %description devel -l pl.UTF-8 |
111 | Ten pakiet zawiera pliki nagłówkowe biblioteki libgpod. | |
d778f737 ER |
112 | |
113 | %package static | |
114 | Summary: Static libgpod library | |
66c9f5b5 | 115 | Summary(pl.UTF-8): Statyczna biblioteka libgpod |
d778f737 ER |
116 | Group: Development/Libraries |
117 | Requires: %{name}-devel = %{version}-%{release} | |
118 | ||
119 | %description static | |
120 | Static libgpod library. | |
121 | ||
a824449a | 122 | %description static -l pl.UTF-8 |
4f047121 JB |
123 | Statyczna biblioteka libgpod. |
124 | ||
ba748466 MB |
125 | %package apidocs |
126 | Summary: libgpod API documentation | |
127 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgpod | |
128 | Group: Documentation | |
129 | Requires: gtk-doc-common | |
89ee4952 | 130 | %if "%{_rpmversion}" >= "4.6" |
d1cc0fe4 ER |
131 | BuildArch: noarch |
132 | %endif | |
ba748466 MB |
133 | |
134 | %description apidocs | |
135 | libgpod API documentation. | |
136 | ||
137 | %description apidocs -l pl.UTF-8 | |
138 | Dokumentacja API biblioteki libgpod. | |
139 | ||
bdd77c39 | 140 | %package -n python-gpod |
67aca07d JB |
141 | Summary: Module for libgpod access from Python |
142 | Summary(pl.UTF-8): Moduł Pythona umożliwiający korzystanie z biblioteki libgpod | |
bdd77c39 | 143 | Group: Development/Languages/Python |
f3883363 | 144 | Requires: %{name} = %{version}-%{release} |
740f7e35 | 145 | Requires: python-libs |
893385af JB |
146 | Requires: python-mutagen >= 1.8 |
147 | Requires: python-pygobject >= 2.8.0 | |
bdd77c39 PZ |
148 | |
149 | %description -n python-gpod | |
150 | This is the libgpod Python support package. | |
151 | ||
a824449a | 152 | %description -n python-gpod -l pl.UTF-8 |
67aca07d JB |
153 | Moduł umożliwiający korzystanie z biblioteki libgpod z poziomu |
154 | Pythona. | |
bdd77c39 | 155 | |
1433ce6c ER |
156 | %package -n dotnet-%{name}-sharp |
157 | Summary: C#/.NET library to access iPod content | |
67aca07d | 158 | Summary(pl.UTF-8): Biblioteka C#/.NET pozwalajaca na dostęp do iPoda |
1433ce6c ER |
159 | Group: Development/Languages |
160 | Requires: %{name} = %{version}-%{release} | |
161 | ||
162 | %description -n dotnet-%{name}-sharp | |
163 | C#/.NET library to access iPod content. Provides bindings to the | |
164 | libgpod library. | |
165 | ||
67aca07d JB |
166 | %description -n dotnet-%{name}-sharp -l pl.UTF-8 |
167 | Biblioteka C#/.NET pozwalająca na dostęp do iPoda. Udostępnia wiązania | |
168 | do biblioteki libgpod. | |
169 | ||
1433ce6c | 170 | %package -n dotnet-%{name}-sharp-devel |
1433ce6c | 171 | Summary: Development files for libgpod-sharp |
67aca07d | 172 | Summary(pl.UTF-8): Development files for libgpod-sharp |
1433ce6c ER |
173 | Group: Development/Languages |
174 | Requires: dotnet-%{name}-sharp = %{version}-%{release} | |
175 | Requires: pkgconfig | |
176 | ||
177 | %description -n dotnet-%{name}-sharp-devel | |
178 | C#/.NET library to access iPod content. Provides bindings to the | |
179 | libgpod library. | |
180 | ||
181 | This package contains the files required to develop programs that will | |
182 | use dotnet-libgpod-sharp. | |
183 | ||
67aca07d JB |
184 | %description -n dotnet-%{name}-sharp-devel -l pl.UTF-8 |
185 | Pliki programistyczne biblioteki C#/.NET libgpod-sharp. | |
186 | ||
dc0cd0ea | 187 | %prep |
f5fa59de | 188 | %setup -q |
b3957213 | 189 | %patch0 -p1 |
79b175a4 | 190 | %patch1 -p1 |
b636bf01 | 191 | %patch2 -p1 |
893385af | 192 | %patch3 -p1 |
4da71a16 | 193 | %patch4 -p1 |
dc0cd0ea ER |
194 | |
195 | %build | |
e93a05d4 | 196 | %{__gtkdocize} |
815117fd | 197 | %{__glib_gettextize} |
f870e1c5 | 198 | %{__intltoolize} |
d778f737 | 199 | %{__libtoolize} |
e93a05d4 | 200 | %{__aclocal} -I m4 |
d778f737 ER |
201 | %{__autoconf} |
202 | %{__autoheader} | |
203 | %{__automake} | |
815117fd | 204 | %configure \ |
f810560c MB |
205 | --disable-silent-rules \ |
206 | --enable-gtk-doc \ | |
346f02f5 | 207 | --enable-mono%{!?with_dotnet:=no} \ |
893385af | 208 | --enable-udev \ |
f3883363 | 209 | --with-html-dir=%{_gtkdocdir} \ |
893385af | 210 | --with-python%{!?with_python:=no} \ |
1433ce6c | 211 | --with-temp-mount-dir=%{_localstatedir}/run/%{name} \ |
893385af | 212 | --without-hal |
a42c7f51 | 213 | |
dc0cd0ea ER |
214 | %{__make} |
215 | ||
216 | %install | |
217 | rm -rf $RPM_BUILD_ROOT | |
f53eb40d | 218 | install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
dc0cd0ea ER |
219 | |
220 | %{__make} install \ | |
221 | DESTDIR=$RPM_BUILD_ROOT | |
222 | ||
740f7e35 | 223 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgpod.la |
ba748466 | 224 | |
f53eb40d | 225 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
17bbfba4 | 226 | |
740f7e35 ER |
227 | %if %{with python} |
228 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gpod/*.la | |
f3883363 | 229 | %py_postclean |
740f7e35 | 230 | %endif |
f3883363 | 231 | |
dc0cd0ea ER |
232 | %find_lang %{name} --all-name |
233 | ||
234 | %clean | |
235 | rm -rf $RPM_BUILD_ROOT | |
236 | ||
d778f737 ER |
237 | %post -p /sbin/ldconfig |
238 | %postun -p /sbin/ldconfig | |
239 | ||
dc0cd0ea ER |
240 | %files -f %{name}.lang |
241 | %defattr(644,root,root,755) | |
242 | %doc AUTHORS ChangeLog README | |
09766f8b | 243 | %attr(755,root,root) %{_bindir}/ipod-read-sysinfo-extended |
d778f737 | 244 | %attr(755,root,root) %{_libdir}/libgpod.so.*.*.* |
3b31192c | 245 | %attr(755,root,root) %ghost %{_libdir}/libgpod.so.4 |
1433ce6c | 246 | %dir %{_localstatedir}/run/%{name} |
f53eb40d | 247 | %{systemdtmpfilesdir}/%{name}.conf |
9192b18d | 248 | |
a42c7f51 | 249 | %files -n udev-libgpod |
9192b18d | 250 | %defattr(644,root,root,755) |
a42c7f51 JR |
251 | %attr(755,root,root) /lib/udev/iphone-set-info |
252 | %attr(755,root,root) /lib/udev/ipod-set-info | |
253 | /lib/udev/rules.d/90-libgpod.rules | |
d778f737 ER |
254 | |
255 | %files devel | |
256 | %defattr(644,root,root,755) | |
d778f737 ER |
257 | %attr(755,root,root) %{_libdir}/libgpod.so |
258 | %{_pkgconfigdir}/libgpod-1.0.pc | |
289bd190 | 259 | %{_includedir}/gpod-1.0 |
d778f737 ER |
260 | |
261 | %files static | |
262 | %defattr(644,root,root,755) | |
263 | %{_libdir}/libgpod.a | |
bdd77c39 | 264 | |
ba748466 MB |
265 | %files apidocs |
266 | %defattr(644,root,root,755) | |
267 | %{_gtkdocdir}/libgpod | |
268 | ||
740f7e35 | 269 | %if %{with python} |
bdd77c39 PZ |
270 | %files -n python-gpod |
271 | %defattr(644,root,root,755) | |
f3883363 JB |
272 | %dir %{py_sitedir}/gpod |
273 | %{py_sitedir}/gpod/*.py[co] | |
274 | %attr(755,root,root) %{py_sitedir}/gpod/_gpod.so | |
740f7e35 | 275 | %endif |
1433ce6c | 276 | |
346f02f5 | 277 | %if %{with dotnet} |
1433ce6c ER |
278 | %files -n dotnet-%{name}-sharp |
279 | %defattr(644,root,root,755) | |
79b175a4 MB |
280 | %dir %{_prefix}/lib/libgpod |
281 | %{_prefix}/lib/libgpod/libgpod-sharp-test.exe | |
282 | %{_prefix}/lib/libgpod/libgpod-sharp-test.exe.mdb | |
283 | %{_prefix}/lib/libgpod/libgpod-sharp.dll | |
284 | %{_prefix}/lib/libgpod/libgpod-sharp.dll.config | |
285 | %{_prefix}/lib/libgpod/libgpod-sharp.dll.mdb | |
1433ce6c ER |
286 | |
287 | %files -n dotnet-%{name}-sharp-devel | |
288 | %defattr(644,root,root,755) | |
f810560c | 289 | %{_pkgconfigdir}/libgpod-sharp.pc |
346f02f5 | 290 | %endif |