[mpdas] Initial import

Ankur Sinha ankursinha at fedoraproject.org
Wed Apr 20 11:39:40 UTC 2011


commit e3dd322c4ab995d709b1752e9d1f2999bdb18922
Author: Ankur Sinha <sanjay.ankur at gmail.com>
Date:   Wed Apr 20 17:09:23 2011 +0530

    Initial import

 .gitignore      |    1 +
 mpdas-man.patch |   12 ++++++++++
 mpdas.spec      |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 4 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..34c578e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mpdas-0.3.0.tar.bz2
diff --git a/mpdas-man.patch b/mpdas-man.patch
new file mode 100644
index 0000000..60e2cc5
--- /dev/null
+++ b/mpdas-man.patch
@@ -0,0 +1,12 @@
+diff -ur ../mpdas-0.3.0.orig/mpdas.1 ./mpdas.1
+--- ../mpdas-0.3.0.orig/mpdas.1	2010-11-22 06:45:12.000000000 +0530
++++ ./mpdas.1	2011-02-26 23:00:33.312580038 +0530
+@@ -21,7 +21,7 @@
+ .B \-v
+ Display version.
+ .SH "CONFIGURATION"
+-When mpdas starts it tries to read the configuration file $SYSCONFIGDIR/mpdasrc first, then the user configuration file ~/mpdasrc.
++When mpdas starts it tries to read the configuration file $SYSCONFIGDIR/mpdasrc first, then the user configuration file ~/.mpdasrc.
+ An example configuration file (mpdasrc.example) is usually provided with mpdas.
+ .TP
+ .B username = LASTFM USERNAME
diff --git a/mpdas.spec b/mpdas.spec
new file mode 100644
index 0000000..41a0d94
--- /dev/null
+++ b/mpdas.spec
@@ -0,0 +1,63 @@
+Name:			mpdas
+Version:		0.3.0
+Release:		2%{?dist}
+Summary:		An MPD audioscrobbling client
+
+Group:			Applications/Text
+License:		BSD
+URL:			http://50hz.ws/%{name}/
+Source0:		http://50hz.ws/%{name}/%{name}-%{version}.tar.bz2
+# fix a minor glitch in the man page
+Patch0:			mpdas-man.patch
+BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:	libmpd-devel libcurl-devel
+Provides:		bundled(md5-deutsch)
+
+%description
+mpdas is a MPD AudioScrobbler client supporting the 2.0 protocol 
+specs. It is written in C++ and uses libmpd to retrieve the song 
+data from MPD and libcurl to post it to Last.fm
+
+
+%prep
+%setup -q
+%patch0 
+
+
+%build
+export CONFIG="%{_sysconfdir}" PREFIX="$RPM_BUILD_ROOT%{_prefix}" MANPREFIX="$RPM_BUILD_ROOT%{_mandir}" CXXFLAGS+="$RPM_OPT_FLAGS"
+make 
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_prefix} $RPM_BUILD_ROOT%{_mandir}/man1/ $RPM_BUILD_ROOT%{_sysconfdir} $RPM_BUILD_ROOT%{_bindir}
+
+# Manually install them
+install -m 0755 mpdas $RPM_BUILD_ROOT%{_bindir}/mpdas
+rm mpdas -f
+install -m 0644 mpdas.1 $RPM_BUILD_ROOT%{_mandir}/man1/mpdas.1
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README mpdasrc.example ChangeLog
+%{_mandir}/man1/mpdas.1*
+%{_bindir}/mpdas
+
+%changelog
+* Thu Apr 14 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.0-2
+- Changed make flags
+
+* Mon Mar 14 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org>-  0.3.0-2
+- Added virtual requires for md5-deutshc
+
+* Sat Feb 26 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.0-2
+- add a patch to fix a minor glitch in the man page
+
+* Sat Feb 26 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.0-1
+- Initial rpm build
diff --git a/sources b/sources
index e69de29..b68f430 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d9f6e4d3b000d95835f39fb1aa3f4b28  mpdas-0.3.0.tar.bz2


More information about the scm-commits mailing list