ishcherb / rpms / libgpod

Forked from rpms/libgpod 6 years ago
Clone
db722ad
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
db722ad
aeaedec
Summary: Library to access the contents of an iPod
aeaedec
Name: libgpod
db722ad
Version: 0.6.0
db722ad
Release: 2%{?dist}
db722ad
License: LGPLv2+
aeaedec
Group: System Environment/Libraries
aeaedec
URL: http://www.gtkpod.org/libgpod.html
db722ad
Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
db722ad
Patch0: libgpod-0.6.0-photoremove.patch
db722ad
Patch1: libgpod-0.6.0-ipod-touch-typos.patch
db722ad
Patch2: libgpod-0.6.0-spl-tracklen.patch
aeaedec
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
fbcec2d
BuildRequires: glib2-devel
fbcec2d
BuildRequires: gtk2-devel
fbcec2d
BuildRequires: gettext
db722ad
BuildRequires: hal-devel
db722ad
BuildRequires: libxslt
fbcec2d
BuildRequires: perl(XML::Parser)
db722ad
BuildRequires: pygobject2-devel
db722ad
Buildrequires: python-devel
db722ad
Buildrequires: python-mutagen
db722ad
Buildrequires: sg3_utils-devel
db722ad
Buildrequires: swig
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}
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
db722ad
%package doc
db722ad
Summary: API documentation for the libgpod library
db722ad
Group: Documentation
db722ad
License: GFDL
db722ad
Requires: gtk-doc
db722ad
db722ad
%description doc
db722ad
Libgpod is a library to access the contents of an iPod. It supports playlists,
db722ad
smart playlists, playcounts, ratings, podcasts, album artwork, photos, etc.
db722ad
db722ad
This package contains the API documentation.
db722ad
db722ad
db722ad
%package -n python-gpod
db722ad
Summary: Python module to access iPod content
db722ad
Group: Development/Languages
db722ad
Requires: %{name} = %{version}-%{release}
db722ad
Requires: python-mutagen
db722ad
db722ad
%description -n python-gpod
db722ad
A python module to access iPod content.  This module provides bindings to the
db722ad
libgpod library.
db722ad
db722ad
aeaedec
%prep
db722ad
%setup -q
db722ad
%patch0 -p0 -b .photoremove
db722ad
%patch1 -p0 -b .ipod-touch-typos
db722ad
%patch2 -p0 -b .spl-tracklen
db722ad
db722ad
# remove execute perms on the python examples as they'll be installed in %doc
db722ad
%{__chmod} -x bindings/python/examples/*.py
aeaedec
aeaedec
aeaedec
%build
db722ad
%configure
aeaedec
%{__make} %{?_smp_mflags}
aeaedec
aeaedec
aeaedec
%install
aeaedec
%{__rm} -rf %{buildroot}
db722ad
%{__make} DESTDIR=%{buildroot} install
aeaedec
%find_lang %{name}
aeaedec
db722ad
# remove Makefiles from the python examples dir
db722ad
%{__rm} -rf bindings/python/examples/Makefile*
db722ad
aeaedec
aeaedec
%clean
aeaedec
%{__rm} -rf %{buildroot}
aeaedec
db722ad
e3cf9ee
%post -p /sbin/ldconfig
e3cf9ee
%postun -p /sbin/ldconfig
aeaedec
db722ad
aeaedec
%files -f %{name}.lang
aeaedec
%defattr(-, root, root, 0755)
db722ad
%doc AUTHORS ChangeLog COPYING NEWS README*
db722ad
%{_bindir}/*
aeaedec
%{_libdir}/*.so.*
db722ad
%{_libdir}/hal/*
db722ad
%{_datadir}/hal/fdi/policy/20thirdparty/*.fdi
db722ad
aeaedec
aeaedec
%files devel
aeaedec
%defattr(-, root, root, 0755)
aeaedec
%{_includedir}/gpod-1.0/
aeaedec
%{_libdir}/pkgconfig/libgpod-1.0.pc
4ff4459
%exclude %{_libdir}/*.a
aeaedec
%exclude %{_libdir}/*.la
aeaedec
%{_libdir}/*.so
aeaedec
aeaedec
db722ad
%files doc
db722ad
%defattr(-, root, root, 0755)
db722ad
%{_datadir}/gtk-doc/html/libgpod
db722ad
db722ad
db722ad
%files -n python-gpod
db722ad
%defattr(-, root, root, 0755)
db722ad
%doc COPYING bindings/python/README bindings/python/examples
db722ad
%{python_sitearch}/gpod
db722ad
%exclude %{python_sitearch}/gpod/*.a
db722ad
%exclude %{python_sitearch}/gpod/*.la
db722ad
db722ad
aeaedec
%changelog
db722ad
* Wed Dec 19 2007 Todd Zullinger <tmz@pobox.com> - 0.6.0-2
db722ad
- add the NEWS file, which contains some info on getting newer iPods working
db722ad
- split out API docs into a separate package
db722ad
- set %%defattr for python-gpod
db722ad
db722ad
* Wed Nov 21 2007 Todd Zullinger <tmz@pobox.com> - 0.6.0-1
db722ad
- update to 0.6.0
db722ad
- apply a few upstream patches that just missed the release
db722ad
db722ad
* Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> - 0.5.2-2
db722ad
- Rebuild for build ID
db722ad
db722ad
* Sat Aug 04 2007 Todd Zullinger <tmz@pobox.com> - 0.5.2-1
db722ad
- update to 0.5.2
db722ad
- replace %%makeinstall with %%{__make} DESTDIR=%%{buildroot} install
db722ad
- build python bindings, merging python-gpod package from extras
db722ad
- make %%setup quiet
db722ad
- patch to fixup building of the python docs, BR libxslt
db722ad
- update license tag
db722ad
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