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