Blob Blame History Raw
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Summary: Library to access the contents of an iPod
Name: libgpod
Version: 0.6.0
Release: 1%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Patch0: libgpod-0.6.0-photoremove.patch
Patch1: libgpod-0.6.0-ipod-touch-typos.patch
Patch2: libgpod-0.6.0-spl-tracklen.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: glib2-devel
BuildRequires: gtk2-devel
BuildRequires: gettext
BuildRequires: hal-devel
BuildRequires: libxslt
BuildRequires: perl(XML::Parser)
BuildRequires: pygobject2-devel
Buildrequires: python-devel
Buildrequires: python-mutagen
Buildrequires: sg3_utils-devel
Buildrequires: swig

Libgpod is a library to access the contents of an iPod. It supports playlists,
smart playlists, playcounts, ratings, podcasts, album artwork, photos, etc.

%package devel
Summary: Development files for the libgpod library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig

%description devel
Libgpod is a library to access the contents of an iPod. It supports playlists,
smart playlists, playcounts, ratings, podcasts, album artwork, photos, etc.

This package contains the files required to develop programs that will use

%package -n python-gpod
Summary: Python module to access iPod content
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
Requires: python-mutagen

%description -n python-gpod
A python module to access iPod content.  This module provides bindings to the
libgpod library.

%setup -q
%patch0 -p0 -b .photoremove
%patch1 -p0 -b .ipod-touch-typos
%patch2 -p0 -b .spl-tracklen

# remove execute perms on the python examples as they'll be installed in %doc
%{__chmod} -x bindings/python/examples/*.py

%{__make} %{?_smp_mflags}

%{__rm} -rf %{buildroot}
%{__make} DESTDIR=%{buildroot} install
%find_lang %{name}

# remove Makefiles from the python examples dir
%{__rm} -rf bindings/python/examples/Makefile*

%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-, root, root, 0755)

%files devel
%defattr(-, root, root, 0755)
%exclude %{_libdir}/*.a
%exclude %{_libdir}/*.la

%files -n python-gpod
%doc COPYING bindings/python/README bindings/python/examples
%exclude %{python_sitearch}/gpod/*.a
%exclude %{python_sitearch}/gpod/*.la

* Wed Nov 21 2007 Todd Zullinger <> - 0.6.0-1
- update to 0.6.0
- apply a few upstream patches that just missed the release

* Fri Aug 24 2007 Adam Jackson <> - 0.5.2-2
- Rebuild for build ID

* Sat Aug 04 2007 Todd Zullinger <> - 0.5.2-1
- update to 0.5.2
- replace %%makeinstall with %%{__make} DESTDIR=%%{buildroot} install
- build python bindings, merging python-gpod package from extras
- make %%setup quiet
- patch to fixup building of the python docs, BR libxslt
- update license tag

* Tue Jan 16 2007 Alexander Larsson <> - 0.4.2-1
- update to 0.4.2
- Change %%description to reflect newer features
- Remove TODO file from %%doc as it's not included anymore
- Explicitly disable the python bindings, they are in the python-gpod package in
  Extras until the Core/Extras merge

* Mon Nov 20 2006 Alexander Larsson <> - 0.4.0-2
- Add ldconfig calls in post/postun

* Mon Nov 13 2006 Matthias Clasen <> - 0.4.0-1
- Update to 0.4.0
- Include docs in the -devel package
- Don't ship static libraries

* Wed Jul 12 2006 Jesse Keating <> - 0.3.0-3.1
- rebuild

* Tue Jun 06 2006 Jesse Keating <> - 0.3.0-3
- Add missing BR of perl-XML-Parser

* Fri Feb 10 2006 Jesse Keating <> - 0.3.0-2.2
- bump again for double-long bug on ppc(64)

* Tue Feb 07 2006 Jesse Keating <> - 0.3.0-2.1
- rebuilt for new gcc4.1 snapshot and glibc changes

* Wed Jan 04 2006 John (J5) Palmieri <> 0.3.0-2
- Modified Matthias Saou's SPEC file found on
- Added to Fedora Core

* Mon Dec 19 2005 Matthias Saou <> 0.3.0-1
- Initial RPM release.