rpms/garmin-sync/devel garmin-sync-outdir.patch, NONE, 1.1 garmin-sync-path.patch, NONE, 1.1 garmin-sync-unitid.patch, NONE, 1.1 garmin-sync.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Jeremy Katz (katzj)
fedora-extras-commits at redhat.com
Mon Jun 23 18:11:18 UTC 2008
- Previous message (by thread): rpms/kyum/devel Makefile, 1.1, NONE kyum-0.6.3-workaround-missing-libfam.la.patch, 1.1, NONE kyum-0.7.2-DlgInfo.patch, 1.1, NONE kyum-0.7.5-su.patch, 1.1, NONE kyum.sh, 1.1, NONE kyum.spec, 1.18, NONE sources, 1.5, NONE
- Next message (by thread): [pkgdb] collectl (Fedora EPEL, 4) updated by kevin
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: katzj
Update of /cvs/pkgs/rpms/garmin-sync/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15590/devel
Modified Files:
.cvsignore sources
Added Files:
garmin-sync-outdir.patch garmin-sync-path.patch
garmin-sync-unitid.patch garmin-sync.spec import.log
Log Message:
Initial import
garmin-sync-outdir.patch:
--- NEW FILE garmin-sync-outdir.patch ---
diff -up garmin-sync-0.3/garminsync.py.outdir garmin-sync-0.3/garminsync.py
--- garmin-sync-0.3/garminsync.py.outdir 2008-06-16 14:17:02.000000000 -0400
+++ garmin-sync-0.3/garminsync.py 2008-06-16 14:18:39.000000000 -0400
@@ -360,6 +360,10 @@ class GarminSync:
"-d", "--debug", dest="debug",
help="what types of debug info to show. (all,usb)",
metavar="DEBUG_TYPE", default='')
+ parser.add_option(
+ "-o", "--output-directory", dest="outdir",
+ help="What directory to output to",
+ default="exports")
self.options, self.args = parser.parse_args(args)
def setUpLogging(self, debug):
@@ -382,5 +386,5 @@ class GarminSync:
self.setUpLogging(self.options.debug)
link = garmin.USBLink()
gps = ActivityGarmin(link)
- gps.export_activities('exports')
+ gps.export_activities(self.options.outdir)
return 0
garmin-sync-path.patch:
--- NEW FILE garmin-sync-path.patch ---
diff -up garmin-sync-0.3/garmin-sync.path garmin-sync-0.3/garmin-sync
--- garmin-sync-0.3/garmin-sync.path 2008-06-16 14:14:47.000000000 -0400
+++ garmin-sync-0.3/garmin-sync 2008-06-16 14:15:25.000000000 -0400
@@ -16,6 +16,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import sys
+sys.path.append("/usr/share/garmin-sync")
from garminsync import GarminSync
garmin-sync-unitid.patch:
--- NEW FILE garmin-sync-unitid.patch ---
diff -up garmin-sync-0.3/garmin.py.unitid garmin-sync-0.3/garmin.py
--- garmin-sync-0.3/garmin.py.unitid 2008-06-16 14:15:37.000000000 -0400
+++ garmin-sync-0.3/garmin.py 2008-06-16 14:15:52.000000000 -0400
@@ -2114,6 +2114,7 @@ class USBLink:
self.Pid_Session_Started2]:
session_started = True
[self.unit_id] = struct.unpack("<L", unit_id_data)
+ return self.unit_id
def constructPacket(self, layer, packet_id, data=None):
"""Construct an USB package to be sent."""
--- NEW FILE garmin-sync.spec ---
Name: garmin-sync
Version: 0.3
Release: 1%{?dist}
Summary: Download data from Garmin fitness computers
Group: Applications/Communications
License: GPLv2+
URL: https://bugs.launchpad.net/garmin-sync
Source0: http://launchpad.net/garmin-sync/devel/%{version}/+download/garmin-sync-%{version}.tar.gz
Patch0: garmin-sync-unitid.patch
Patch1: garmin-sync-outdir.patch
Patch2: garmin-sync-path.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildArch: noarch
Requires: pyusb
%description
garmin-sync allows you to download information from your Garmin Edge
and Forerunner devices.
%prep
%setup -q
%patch0 -p1 -b .unitid
%patch1 -p1 -b .outdir
%patch2 -p1 -b .path
%build
# nothing to do
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/garmin-sync
# install the files, strip shebang headers
for f in *.py ; do install -m 0644 $f $RPM_BUILD_ROOT/%{_datadir}/garmin-sync ; sed -i -e s'/^#!.*//' $RPM_BUILD_ROOT/%{_datadir}/garmin-sync/$f ; done
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
install -m 0755 garmin-sync $RPM_BUILD_ROOT/%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
%{_bindir}/garmin-sync
%{_datadir}/garmin-sync
%changelog
* Mon Jun 16 2008 Jeremy Katz <katzj at redhat.com> - 0.3-1
- Initial build
- Add patch from Launchpad #226300 to fix output format
- Add patch to allow installing
- Add patch to add --output-directory option
--- NEW FILE import.log ---
garmin-sync-0_3-1_fc10:HEAD:garmin-sync-0.3-1.fc10.src.rpm:1214244452
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/garmin-sync/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 17 Jun 2008 17:20:38 -0000 1.1
+++ .cvsignore 23 Jun 2008 18:10:17 -0000 1.2
@@ -0,0 +1 @@
+garmin-sync-0.3.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/garmin-sync/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 17 Jun 2008 17:20:38 -0000 1.1
+++ sources 23 Jun 2008 18:10:17 -0000 1.2
@@ -0,0 +1 @@
+230074f770e02c91875bf372363f9853 garmin-sync-0.3.tar.gz
- Previous message (by thread): rpms/kyum/devel Makefile, 1.1, NONE kyum-0.6.3-workaround-missing-libfam.la.patch, 1.1, NONE kyum-0.7.2-DlgInfo.patch, 1.1, NONE kyum-0.7.5-su.patch, 1.1, NONE kyum.sh, 1.1, NONE kyum.spec, 1.18, NONE sources, 1.5, NONE
- Next message (by thread): [pkgdb] collectl (Fedora EPEL, 4) updated by kevin
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list