50e7fc5
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
50e7fc5
99167f6
# python-gpod should not advertise _gpod.so in its Provides
99167f6
%define __provides_exclude_from %{python_sitearch}/.*\.so$
99167f6
703fd12
%ifarch %ix86 x86_64 ppc ppc64 ia64 %{arm} sparcv9 alpha s390x
703fd12
%global with_mono 1
703fd12
%else
703fd12
%global with_mono 0
703fd12
%endif
Bill Nottingham adc0220
%if 0?%{rhel}
Bill Nottingham adc0220
%global with_mono 0
Bill Nottingham adc0220
%endif
703fd12
aeaedec
Summary: Library to access the contents of an iPod
aeaedec
Name: libgpod
99167f6
Version: 0.8.2
99f1f1a
Release: 2%{?dist}
50e7fc5
License: LGPLv2+
aeaedec
Group: System Environment/Libraries
aeaedec
URL: http://www.gtkpod.org/libgpod.html
99167f6
Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2
Bastien Nocera 569e6c5
BuildRequires: automake libtool
Bastien Nocera 569e6c5
aeaedec
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
cd6b67c
BuildRequires: docbook-style-xsl
fbcec2d
BuildRequires: glib2-devel
1c971ab
BuildRequires: gdk-pixbuf2-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
703fd12
%if %{with_mono}
e0a7279
BuildRequires: mono-devel
703fd12
BuildRequires: gtk-sharp2-devel
703fd12
%endif
ac9f7f0
BuildRequires: pygobject2-devel
0d17c11
BuildRequires: python-devel
0d17c11
BuildRequires: python-mutagen
0d17c11
BuildRequires: sg3_utils-devel
0d17c11
BuildRequires: sqlite-devel
0d17c11
BuildRequires: swig
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
703fd12
%if %{with_mono}
e0a7279
%package sharp
e0a7279
Summary: C#/.NET library to access iPod content
e0a7279
Group: Development/Languages
e0a7279
Requires: %{name} = %{version}-%{release}
e0a7279
e0a7279
%description sharp
e0a7279
C#/.NET library to access iPod content.  Provides bindings to the libgpod
e0a7279
library.
e0a7279
e0a7279
e0a7279
%package sharp-devel
e0a7279
Summary: Development files for libgpod-sharp
e0a7279
Summary: C#/.NET library to access iPod content
e0a7279
Group: Development/Languages
e0a7279
Requires: %{name}-sharp = %{version}-%{release}
e0a7279
Requires: pkgconfig
e0a7279
e0a7279
%description sharp-devel
e0a7279
C#/.NET library to access iPod content.  Provides bindings to the libgpod
e0a7279
library.
e0a7279
e0a7279
This package contains the files required to develop programs that will use
e0a7279
libgpod-sharp.
703fd12
%endif
e0a7279
e0a7279
aeaedec
%prep
50e7fc5
%setup -q
99167f6
#autoreconf -f
50e7fc5
0e5f56a
# remove execute perms on the python examples as they'll be installed in %%doc
c9c56a2
chmod -x bindings/python/examples/*.py
aeaedec
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
Bastien Nocera 569e6c5
mkdir -p %{buildroot}/%{_libdir}/libgpod
Bastien Nocera 569e6c5
50e7fc5
# remove Makefiles from the python examples dir
c9c56a2
rm -rf bindings/python/examples/Makefile*
50e7fc5
703fd12
%if %{with_mono}
e0a7279
# remove execute perms from some libgpod-sharp files
e0a7279
chmod -x %{buildroot}/%{_libdir}/%{name}/*.dll.config
703fd12
%else
703fd12
# remove unwanted file
703fd12
rm -f %{buildroot}/%{_libdir}/pkgconfig/%{name}-sharp.pc
703fd12
%endif
e0a7279
2de769e
%if 0%{?fedora} >= 15
2de769e
# Setup tmpfiles.d config
2de769e
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
27c8259
echo "D /var/run/%{name} 0755 root root -" > \
2de769e
    %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
2de769e
%endif
2de769e
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*
2de769e
%if 0%{?fedora} >= 15
2de769e
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
2de769e
%endif
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
d4d8b95
%dir %{_libdir}/libgpod/
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/*.la
50e7fc5
50e7fc5
703fd12
%if %{with_mono}
e0a7279
%files sharp
e0a7279
%defattr(-, root, root, 0755)
e0a7279
%{_libdir}/%{name}/%{name}-sharp*
e0a7279
e0a7279
e0a7279
%files sharp-devel
e0a7279
%defattr(-, root, root, 0755)
e0a7279
%{_libdir}/pkgconfig/%{name}-sharp.pc
703fd12
%endif
e0a7279
aeaedec
%changelog
99f1f1a
* Tue Nov 08 2011 Adam Jackson <ajax@redhat.com> - 0.8.2-2
99f1f1a
- Rebuild to break bogus libpng dep
99f1f1a
1c971ab
* Wed Jul 27 2011 Christophe Fergeau <cfergeau@redhat.com>
17ceae6
- Remove duplicated call to autoreconf
1c971ab
- Small BuildRequires cleanups
1c971ab
99167f6
* Mon Jul 25 2011 Christian Krause <chkr@fedoraproject.org> - 0.8.2-1
99167f6
- Update to 0.8.2
99167f6
- Drop upstreamed patches
99167f6
- Prevent python-gpod from advertising _gpod.so in its Provides
99167f6
d4d8b95
* Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 0.8.0-12
d4d8b95
- libgpod-0.8.0-10.fc16 grew a mono-core dependency (#722976)
d4d8b95
71ad6bd
* Mon Jul 18 2011 Dan Horák <dan@danny.cz> - 0.8.0-11
71ad6bd
- rebuilt for sg3_utils 1.31
71ad6bd
Bastien Nocera 569e6c5
* Thu Jul 14 2011 Bastien Nocera <bnocera@redhat.com> 0.8.0-10
Bastien Nocera 569e6c5
- Add hashDB support
Bastien Nocera 569e6c5
27c8259
* Wed May 25 2011 Todd Zullinger <tmz@pobox.com> - 0.8.0-9
27c8259
- Fix tmpfiles.d user/group for /var/run/libgpod (#707787)
27c8259
2de769e
* Mon May 23 2011 Todd Zullinger <tmz@pobox.com> - 0.8.0-8
2de769e
- Support tmpfiles.d for Fedora >= 15 (#707066)
2de769e
f4c6bab
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-7
f4c6bab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f4c6bab
703fd12
* Tue Jan 18 2011 Dan Horák <dan[at]danny.cz> - 0.8.0-6
703fd12
- conditionalize mono support
703fd12
c0d6367
* Sat Jan 08 2011 Christian Krause <chkr@fedoraproject.org> - 0.8.0-5
c0d6367
- Change patch to fix 32 bit issues in the mono bindings
c0d6367
  (Itdb_Track data structure contained wrong values on x86 systems)
c0d6367
Bastien Nocera 78496e5
* Sun Dec 26 2010 Bastien Nocera <bnocera@redhat.com> 0.8.0-4
Bastien Nocera 78496e5
- Rebuild for new libimobiledevice
Bastien Nocera 78496e5
Paul F. Johnson 91ee071
* Thu Oct 28 2010 Paul F. Johnson <paul@all-the-johnsons.co.uk> - 0.8.0-3
Paul F. Johnson 91ee071
- Rebuild against new gtk-sharp2 and mono-2.8
Paul F. Johnson 91ee071
Nathaniel McCallum b56a744
* Wed Oct 20 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.8.0-2
Nathaniel McCallum b56a744
- Add patch to fix 32 bit issues in the mono bindings
Nathaniel McCallum b56a744
Nathaniel McCallum e744724
* Tue Oct 12 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.8.0-1
Nathaniel McCallum e744724
- Update to 0.8.0
Nathaniel McCallum e744724
Nathaniel McCallum f6df7f8
* Wed Sep 29 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.7.95-1
Nathaniel McCallum f6df7f8
- Update to 0.7.95
Nathaniel McCallum f6df7f8
- Drop upstreamed patches
Nathaniel McCallum f6df7f8
0e5f56a
* Sat Sep 04 2010 Todd Zullinger <tmz@pobox.com> - 0.7.94-1
0e5f56a
- Update to 0.7.94
e0a7279
- Add mono subpackage (#630181)
0e5f56a
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