2 # check: http://fred.uwcs.co.uk/diff (from http://www.fredemmott.co.uk/blog_121)
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}
8 # - dotnet pkg executable bits for .exe?
9 Summary: Shared library to access the contents of an iPod
10 Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do zawartości iPodów
16 Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
17 # Source0-md5: 6660f74cc53293dcc847407aa5f672ce
18 Patch0: %{name}-gcc43.patch
19 URL: http://www.gtkpod.org/libgpod/
20 BuildRequires: autoconf >= 2.52
21 BuildRequires: automake
22 BuildRequires: dbus-glib-devel >= 0.30
23 BuildRequires: docbook-dtd412-xml
24 BuildRequires: dotnet-gtk-sharp2-devel >= 2.12
25 BuildRequires: gettext-devel
26 BuildRequires: gtk+2-devel >= 2.0
27 BuildRequires: gtk-doc >= 1.0
28 BuildRequires: hal-devel < 0.6
29 BuildRequires: hal-devel >= 0.5.7.1
30 BuildRequires: intltool >= 0.35
31 BuildRequires: libtool
32 BuildRequires: mono-devel >= 1.9.1
33 BuildRequires: pkgconfig
34 BuildRequires: python-devel >= 2.1.1
35 BuildRequires: python-eyeD3 >= 0.6.6
36 BuildRequires: python-mutagen >= 1.8
37 BuildRequires: rpm-pythonprov
38 BuildRequires: sg3_utils-devel >= 1.26
39 BuildRequires: swig-python >= 1.3.24
40 # for noinst test only
41 #BuildRequires: taglib-devel
42 Suggests: hal-libgpod = %{version}-%{release}
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 libgpod is a library meant to abstract access to an iPod content. It
47 provides an easy to use API to retrieve the list of files and playlist
48 stored on an iPod, to modify them and to save them back to the iPod.
50 %description -l pl.UTF-8
51 libgpod to biblioteka mająca na celu wyabstrahowanie dostępu do
52 zawartości iPodów. Udostępnia łatwe w użyciu API do pobierania listy
53 plików i playlist zapisanych na iPodzie, modyfikowania ich i
54 zapisywania z powrotem na iPoda.
56 %package -n hal-libgpod
57 Summary: HAL callout program for iPod devices
58 Summary(pl.UTF-8): Program wywoływany przez HAL dla urządzeń iPod
59 Group: Applications/System
60 Requires: %{name} = %{version}-%{release}
63 %description -n hal-libgpod
64 HAL callout program to initialize iPod devices for libgpod library.
66 %description -n hal-libgpod -l pl.UTF-8
67 Program wywoływany przez HAL do przygotowywania urządzeń iPod do
68 użytku z biblioteką libgpod.
71 Summary: Header files for libgpod library
72 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgpod
73 Group: Development/Libraries
74 Requires: %{name} = %{version}-%{release}
75 Requires: dbus-glib-devel >= 0.30
76 Requires: gtk+2-devel >= 2.0
77 Requires: hal-devel >= 0.5.7.1
80 This is the package containing the header files for libgpod library.
82 %description devel -l pl.UTF-8
83 Ten pakiet zawiera pliki nagłówkowe biblioteki libgpod.
86 Summary: Static libgpod library
87 Summary(pl.UTF-8): Statyczna biblioteka libgpod
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
92 Static libgpod library.
94 %description static -l pl.UTF-8
95 Statyczna biblioteka libgpod.
98 Summary: libgpod API documentation
99 Summary(pl.UTF-8): Dokumentacja API biblioteki libgpod
101 Requires: gtk-doc-common
104 libgpod API documentation.
106 %description apidocs -l pl.UTF-8
107 Dokumentacja API biblioteki libgpod.
109 %package -n python-gpod
110 Summary: Libraries for libgpod access from Python
111 Summary(pl.UTF-8): Biblioteki Pythona umożliwiające korzystanie z libgpod
112 Group: Development/Languages/Python
113 Requires: %{name} = %{version}-%{release}
114 Requires: python-eyeD3 >= 0.6.6
115 %pyrequires_eq python-libs
117 %description -n python-gpod
118 This is the libgpod Python support package.
120 %description -n python-gpod -l pl.UTF-8
121 Biblioteki umożliwiające korzystanie z libgpod z poziomu Pythona.
123 %package -n dotnet-%{name}-sharp
124 Summary: C#/.NET library to access iPod content
125 Group: Development/Languages
126 Requires: %{name} = %{version}-%{release}
128 %description -n dotnet-%{name}-sharp
129 C#/.NET library to access iPod content. Provides bindings to the
132 %package -n dotnet-%{name}-sharp-devel
133 Summary: C#/.NET library to access iPod content
134 Summary: Development files for libgpod-sharp
135 Group: Development/Languages
136 Requires: dotnet-%{name}-sharp = %{version}-%{release}
139 %description -n dotnet-%{name}-sharp-devel
140 C#/.NET library to access iPod content. Provides bindings to the
143 This package contains the files required to develop programs that will
144 use dotnet-libgpod-sharp.
160 --with-html-dir=%{_gtkdocdir} \
161 --with-temp-mount-dir=%{_localstatedir}/run/%{name} \
166 rm -rf $RPM_BUILD_ROOT
169 DESTDIR=$RPM_BUILD_ROOT
171 rm -f $RPM_BUILD_ROOT%{py_sitedir}/gpod/*.{la,a}
175 %find_lang %{name} --all-name
178 rm -rf $RPM_BUILD_ROOT
180 %post -p /sbin/ldconfig
181 %postun -p /sbin/ldconfig
183 %files -f %{name}.lang
184 %defattr(644,root,root,755)
185 %doc AUTHORS ChangeLog README
186 %attr(755,root,root) %{_bindir}/ipod-read-sysinfo-extended
187 %attr(755,root,root) %{_libdir}/libgpod.so.*.*.*
188 %attr(755,root,root) %ghost %{_libdir}/libgpod.so.4
189 %dir %{_localstatedir}/run/%{name}
191 %files -n hal-libgpod
192 %defattr(644,root,root,755)
193 %attr(755,root,root) %{_libdir}/hal/scripts/libgpod-callout
194 %attr(755,root,root) %{_libdir}/hal/scripts/iphone-callout
195 %{_datadir}/hal/fdi/policy/20thirdparty/20-libgpod-sysinfo-extended.fdi
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_libdir}/libgpod.so
200 %{_libdir}/libgpod.la
201 %{_pkgconfigdir}/libgpod-1.0.pc
202 %{_includedir}/gpod-1.0
205 %defattr(644,root,root,755)
209 %defattr(644,root,root,755)
210 %{_gtkdocdir}/libgpod
212 %files -n python-gpod
213 %defattr(644,root,root,755)
214 %dir %{py_sitedir}/gpod
215 %{py_sitedir}/gpod/*.py[co]
216 %attr(755,root,root) %{py_sitedir}/gpod/_gpod.so
218 %files -n dotnet-%{name}-sharp
219 %defattr(644,root,root,755)
220 %dir %{_libdir}/%{name}
221 %{_libdir}/%{name}/%{name}-sharp-test.exe
222 %{_libdir}/%{name}/%{name}-sharp-test.exe.mdb
223 %{_libdir}/%{name}/%{name}-sharp.dll
224 %{_libdir}/%{name}/%{name}-sharp.dll.config
225 %{_libdir}/%{name}/%{name}-sharp.dll.mdb
227 %files -n dotnet-%{name}-sharp-devel
228 %defattr(644,root,root,755)
229 %{_pkgconfigdir}/%{name}-sharp.pc