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