[mt-daapd/forked-daapd] All debian/ files except of rules incorporated.
Matej Cepl
mcepl at fedoraproject.org
Mon Oct 11 11:43:38 UTC 2010
commit 4c90fb3ba041d0b5680dbb01a2bfdcd75bdf3acf
Author: Matěj Cepl <mcepl at redhat.com>
Date: Mon Oct 11 13:43:28 2010 +0200
All debian/ files except of rules incorporated.
debian-rules | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++
forked-daapd.spec | 36 +++++++++++++-----
2 files changed, 135 insertions(+), 10 deletions(-)
---
diff --git a/debian-rules b/debian-rules
new file mode 100644
index 0000000..a4539fb
--- /dev/null
+++ b/debian-rules
@@ -0,0 +1,109 @@
+#!/usr/bin/make -f
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+PWD=$(shell pwd)
+PATH := $(PWD)/debian:${PATH}
+
+autotools: autotools-stamp
+autotools-stamp:
+ -rm -f config.sub config.guess
+ ln -s /usr/share/misc/config.sub config.sub
+ ln -s /usr/share/misc/config.guess config.guess
+ touch autotools-stamp
+
+config.status: autotools-stamp configure
+ dh_testdir
+
+ chmod +x $(PWD)/debian/antlr3
+
+ ./configure \
+ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+ --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --mandir=\$${prefix}/share/man \
+ --enable-flac \
+ --enable-musepack \
+ --enable-itunes
+
+build: build-stamp
+build-stamp: config.status
+ dh_testdir
+ $(MAKE)
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f autotools-stamp build-stamp
+
+ # Add here commands to clean up after the build process.
+ [ ! -f Makefile ] || $(MAKE) distclean
+
+ rm -f config.sub config.guess
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/forked-daapd
+
+binary-indep:
+# Nothing here, move along.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_lintian
+ dh_installdocs
+ dh_installinit -- defaults 25
+ dh_installman
+ dh_installlogrotate
+ dh_compress
+ dh_link
+ dh_strip
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install autotools
+
+
+REV := $(shell git rev-list HEAD | wc -l | sed "s/[ \t]//g")
+VERSION := 0.11-0+git$(REV)
+COMMIT := $(shell git rev-list HEAD^!)
+DATE := $(shell date --rfc-2822)
+DIST := $(shell lsb_release -c -s)
+
+update-version:
+ echo "\
+forked-daapd (${VERSION}-1~${DIST}0) ${DIST}; urgency=low\n\
+\n\
+ * Automatic package for revision ${COMMIT}. \n\
+\n\
+ -- Eric Butler <eric at codebutler.com> ${DATE}" > debian/changelog
+ echo "\n\n*** PACKAGE WILL BE BUILT FOR ${DIST} ***\n\n"
+
diff --git a/forked-daapd.spec b/forked-daapd.spec
index ba50d8d..80f9d50 100644
--- a/forked-daapd.spec
+++ b/forked-daapd.spec
@@ -7,8 +7,8 @@
%global homedir %_var/lib/%username
%global gecos mt-daapd
-Summary: An iTunes-compatible media server
-Name: mt-daapd
+Summary: RSP server and iTunes-compatible DAAP server
+Name: forked-daapd
Epoch: 1
Version: 0.12
Release: 0%{?dist}
@@ -16,7 +16,14 @@ License: GPLv2+
Group: Applications/Multimedia
Source: http://alioth.debian.org/~jblache/forked-daapd/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Url: http://blog.technologeek.org/category/hacks/forked-daapd
+URL: http://blog.technologeek.org/category/hacks/forked-daapd
+
+# Debian Build-Depends: debhelper (>= 7), libflac-dev,
+# libtagc0-dev, libavcodec-dev (>= 3:0.svn20090204), libavformat-
+# dev (>= 3:0.svn20090204), libavahi-client-dev, libevent-dev,
+# libsqlite3-dev, libconfuse-dev, libavl-dev, libmxml-dev,
+# libplist-dev (>= 0.16), libgcrypt11-dev, libantlr3c-dev, antlr3,
+# autotools-dev, libswscale-dev, libicu-dev
BuildRequires: fedora-usermgmt-devel
BuildRequires: gdbm-devel, avahi-devel, zlib-devel
BuildRequires: flac-devel, libogg-devel, libvorbis-devel
@@ -30,10 +37,18 @@ Provides: group(%username) = %uid
Provides: user(%username) = %uid
%description
-The purpose of this project is built the best server software to serve
-digital music to the Roku Soundbridge and iTunes; to be able to serve
-the widest variety of digital music content over the widest range of
-devices.
+Linux-optimized RSP (Roku Streaming Protocol) and DAAP (Digital
+Audio Access Protocol) server written as a rewrite of/replacement
+for mt-daapd (Firefly Media Server).
+
+It allows you to share your music collection over the local
+network using the DAAP protocol also used by Apple's iTunes
+and/or the RSP protocol used by devices from Roku.
+
+Built-in, on the fly decoding support enables serving popular
+free music formats like FLAC, Ogg Vorbis or Musepack to those
+clients that do not otherwise support these formats.
+
%prep
%setup -q
@@ -45,9 +60,10 @@ make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_initrddir}
-mkdir -p -o %username -g %username -m 0775 %{buildroot}%{_localstatedir}/cache/mt-daapd
-install contrib/mt-daapd %{buildroot}%{_sysconfdir}/rc.d/init.d/mt-daapd
-install -m 0640 contrib/mt-daapd.conf %{buildroot}%{_sysconfdir}/mt-daapd.conf
+mkdir -p -o %username -g %username -m 0775 %{buildroot}%{_localstatedir}/cache/%{name}
+install contrib/forked-daapd.init %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}
+install contrib/forked-daapd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
+install -m 0640 contrib/%{name}.conf %{buildroot}%{_sysconfdir}/
%pre
%__fe_groupadd %uid -r %username &>/dev/null || :
More information about the scm-commits
mailing list