rpms/libgpod/F-7 libgpod-0.6.0-ipod-touch-typos.patch, NONE, 1.1 libgpod-0.6.0-photoremove.patch, NONE, 1.1 libgpod-0.6.0-spl-tracklen.patch, NONE, 1.1 .cvsignore, 1.3, 1.4 libgpod.spec, 1.9, 1.10 sources, 1.4, 1.5
Todd M. Zullinger (tmz)
fedora-extras-commits at redhat.com
Wed Dec 19 19:27:06 UTC 2007
- Previous message (by thread): rpms/libgpod/F-8 libgpod-0.6.0-ipod-touch-typos.patch, NONE, 1.1 libgpod-0.6.0-photoremove.patch, NONE, 1.1 libgpod-0.6.0-spl-tracklen.patch, NONE, 1.1 .cvsignore, 1.4, 1.5 libgpod.spec, 1.11, 1.12 sources, 1.5, 1.6
- Next message (by thread): rpms/sugar/OLPC-2 .cvsignore, 1.91, 1.92 sources, 1.100, 1.101 sugar.spec, 1.116, 1.117
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: tmz
Update of /cvs/extras/rpms/libgpod/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv715
Modified Files:
.cvsignore libgpod.spec sources
Added Files:
libgpod-0.6.0-ipod-touch-typos.patch
libgpod-0.6.0-photoremove.patch
libgpod-0.6.0-spl-tracklen.patch
Log Message:
* Wed Dec 19 2007 Todd Zullinger <tmz at pobox.com> - 0.6.0-2
- add the NEWS file, which contains some info on getting newer iPods working
- split out API docs into a separate package
- set %defattr for python-gpod
libgpod-0.6.0-ipod-touch-typos.patch:
--- NEW FILE libgpod-0.6.0-ipod-touch-typos.patch ---
Index: ChangeLog
===================================================================
--- ChangeLog (revision 1792)
+++ ChangeLog (revision 1793)
@@ -1,3 +1,7 @@
+2007-11-16 Christophe Fergeau <teuf at gnome.org>
+
+ * src/itdb_device.c: fix typoes in iPod Touch model lists
+
2007-11-14 Christophe <teuf at gnome.org>
* src/itdb_itunesdb.c: get rid of local g_mkdir_with_parents copy
Index: src/itdb_device.c
===================================================================
--- src/itdb_device.c (revision 1792)
+++ src/itdb_device.c (revision 1793)
@@ -185,7 +185,7 @@
/* iPod touch G1 */
/* With touch screen */
{"A623", 8, ITDB_IPOD_MODEL_TOUCH_BLACK, ITDB_IPOD_GENERATION_TOUCH_1, 14},
- {"A627", 16, ITDB_IPOD_MODEL_NANO_SILVER, ITDB_IPOD_GENERATION_TOUCH_1, 28},
+ {"A627", 16, ITDB_IPOD_MODEL_TOUCH_BLACK, ITDB_IPOD_GENERATION_TOUCH_1, 28},
/* No known model number -- create a Device/SysInfo file with
@@ -257,7 +257,7 @@
N_("Video (1st Gen.)"),
N_("Video (2nd Gen.)"),
N_("Classic"),
- N_("Touch (Read-Only)"),
+ N_("Touch"),
N_("Unused"),
N_("Unused"),
NULL
libgpod-0.6.0-photoremove.patch:
--- NEW FILE libgpod-0.6.0-photoremove.patch ---
Index: ChangeLog
===================================================================
--- ChangeLog (revision 1778)
+++ ChangeLog (revision 1785)
@@ -1,5 +1,21 @@
-====== libgpod 0.6.0 ======
+2007-11-14 Christophe <teuf at gnome.org>
+ * src/itdb_photoalbum.c: use g_list_remove all instead of an
+ inefficient combination of g_list_find + g_list_remove
+
+2007-11-14 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+ * src/itdb_photoalbum.c (itdb_photodb_photoalbum_remove): make
+ sure same photo isn't freed multiple times if it was added in an
+ album multiple times.
+
+2007-11-13 Christophe Fergeau <teuf at gnome.org>
+
+ * src/itdb_photoalbum.c: fix bug in itdb_photodb_photoalbum_remove,
+ when removing all the photos from the photodatabase, we were
+ erasing elements and iterating over the list at the same time,
+ which resulted in the function not working properly
+
2007-11-10 Christophe Fergeau <teuf at gnome.org>
* Makefile.am: add README.SysInfo to EXTRADIST
Index: src/itdb_photoalbum.c
===================================================================
--- src/itdb_photoalbum.c (revision 1778)
+++ src/itdb_photoalbum.c (revision 1785)
@@ -1,4 +1,4 @@
-/* Time-stamp: <2007-11-03 20:27:36 jcs>
+/*
|
| Copyright (C) 2002-2006 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -615,10 +615,7 @@
for (it = db->photoalbums; it != NULL; it = it->next)
{
Itdb_PhotoAlbum *_album = it->data;
- while (g_list_find (_album->members, photo))
- {
- _album->members = g_list_remove (_album->members, photo);
- }
+ _album->members = g_list_remove_all (_album->members, photo);
}
/* Remove the photo from the image list */
db->photos = g_list_remove (db->photos, photo);
@@ -678,8 +675,6 @@
Itdb_PhotoAlbum *album,
gboolean remove_pics)
{
- GList *it;
-
g_return_if_fail (db);
g_return_if_fail (album);
@@ -687,11 +682,16 @@
* and remove them from the database */
if (remove_pics)
{
- for (it = album->members; it != NULL; it = it->next )
+ /* we can't iterate over album->members because
+ itdb_photodb_remove_photo() modifies album->members in
+ a not easily predicable way (e.g. @photo may exist in the
+ album several times). Therefore we remove photos until
+ album->members is empty. */
+ while (album->members)
{
- Itdb_Artwork *photo = it->data;
- itdb_photodb_remove_photo (db, NULL, photo);
- }
+ Itdb_Artwork *photo = album->members->data;
+ itdb_photodb_remove_photo (db, NULL, photo);
+ }
}
db->photoalbums = g_list_remove (db->photoalbums, album);
itdb_photodb_photoalbum_free (album);
libgpod-0.6.0-spl-tracklen.patch:
--- NEW FILE libgpod-0.6.0-spl-tracklen.patch ---
Index: ChangeLog
===================================================================
--- ChangeLog (revision 1796)
+++ ChangeLog (revision 1797)
@@ -1,3 +1,15 @@
+2007-11-17 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+ * src/itdb_playlist.c (itdb_splr_eval): track length in rules for
+ smart playlists was treated as seconds, but the iPod treats them
+ as milliseconds. If you told libgpod to create a smart playlist
+ with tracks less than 100 secs in length, but the life update of
+ the iPod would interpret that rule as "tracks less than 100 msec
+ in length", giving a vastly different result. Tested with iPod
+ Nano 1G and iPod nano Video (3G).
+
+ Requires corresponding fix in GUIs using this function.
+
2007-11-16 Christophe Fergeau <teuf at gnome.org>
* src/itdb_device.c: fix typoes in iPod Touch model lists
Index: src/itdb_playlist.c
===================================================================
--- src/itdb_playlist.c (revision 1796)
+++ src/itdb_playlist.c (revision 1797)
@@ -1,5 +1,4 @@
-/* Time-stamp: <2007-02-25 11:52:48 jcs>
-|
+/*
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
|
@@ -424,7 +423,7 @@
handled = TRUE;
break;
case ITDB_SPLFIELD_TIME:
- intcomp = track->tracklen/1000;
+ intcomp = track->tracklen;
handled = TRUE;
break;
case ITDB_SPLFIELD_COMPILATION:
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/libgpod/F-7/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore 13 Nov 2006 21:00:19 -0000 1.3
+++ .cvsignore 19 Dec 2007 19:26:15 -0000 1.4
@@ -1 +1 @@
-libgpod-0.4.0.tar.gz
+libgpod-0.6.0.tar.gz
Index: libgpod.spec
===================================================================
RCS file: /cvs/extras/rpms/libgpod/F-7/libgpod.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- libgpod.spec 16 Jan 2007 10:04:51 -0000 1.9
+++ libgpod.spec 19 Dec 2007 19:26:15 -0000 1.10
@@ -1,16 +1,28 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
Summary: Library to access the contents of an iPod
Name: libgpod
-Version: 0.4.2
-Release: 1%{?dist}
-License: LGPL
+Version: 0.6.0
+Release: 2%{?dist}
+License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtkpod.org/libgpod.html
-Source: http://prdownloads.sf.net/gtkpod/libgpod-%{version}.tar.gz
+Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
+Patch0: libgpod-0.6.0-photoremove.patch
+Patch1: libgpod-0.6.0-ipod-touch-typos.patch
+Patch2: libgpod-0.6.0-spl-tracklen.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: glib2-devel
BuildRequires: gtk2-devel
BuildRequires: gettext
+BuildRequires: hal-devel
+BuildRequires: libxslt
BuildRequires: perl(XML::Parser)
+BuildRequires: pygobject2-devel
+Buildrequires: python-devel
+Buildrequires: python-mutagen
+Buildrequires: sg3_utils-devel
+Buildrequires: swig
%description
Libgpod is a library to access the contents of an iPod. It supports playlists,
@@ -31,43 +43,114 @@
libgpod.
+%package doc
+Summary: API documentation for the libgpod library
+Group: Documentation
+License: GFDL
+Requires: gtk-doc
+
+%description doc
+Libgpod is a library to access the contents of an iPod. It supports playlists,
+smart playlists, playcounts, ratings, podcasts, album artwork, photos, etc.
+
+This package contains the API documentation.
+
+
+%package -n python-gpod
+Summary: Python module to access iPod content
+Group: Development/Languages
+Requires: %{name} = %{version}-%{release}
+Requires: python-mutagen
+
+%description -n python-gpod
+A python module to access iPod content. This module provides bindings to the
+libgpod library.
+
+
%prep
-%setup
+%setup -q
+%patch0 -p0 -b .photoremove
+%patch1 -p0 -b .ipod-touch-typos
+%patch2 -p0 -b .spl-tracklen
+
+# remove execute perms on the python examples as they'll be installed in %doc
+%{__chmod} -x bindings/python/examples/*.py
%build
-%configure --without-python
+%configure
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
-%makeinstall
+%{__make} DESTDIR=%{buildroot} install
%find_lang %{name}
+# remove Makefiles from the python examples dir
+%{__rm} -rf bindings/python/examples/Makefile*
+
%clean
%{__rm} -rf %{buildroot}
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+
%files -f %{name}.lang
%defattr(-, root, root, 0755)
-%doc AUTHORS ChangeLog COPYING README
+%doc AUTHORS ChangeLog COPYING NEWS README*
+%{_bindir}/*
%{_libdir}/*.so.*
+%{_libdir}/hal/*
+%{_datadir}/hal/fdi/policy/20thirdparty/*.fdi
+
%files devel
%defattr(-, root, root, 0755)
%{_includedir}/gpod-1.0/
%{_libdir}/pkgconfig/libgpod-1.0.pc
-%{_datadir}/gtk-doc/html/libgpod
%exclude %{_libdir}/*.a
%exclude %{_libdir}/*.la
%{_libdir}/*.so
+%files doc
+%defattr(-, root, root, 0755)
+%{_datadir}/gtk-doc/html/libgpod
+
+
+%files -n python-gpod
+%defattr(-, root, root, 0755)
+%doc COPYING bindings/python/README bindings/python/examples
+%{python_sitearch}/gpod
+%exclude %{python_sitearch}/gpod/*.a
+%exclude %{python_sitearch}/gpod/*.la
+
+
%changelog
+* Wed Dec 19 2007 Todd Zullinger <tmz at pobox.com> - 0.6.0-2
+- add the NEWS file, which contains some info on getting newer iPods working
+- split out API docs into a separate package
+- set %%defattr for python-gpod
+
+* Wed Nov 21 2007 Todd Zullinger <tmz at pobox.com> - 0.6.0-1
+- update to 0.6.0
+- apply a few upstream patches that just missed the release
+
+* Fri Aug 24 2007 Adam Jackson <ajax at redhat.com> - 0.5.2-2
+- Rebuild for build ID
+
+* Sat Aug 04 2007 Todd Zullinger <tmz at pobox.com> - 0.5.2-1
+- update to 0.5.2
+- replace %%makeinstall with %%{__make} DESTDIR=%%{buildroot} install
+- build python bindings, merging python-gpod package from extras
+- make %%setup quiet
+- patch to fixup building of the python docs, BR libxslt
+- update license tag
+
* Tue Jan 16 2007 Alexander Larsson <alexl at redhat.com> - 0.4.2-1
- update to 0.4.2
- Change %%description to reflect newer features
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/libgpod/F-7/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources 16 Jan 2007 10:04:51 -0000 1.4
+++ sources 19 Dec 2007 19:26:15 -0000 1.5
@@ -1 +1 @@
-c3c031dc6f1f6eff422598c84f2621bd libgpod-0.4.2.tar.gz
+b44d8aee3f6610370b6faf61770c5f3c libgpod-0.6.0.tar.gz
- Previous message (by thread): rpms/libgpod/F-8 libgpod-0.6.0-ipod-touch-typos.patch, NONE, 1.1 libgpod-0.6.0-photoremove.patch, NONE, 1.1 libgpod-0.6.0-spl-tracklen.patch, NONE, 1.1 .cvsignore, 1.4, 1.5 libgpod.spec, 1.11, 1.12 sources, 1.5, 1.6
- Next message (by thread): rpms/sugar/OLPC-2 .cvsignore, 1.91, 1.92 sources, 1.100, 1.101 sugar.spec, 1.116, 1.117
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list