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