File libgpod3.spec of Package libgpod3
#
# spec file for package libgpod3 (Version 0.6.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libgpod3
Version: 0.6.0
Release: 79
Url: http://www.gtkpod.org/libgpod.html
Group: System/Libraries
License: LGPL v2.1 or later
Summary: Library to Manipulate Songs and Playlists Stored on an iPod
Source: libgpod-%{version}.tar.bz2
Patch0: libgpod-0.6.0-missing_includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes gcc-c++ gtk-doc gtk2-devel hal-devel intltool libxml2-devel perl-XML-Parser
BuildRequires: python-devel python-eyeD3 python-gobject2-devel python-mutagen swig taglib-devel update-desktop-files
BuildRequires: sg3_utils-devel
%description
libgpod is a library meant to abstract access to iPod content. It
provides an easy-to-use API to retrieve the list of files and
playliststored on an iPod, modify them, and save them back to the iPod.
Authors:
--------
Jorg Schuler <jcsjcs@users.sourceforge.net>
Christophe Fergeau <teuf@gnome.org>
%package -n libgpod-devel
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: Development files for libgpod
Requires: %{name} = %{version} glib2-devel
%description -n libgpod-devel
libgpod is a library meant to abstract access to iPod content. This
package includes the libraries and header files for libgpod
Authors:
--------
Jorg Schuler <jcsjcs@users.sourceforge.net>
Christophe Fergeau <teuf@gnome.org>
%package -n libgpod-doc
License: LGPL v2.1 or later
Group: System/Libraries
Summary: Documentation for libgpod
Requires: %{name} = %{version}
%description -n libgpod-doc
libgpod is a library meant to abstract access to iPod content. This
package includes the Documentation for libgpod
Authors:
--------
Jorg Schuler <jcsjcs@users.sourceforge.net>
Christophe Fergeau <teuf@gnome.org>
%package -n libgpod-python
License: LGPL v2.1 or later
Summary: A python module to access iPod content with libgpod
Group: Development/Languages/Python
Requires: python-mutagen
%description -n libgpod-python
A python module to access iPod content. This module provides bindings
to the libgpod library.
Authors:
--------
Jorg Schuler <jcsjcs@users.sourceforge.net>
Christophe Fergeau <teuf@gnome.org>
%package -n libgpod-lang
License: LGPL v2.1 or later
Summary: libgpod translations
Group: System/Localization
Requires: %{name} = %{version}
Provides: %{name}-lang-all = %{version}
Supplements: packageand(bundle-lang-other:%{name})
%description -n libgpod-lang
libgpod is a library meant to abstract access to iPod content. This
package includes the translations for libgpod
Authors:
--------
Jorg Schuler <jcsjcs@users.sourceforge.net>
Christophe Fergeau <teuf@gnome.org>
%package -n libgpod-tools
License: LGPL v2.1 or later
Summary: Tools for libgpod
Group: Development/Libraries/C and C++
Supplements: %{name}
%description -n libgpod-tools
libgpod is a library meant to abstract access to iPod content. This
package includes support tools for libgpod
Authors:
--------
Jorg Schuler <jcsjcs@users.sourceforge.net>
Christophe Fergeau <teuf@gnome.org>
%prep
%setup -q -n libgpod-%version
%patch0
%build
%configure --with-pic --with-python=yes\
--disable-static
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang libgpod
%fdupes -s $RPM_BUILD_ROOT
rm bindings/python/examples/Makefile*
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%{_libdir}/libgpod.so.3*
%files -n libgpod-tools
%defattr (-, root, root)
/usr/bin/ipod-read-sysinfo-extended
%{_libdir}/hal/libgpod-callout
/usr/share/hal/fdi/policy/20thirdparty/20-libgpod-sysinfo-extended.fdi
%files -n libgpod-lang -f libgpod.lang
%defattr (-, root, root)
%files -n libgpod-devel
%defattr (-, root, root)
%{_includedir}/gpod-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%exclude %{_libdir}/*.*a
%files -n libgpod-doc
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README README.SysInfo
%{_datadir}/gtk-doc/html/libgpod
%files -n libgpod-python
%defattr(-, root, root, 0755)
%doc COPYING bindings/python/examples
%{py_sitedir}/gpod
%changelog
* Tue Sep 09 2008 hvogel@suse.de
- backport scsi fixes (just some missing headers) and downgrade
to official release again to not break gtkpod
* Mon Sep 01 2008 crrodriguez@suse.de
- fix build by updating to an slightly newer snap 0.6.1+20080901.
* Tue May 27 2008 ro@suse.de
- buildreq sg3_utils-devel instead of scsi
* Thu Feb 14 2008 dmueller@suse.de
- libgpod3 is not a renamed package so remove the provides/obsoletes
* Sat Feb 09 2008 crrodriguez@suse.de
- fix some more packaging errors.
- Remove uneeded dependencies in the -devel package, it only needs
glib2-devel and glibc-devel (dependant packages may need changes)
- remove "la" files.
* Tue Jan 29 2008 hvogel@suse.de
- fix some specfile errors
- move nano support tools to tools subpackage which supplements
the main package.
* Wed Jan 23 2008 dmueller@suse.de
- fix iPod nano support
* Wed Jan 16 2008 hvogel@suse.de
- Update to version 0.60
- Rename library package to libgpod3
* Wed Jul 04 2007 hvogel@suse.de
- Update to version 0.5.2
* namespace cleanup
* updated translations
* various fixes
* New API functions to facilitate copying to the iPod in a
background thread and implementation of own copying code
* better sort order on the iPod when displaying
- renamed main package according to Shared Library Packaging Policy
* Tue Feb 13 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552#c17).
* Thu Feb 01 2007 hvogel@suse.de
- Update to 0.42
- build python bindings
* Tue Dec 19 2006 sbrabec@suse.cz
- Spec file cleanup.
- Splitted libgpod-doc from libgpod-devel.
* Mon Oct 23 2006 hvogel@suse.de
- Update to version 0.4.0
* added definitions for new sixth generation
iPod Videos, iPod Nanos and iPod Shuffle
* Sun Jul 02 2006 cthiel@suse.de
- update to version 0.3.2
* db-artwork-writer.c: increased IPOD_MMAP_SIZE from 2 to 16 MB as
a temporary workaround until a propoer solution can be
implemented.
* db-itunes-parser.h: replaced the #pragma pack(4) with an
'packed' attribute on _MhiiHeader only.
* ipod-device.c: (ipod_device_set_property): fixed possible
segfault when hald is present.
* configure.ac, po/es.po: added Spanish translation catalog
* libgpod-1.0.pc: added gobject-2.0 to 'Requires:' list
* src/db-itunes-parser.h: add '#pragma pack(4)' to fix 64bit issue
with padding (at least as a temporary fix).
* src/ipod-device.c: added HP type color photo ipod 'S492'.
* po/ja.po: updated Japanese catalog
* src/ipod-device.c: (ipod_device_set_property): fixed bug that
caused ipod-detection to fail if hal daemon was not running. As
a consequence cover art was not written to the iPod.
* src/itdb_itunesdb.c: (itunesstats_read) Fixed error when reading
the Shuffle's stat file (0x18 was used as minimal record length
instead of decimal '18').
* src/itdb_itunesdb.c, src/itdb_playlist.c, src/ithumb-writer.c:
removed nested-functions.
* src/ipod-device.c: (ipod_device_set_property) check hal_context
before accessing it to avoid segfault when hald is not running.
(ipod_device_hal_initialize) fixed memory leak: 'error' was not
freed if libhal_ctx_init() failed.
(ipod_device_get_model_index_from_table): fix warning about
unused computed value (thanks to Martin Aumueller)
* src/ipod-device.c: don't ignore return value of
fread/fwrite/ftell because of possible compiler warnings.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 hvogel@suse.de
- Update to version 0.3.0
* Wed Nov 30 2005 sbrabec@suse.cz
- New SuSE package, version 0.2.0.