Author: jajcus                       Date: Wed Feb  3 12:11:34 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new package

---- Files affected:
packages/mtp-lastfm:
   mtp-lastfm.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/mtp-lastfm/mtp-lastfm.spec
diff -u /dev/null packages/mtp-lastfm/mtp-lastfm.spec:1.1
--- /dev/null   Wed Feb  3 13:11:34 2010
+++ packages/mtp-lastfm/mtp-lastfm.spec Wed Feb  3 13:11:29 2010
@@ -0,0 +1,75 @@
+# $Revision$, $Date$
+#
+Summary:       Last.Fm scrobbler for MTP devices
+Name:          mtp-lastfm
+Version:       0.83
+Release:       1
+License:       GPL v3
+Group:         Applications
+# http://github.com/woodenbrick/mtp-lastfm/tarball/%{version}
+%define                commit 9a6ef66
+Source0:       http://download.github.com/woodenbrick-%{name}-%{commit}.tar.gz
+# Source0-md5: 0774bb8cf776e050dc627a2b0a8d7654
+URL:           http://github.com/woodenbrick/mtp-lastfm
+BuildRequires: python-distutils-extra
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires:      python-modules
+Requires:      libmtp-progs
+Requires:      sqlite3
+Requires:      python-pygtk-gtk
+Requires:      python-pygtk-glade
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The purpose of this program is to scrobble tracks from mtp devices (such as the
+Creative Zen, or the Zune) to last.fm.  You can love, ban and tag tracks before
+scrobbling, and also use the ratings on your device (5=Love, 1=Ban).
+
+%prep
+%setup -qn woodenbrick-%{name}-%{commit}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+# fix unsupported ??_?? locales
+for dir in $RPM_BUILD_ROOT%{_localedir}/* ; do
+       locale=`basename $dir`
+       [ "$locale" = "zh_CN" ] && continue
+       mv $RPM_BUILD_ROOT%{_localedir}/"$locale" 
$RPM_BUILD_ROOT%{_localedir}/"${locale%_*}" 
+done
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc README.textile CHANGELOG
+%attr(755,root,root) %{_bindir}/*
+%{_desktopdir}/*
+%{_datadir}/%{name}
+%{py_sitescriptdir}/mtplastfm
+%{py_sitescriptdir}/*.egg-info
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/02/03 12:11:29  jajcus
+- new package
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to