50e7fc5
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
50e7fc5
aeaedec
Summary: Library to access the contents of an iPod
aeaedec
Name: libgpod
c9c56a2
Version: 0.7.93
6a78616
Release: 4%{?dist}
50e7fc5
License: LGPLv2+
aeaedec
Group: System Environment/Libraries
aeaedec
URL: http://www.gtkpod.org/libgpod.html
50e7fc5
Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
aeaedec
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
cd6b67c
BuildRequires: docbook-style-xsl
fbcec2d
BuildRequires: glib2-devel
fbcec2d
BuildRequires: gtk2-devel
fbcec2d
BuildRequires: gettext
cc817b7
BuildRequires: intltool
cc817b7
BuildRequires: libimobiledevice-devel >= 0.9.7
cc817b7
BuildRequires: libplist-devel >= 1.0
cc817b7
BuildRequires: libusb1-devel
2faa241
BuildRequires: libxml2-devel
50e7fc5
BuildRequires: libxslt
fbcec2d
BuildRequires: perl(XML::Parser)
ac9f7f0
BuildRequires: pygobject2-devel
0d17c11
BuildRequires: python-devel
0d17c11
BuildRequires: python-mutagen
0d17c11
BuildRequires: sg3_utils-devel
0d17c11
BuildRequires: sqlite-devel
0d17c11
BuildRequires: swig
11ac821
BuildRequires: autoconf
0d17c11
Requires: udev
aeaedec
aeaedec
%description
aeaedec
Libgpod is a library to access the contents of an iPod. It supports playlists,
ec80e5d
smart playlists, playcounts, ratings, podcasts, album artwork, photos, etc.
aeaedec
aeaedec
aeaedec
%package devel
aeaedec
Summary: Development files for the libgpod library
aeaedec
Group: Development/Libraries
4ff4459
Requires: %{name} = %{version}-%{release}
f295049
Requires: glib2-devel
e43b72e
Requires: gtk2-devel
4ff4459
Requires: pkgconfig
aeaedec
aeaedec
%description devel
aeaedec
Libgpod is a library to access the contents of an iPod. It supports playlists,
ec80e5d
smart playlists, playcounts, ratings, podcasts, album artwork, photos, etc.
aeaedec
aeaedec
This package contains the files required to develop programs that will use
aeaedec
libgpod.
aeaedec
aeaedec
3915c86
%package doc
3915c86
Summary: API documentation for the libgpod library
3915c86
Group: Documentation
3915c86
License: GFDL
cc817b7
%if 0%{?fedora}
eaad970
BuildArch: noarch
eaad970
%endif
30532e9
Requires: %{name} = %{version}-%{release}
3915c86
3915c86
%description doc
3915c86
Libgpod is a library to access the contents of an iPod. It supports playlists,
3915c86
smart playlists, playcounts, ratings, podcasts, album artwork, photos, etc.
3915c86
3915c86
This package contains the API documentation.
3915c86
3915c86
50e7fc5
%package -n python-gpod
50e7fc5
Summary: Python module to access iPod content
50e7fc5
Group: Development/Languages
50e7fc5
Requires: %{name} = %{version}-%{release}
50e7fc5
Requires: python-mutagen
50e7fc5
50e7fc5
%description -n python-gpod
50e7fc5
A python module to access iPod content.  This module provides bindings to the
50e7fc5
libgpod library.
50e7fc5
50e7fc5
aeaedec
%prep
50e7fc5
%setup -q
50e7fc5
50e7fc5
# remove execute perms on the python examples as they'll be installed in %doc
c9c56a2
chmod -x bindings/python/examples/*.py
aeaedec
11ac821
# Persuade swig bindings to build against swig 2.0.0:
11ac821
sed -i -e "s|SWIG_MIN_VERSION=1.3.24|SWIG_MIN_VERSION=2.0.0|" configure.ac
11ac821
autoreconf
aeaedec
aeaedec
%build
c9c56a2
%configure --without-hal --enable-udev --with-temp-mount-dir=%{_localstatedir}/run/%{name}
c9c56a2
make %{?_smp_mflags}
aeaedec
aeaedec
aeaedec
%install
c9c56a2
rm -rf %{buildroot}
c9c56a2
make DESTDIR=%{buildroot} install
aeaedec
%find_lang %{name}
aeaedec
50e7fc5
# remove Makefiles from the python examples dir
c9c56a2
rm -rf bindings/python/examples/Makefile*
50e7fc5
aeaedec
aeaedec
%clean
c9c56a2
rm -rf %{buildroot}
aeaedec
50e7fc5
e3cf9ee
%post -p /sbin/ldconfig
e3cf9ee
%postun -p /sbin/ldconfig
aeaedec
50e7fc5
aeaedec
%files -f %{name}.lang
aeaedec
%defattr(-, root, root, 0755)
3915c86
%doc AUTHORS ChangeLog COPYING NEWS README*
ac9f7f0
%{_bindir}/*
aeaedec
%{_libdir}/*.so.*
c9c56a2
%dir %{_localstatedir}/run/%{name}
0d17c11
/lib/udev/iphone-set-info
0d17c11
/lib/udev/ipod-set-info
c9c56a2
/lib/udev/rules.d/*.rules
c9c56a2
50e7fc5
aeaedec
%files devel
aeaedec
%defattr(-, root, root, 0755)
aeaedec
%{_includedir}/gpod-1.0/
c9c56a2
%{_libdir}/pkgconfig/%{name}-1.0.pc
4ff4459
%exclude %{_libdir}/*.a
aeaedec
%exclude %{_libdir}/*.la
aeaedec
%{_libdir}/*.so
aeaedec
aeaedec
3915c86
%files doc
3915c86
%defattr(-, root, root, 0755)
6a78616
%{_datadir}/gtk-doc
3915c86
3915c86
50e7fc5
%files -n python-gpod
3915c86
%defattr(-, root, root, 0755)
50e7fc5
%doc COPYING bindings/python/README bindings/python/examples
50e7fc5
%{python_sitearch}/gpod
50e7fc5
%exclude %{python_sitearch}/gpod/*.a
50e7fc5
%exclude %{python_sitearch}/gpod/*.la
50e7fc5
50e7fc5
aeaedec
%changelog
6a78616
* Mon Aug 23 2010 Todd Zullinger <tmz@pobox.com> - 0.7.93-4
6a78616
- Own %%{_datadir}/gtk-doc rather than require gtk-doc (#604388)
6a78616
11ac821
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.93-3
11ac821
- persuade configure to work with swig 2.0.0
11ac821
35e34de
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.93-2
35e34de
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
35e34de
c9c56a2
* Tue Jun 15 2010 Todd Zullinger <tmz@pobox.com> - 0.7.93-1
c9c56a2
- Update to 0.7.93
c9c56a2
- Drop upstreamed mount-dir location patch
c9c56a2
- Fix temp mount dir configure option typo
c9c56a2
- Drop duplicate libimobiledevice-devel BR
c9c56a2
- Remove pointless %%{__$command} macros
c9c56a2
cb181fe
* Tue Apr 13 2010 Dan HorĂ¡k <dan@danny.cz> - 0.7.91-3
cb181fe
- rebuilt for sg3_utils 1.29
cb181fe
55692af
* Mon Mar 22 2010 Rex Dieter <rdieter@fedoraproject.org> 0.7.91-2
55692af
- rebuild (libimobiledevice)
55692af
0d17c11
* Thu Mar 04 2010 Bastien Nocera <bnocera@redhat.com> 0.7.91-1
0d17c11
- Update to 0.7.91
0d17c11
- Use udev callout, disable HAL callouts
0d17c11
- Enable iPhone/iPod Touch support
0d17c11
cc817b7
* Tue Feb 09 2010 Todd Zullinger <tmz@pobox.com> - 0.7.90-1
cc817b7
- Update to 0.7.90
cc817b7
- Adjust default hal callout path (#547049)
cc817b7
  (Temporaily use --with-hal-callouts-dir=%%{_libexecdir}/scripts)
cc817b7
a0e44ac
* Thu Dec 10 2009 Bastien Nocera <bnocera@redhat.com> 0.7.2-6
a0e44ac
- Handle partial UTF-16 strings (#542176)
a0e44ac
4fad3f8
* Mon Oct 19 2009 Bastien Nocera <bnocera@redhat.com> 0.7.2-5
4fad3f8
- Fix UTF-16 string parsing patch again
4fad3f8
4fad3f8
* Mon Oct 19 2009 Bastien Nocera <bnocera@redhat.com> 0.7.2-4
4fad3f8
- Update UTF-16 string parsing patch
4fad3f8
008a514
* Sat Oct 17 2009 Bastien Nocera <bnocera@redhat.com> 0.7.2-3
008a514
- Fix crasher when parsing UTF-16 strings with a BOM (#517642)
008a514
2beb54e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-2
2beb54e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2beb54e
eaad970
* Fri Jun 05 2009 Todd Zullinger <tmz@pobox.com> - 0.7.2-1
eaad970
- Update to 0.7.2
eaad970
- Make doc subpackage noarch (on Fedora >= 10)
eaad970
- Drop --with-hal-callouts-dir from configure, the upstream default works now
eaad970
7b4667b
* Tue Apr 28 2009 Dan Horak <dan[at]danny.cz> - 0.7.0-3
7b4667b
- rebuild for sg3_utils 1.27
7b4667b
e7d838f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
e7d838f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e7d838f
2faa241
* Fri Feb 20 2009 Todd Zullinger <tmz@pobox.com> - 0.7.0-1
2faa241
- Update to 0.7.0
2faa241
- BR libxml2-devel
2faa241
30532e9
* Wed Jan 14 2009 Todd Zullinger <tmz@pobox.com> - 0.6.0-10
30532e9
- Fix path to hal callout (this should help setup the SysInfoExtended
30532e9
  file automagically)
30532e9
- Use /var/run/hald as mount dir for hal callout
30532e9
- Require hal
30532e9
- Require main package for the -doc subpackage
30532e9
7f98319
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.0-9
7f98319
- Rebuild for Python 2.6
7f98319
e43b72e
* Thu Oct 02 2008 Todd Zullinger <tmz@pobox.com> - 0.6.0-8
e43b72e
- The -devel package should require gtk2-devel as well
e43b72e
- Add gdk-pixbuf-2.0 to the pkg-config file requirements
e43b72e
3b7b71e
* Thu Aug 28 2008 Todd Zullinger <tmz@pobox.com> - 0.6.0-7
3b7b71e
- Ensure patches apply with no fuzz
3b7b71e
95f9e49
* Mon Jun 30 2008 Dan Horak <dan[at]danny.cz> - 0.6.0-6
95f9e49
- add patch for sg3_utils 1.26 and rebuild
95f9e49
f295049
* Wed May 14 2008 Todd Zullinger <tmz@pobox.com> - 0.6.0-5
f295049
- Make libgpod-devel require glib2-devel (#446442)
f295049
e125db0
* Tue Feb 12 2008 Todd Zullinger <tmz@pobox.com> - 0.6.0-4
e125db0
- rebuild for gcc 4.3
e125db0
cd6b67c
* Wed Dec 19 2007 Todd Zullinger <tmz@pobox.com> - 0.6.0-3
cd6b67c
- BR docbook-style-xsl to ensure the python docs are built correctly
cd6b67c
3915c86
* Wed Dec 19 2007 Todd Zullinger <tmz@pobox.com> - 0.6.0-2
3915c86
- add the NEWS file, which contains some info on getting newer iPods working
3915c86
- split out API docs into a separate package
3915c86
- set %%defattr for python-gpod
3915c86
ac9f7f0
* Wed Nov 21 2007 Todd Zullinger <tmz@pobox.com> - 0.6.0-1
ac9f7f0
- update to 0.6.0
ac9f7f0
- apply a few upstream patches that just missed the release
ac9f7f0
ecc9898
* Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> - 0.5.2-2
ecc9898
- Rebuild for build ID
ecc9898
50e7fc5
* Sat Aug 04 2007 Todd Zullinger <tmz@pobox.com> - 0.5.2-1
50e7fc5
- update to 0.5.2
50e7fc5
- replace %%makeinstall with %%{__make} DESTDIR=%%{buildroot} install
50e7fc5
- build python bindings, merging python-gpod package from extras
50e7fc5
- make %%setup quiet
50e7fc5
- patch to fixup building of the python docs, BR libxslt
50e7fc5
- update license tag
50e7fc5
ec80e5d
* Tue Jan 16 2007 Alexander Larsson <alexl@redhat.com> - 0.4.2-1
ec80e5d
- update to 0.4.2
ec80e5d
- Change %%description to reflect newer features
ec80e5d
- Remove TODO file from %%doc as it's not included anymore
ec80e5d
- Explicitly disable the python bindings, they are in the python-gpod package in
ec80e5d
  Extras until the Core/Extras merge
ec80e5d
e3cf9ee
* Mon Nov 20 2006 Alexander Larsson <alexl@redhat.com> - 0.4.0-2
e3cf9ee
- Add ldconfig calls in post/postun
e3cf9ee
4ff4459
* Mon Nov 13 2006 Matthias Clasen <mclasen@redhat.com> - 0.4.0-1
4ff4459
- Update to 0.4.0
4ff4459
- Include docs in the -devel package
4ff4459
- Don't ship static libraries
4ff4459
aabfd90
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.3.0-3.1
aabfd90
- rebuild
aabfd90
35532c9
* Tue Jun 06 2006 Jesse Keating <jkeating@redhat.com> - 0.3.0-3
35532c9
- Add missing BR of perl-XML-Parser
35532c9
ab2cdf9
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.3.0-2.2
ab2cdf9
- bump again for double-long bug on ppc(64)
ab2cdf9
15263f4
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.3.0-2.1
15263f4
- rebuilt for new gcc4.1 snapshot and glibc changes
15263f4
aeaedec
* Wed Jan 04 2006 John (J5) Palmieri <johnp@redhat.com> 0.3.0-2
aeaedec
- Modified Matthias Saou's SPEC file found on freshrpms.net
aeaedec
- Added to Fedora Core
aeaedec
aeaedec
* Mon Dec 19 2005 Matthias Saou <http://freshrpms.net/> 0.3.0-1
aeaedec
- Initial RPM release.
aeaedec