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