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 %include /usr/lib/rpm/macros.mono
10 Summary: Shared library to access the contents of an iPod
11 Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do zawartości iPodów
17 Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
18 # Source0-md5: 6660f74cc53293dcc847407aa5f672ce
19 Source1: %{name}.tmpfiles
20 Patch0: %{name}-gcc43.patch
21 Patch1: %{name}-monodir.patch
22 URL: http://www.gtkpod.org/libgpod/
23 BuildRequires: autoconf >= 2.52
24 BuildRequires: automake
25 BuildRequires: docbook-dtd412-xml
26 BuildRequires: dotnet-gtk-sharp2-devel >= 2.12.0
27 BuildRequires: gdk-pixbuf2-devel >= 2.6.0
28 BuildRequires: gettext-devel
29 BuildRequires: glib2-devel >= 1:2.16.0
30 BuildRequires: gtk-doc >= 1.0
31 BuildRequires: intltool >= 0.35
32 BuildRequires: libimobiledevice-devel >= 0.9.7
33 BuildRequires: libplist-devel >= 1.0.0
34 BuildRequires: libtool
35 BuildRequires: libusb-devel
36 BuildRequires: libxml2-devel
37 BuildRequires: mono-devel >= 1.9.1
38 BuildRequires: pkgconfig
39 BuildRequires: python-devel >= 2.1.1
40 BuildRequires: python-eyeD3 >= 0.6.6
41 BuildRequires: python-mutagen >= 1.8
42 BuildRequires: python-pygobject-devel >= 2.8.0
43 BuildRequires: rpm-pythonprov
44 BuildRequires: rpmbuild(monoautodeps)
45 BuildRequires: sg3_utils-devel >= 1.26
46 BuildRequires: sqlite3-devel
47 BuildRequires: swig-python >= 1.3.24
48 BuildRequires: zlib-devel
49 BuildRequires: libsmbios-devel
50 # for noinst test only
51 #BuildRequires: taglib-devel
52 Suggests: udev-libgpod = %{version}-%{release}
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 libgpod is a library meant to abstract access to an iPod content. It
57 provides an easy to use API to retrieve the list of files and playlist
58 stored on an iPod, to modify them and to save them back to the iPod.
60 %description -l pl.UTF-8
61 libgpod to biblioteka mająca na celu wyabstrahowanie dostępu do
62 zawartości iPodów. Udostępnia łatwe w użyciu API do pobierania listy
63 plików i playlist zapisanych na iPodzie, modyfikowania ich i
64 zapisywania z powrotem na iPoda.
66 %package -n udev-libgpod
67 Summary: UDEV rules and programs for iPod devices
68 Summary(pl.UTF-8): Reguły i programy używane przez UDEV dla urządzeń iPod
69 Group: Applications/System
70 Requires: %{name} = %{version}-%{release}
71 Obsoletes: hal-libgpod
73 %description -n udev-libgpod
74 UDEV rules and programs to initialize iPod devices for libgpod
77 %description -n udev-libgpod -l pl.UTF-8
78 Reguły i program dla UDEV do przygotowywania urządzeń iPod do
79 użytku z biblioteką libgpod.
82 Summary: Header files for libgpod library
83 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgpod
84 Group: Development/Libraries
85 Requires: %{name} = %{version}-%{release}
86 Requires: gdk-pixbuf2-devel >= 2.6.0
87 Requires: glib2-devel >= 1:2.16.0
90 This is the package containing the header files for libgpod library.
92 %description devel -l pl.UTF-8
93 Ten pakiet zawiera pliki nagłówkowe biblioteki libgpod.
96 Summary: Static libgpod library
97 Summary(pl.UTF-8): Statyczna biblioteka libgpod
98 Group: Development/Libraries
99 Requires: %{name}-devel = %{version}-%{release}
102 Static libgpod library.
104 %description static -l pl.UTF-8
105 Statyczna biblioteka libgpod.
108 Summary: libgpod API documentation
109 Summary(pl.UTF-8): Dokumentacja API biblioteki libgpod
111 Requires: gtk-doc-common
114 libgpod API documentation.
116 %description apidocs -l pl.UTF-8
117 Dokumentacja API biblioteki libgpod.
119 %package -n python-gpod
120 Summary: Module for libgpod access from Python
121 Summary(pl.UTF-8): Moduł Pythona umożliwiający korzystanie z biblioteki libgpod
122 Group: Development/Languages/Python
123 Requires: %{name} = %{version}-%{release}
124 Requires: python-eyeD3 >= 0.6.6
125 %pyrequires_eq python-libs
127 %description -n python-gpod
128 This is the libgpod Python support package.
130 %description -n python-gpod -l pl.UTF-8
131 Moduł umożliwiający korzystanie z biblioteki libgpod z poziomu
134 %package -n dotnet-%{name}-sharp
135 Summary: C#/.NET library to access iPod content
136 Summary(pl.UTF-8): Biblioteka C#/.NET pozwalajaca na dostęp do iPoda
137 Group: Development/Languages
138 Requires: %{name} = %{version}-%{release}
140 %description -n dotnet-%{name}-sharp
141 C#/.NET library to access iPod content. Provides bindings to the
144 %description -n dotnet-%{name}-sharp -l pl.UTF-8
145 Biblioteka C#/.NET pozwalająca na dostęp do iPoda. Udostępnia wiązania
146 do biblioteki libgpod.
148 %package -n dotnet-%{name}-sharp-devel
149 Summary: Development files for libgpod-sharp
150 Summary(pl.UTF-8): Development files for libgpod-sharp
151 Group: Development/Languages
152 Requires: dotnet-%{name}-sharp = %{version}-%{release}
155 %description -n dotnet-%{name}-sharp-devel
156 C#/.NET library to access iPod content. Provides bindings to the
159 This package contains the files required to develop programs that will
160 use dotnet-libgpod-sharp.
162 %description -n dotnet-%{name}-sharp-devel -l pl.UTF-8
163 Pliki programistyczne biblioteki C#/.NET libgpod-sharp.
180 --disable-silent-rules \
182 --with-html-dir=%{_gtkdocdir} \
183 --with-temp-mount-dir=%{_localstatedir}/run/%{name} \
191 rm -rf $RPM_BUILD_ROOT
192 install -d $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
195 DESTDIR=$RPM_BUILD_ROOT
197 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gpod/*.la \
198 $RPM_BUILD_ROOT%{_libdir}/libgpod.la
200 install %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
204 %find_lang %{name} --all-name
207 rm -rf $RPM_BUILD_ROOT
209 %post -p /sbin/ldconfig
210 %postun -p /sbin/ldconfig
212 %files -f %{name}.lang
213 %defattr(644,root,root,755)
214 %doc AUTHORS ChangeLog README
215 %attr(755,root,root) %{_bindir}/ipod-read-sysinfo-extended
216 %attr(755,root,root) %{_libdir}/libgpod.so.*.*.*
217 %attr(755,root,root) %ghost %{_libdir}/libgpod.so.4
218 %dir %{_localstatedir}/run/%{name}
219 /usr/lib/tmpfiles.d/%{name}.conf
221 %files -n udev-libgpod
222 %defattr(644,root,root,755)
223 %attr(755,root,root) /lib/udev/iphone-set-info
224 %attr(755,root,root) /lib/udev/ipod-set-info
225 /lib/udev/rules.d/90-libgpod.rules
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/libgpod.so
230 %{_pkgconfigdir}/libgpod-1.0.pc
231 %{_includedir}/gpod-1.0
234 %defattr(644,root,root,755)
238 %defattr(644,root,root,755)
239 %{_gtkdocdir}/libgpod
241 %files -n python-gpod
242 %defattr(644,root,root,755)
243 %dir %{py_sitedir}/gpod
244 %{py_sitedir}/gpod/*.py[co]
245 %attr(755,root,root) %{py_sitedir}/gpod/_gpod.so
247 %files -n dotnet-%{name}-sharp
248 %defattr(644,root,root,755)
249 %dir %{_prefix}/lib/libgpod
250 %{_prefix}/lib/libgpod/libgpod-sharp-test.exe
251 %{_prefix}/lib/libgpod/libgpod-sharp-test.exe.mdb
252 %{_prefix}/lib/libgpod/libgpod-sharp.dll
253 %{_prefix}/lib/libgpod/libgpod-sharp.dll.config
254 %{_prefix}/lib/libgpod/libgpod-sharp.dll.mdb
256 %files -n dotnet-%{name}-sharp-devel
257 %defattr(644,root,root,755)
258 %{_pkgconfigdir}/libgpod-sharp.pc