rpms/nas/devel nas.spec, NONE, 1.1 nasd.init, NONE, 1.1 nasd.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Frank Büttner (frankb)
fedora-extras-commits at redhat.com
Thu Jul 13 09:59:53 UTC 2006
Author: frankb
Update of /cvs/extras/rpms/nas/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv402/devel
Modified Files:
.cvsignore sources
Added Files:
nas.spec nasd.init nasd.sysconfig
Log Message:
auto-import nas-1.8-5FC5 on branch devel from nas-1.8-5FC5.src.rpm
--- NEW FILE nas.spec ---
Name: nas
Summary: The Network Audio System (NAS)
Version: 1.8
Release: 5%{?dist}
#for FC>4
BuildRequires: imake bison flex libXaw-devel libXpm-devel libXp-devel libXext-devel libXt-devel
#for FC4
#BuildRequires: bison flex xorg-x11-devel
URL: http://nas.codebrilliance.com
License: Public Domain
Group: Development/Libraries
Source0: http://nas.codebrilliance.com/nas/nas-%{version}.src.tar.gz
Source1: http://apt.kde-redhat.org/apt/kde-redhat/SOURCES/nas/nasd.init
Source2: http://apt.kde-redhat.org/apt/kde-redhat/SOURCES/nas/nasd.sysconfig
Buildroot: %{_tmppath}/NAS-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(preun): chkconfig /sbin/service
Requires(post): chkconfig
%package devel
Summary: Development and doc files for the NAS
Requires: %{name} = %{version}-%{release}
Group: Development/Libraries
%description
In a nutshell, NAS is the audio equivalent of an X display server.
The Network Audio System (NAS) was developed by NCD for playing,
recording, and manipulating audio data over a network. Like the
X Window System, it uses the client/server model to separate
applications from the specific drivers that control audio input
and output devices.
Key features of the Network Audio System include:
o Device-independent audio over the network
o Lots of audio file and data formats
o Can store sounds in server for rapid replay
o Extensive mixing, separating, and manipulation of audio data
o Simultaneous use of audio devices by multiple applications
o Use by a growing number of ISVs
o Small size
o Free! No obnoxious licensing terms
%description devel
Development files and the documentation
%prep
%setup -q -n nas-%{version}
%build
xmkmf
make %{?_smp_mflags} World
%install
rm -rf $RPM_BUILD_ROOT
make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} INCROOT=%{_includedir} \
LIBDIR=%{_libdir}/X11 SHLIBDIR=%{_libdir} USRLIBDIR=%{_libdir} MANPATH=%{_mandir} \
install install.man
install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/nasd
install -p -m644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/nasd
#remove satic lib
rm $RPM_BUILD_ROOT/usr/lib/*.a
#rename cofigfile
mv $RPM_BUILD_ROOT/etc/nas/nasd.conf.eg $RPM_BUILD_ROOT/etc/nas/nasd.conf
%post
/sbin/ldconfig
/sbin/chkconfig --add nasd
%postun -p /sbin/ldconfig
%preun
if [ $1 = 0 ] ; then
/sbin/chkconfig --del nasd
/sbin/service nasd stop >/dev/null 2>&1 ||:
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /etc/nas
%config (noreplace) /etc/nas/nasd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/nasd
%{_initrddir}/nasd
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_libdir}/libaudio.so.2
%{_libdir}/libaudio.so.2.4
%{_libdir}/X11/AuErrorDB
%doc README BUGS FAQ HISTORY TODO
%files devel
%defattr(-,root,root)
%{_includedir}/audio/
%{_libdir}/libaudio.so
%{_mandir}/man3/*
%changelog
* Wed Jul 12 2006 Frank Büttner <frank-buettner at gmx.net> - 1.8-5%{?dist}
- fix include dir
* Fri Jul 7 2006 Frank Büttner <frank-buettner at gmx.net> - 1.8-4%{?dist}
- add Requires(preun): chkconfig /sbin/service
- add Requires(post): chkconfig
- add remarks for FC4
* Fri Jul 7 2006 Frank Büttner <frank-buettner at gmx.net> - 1.8-3%{?dist}
- move man3 to devel
- rename nasd.conf.eg to .conf
- add build depend for libXext-devel libXt-devel
- change license to Public Domain
- add path to make intall
- add rc.d/sysconfig files
* Fri Jul 7 2006 Frank Büttner <frank-buettner at gmx.net> - 1.8-2%{?dist}
- move libaudio.so.2 to main package
- switch package name from NAS to nas
- fix depend for devel package
- fix version
- add nas subdir in etc to main package
- set license to Distributable
- add readme file
* Fri Jul 7 2006 Frank Büttner <frank-buettner at gmx.net> - 1.8-1%{?dist}
- start
--- NEW FILE nasd.init ---
#!/bin/bash
#
# nasd Starts nasd.
#
#
# chkconfig: 345 88 88
# description: Network transparent audio server
#Servicename
SERVICE=nasd
#Source function library.
. /etc/init.d/functions
[ -f /usr/bin/$SERVICE ] || exit 0
# Source config
if [ -f /etc/sysconfig/$SERVICE ] ; then
. /etc/sysconfig/$SERVICE
else
NASD_OPTIONS="-b -local"
fi
RETVAL=0
start() {
#not for now #Be sure that /dev/dsp is readable
#not for now chmod g+rw /dev/sound/*
#not for now daemon --user=$SERVICE $SERVICE $NASD_OPTIONS
daemon $SERVICE $NASD_OPTIONS
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
return $RETVAL
}
stop() {
killproc $SERVICE
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$SERVICE
return $RETVAL
}
rhstatus() {
status $SERVICE
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
status)
rhstatus
;;
restart|reload)
restart
;;
condrestart)
[ -f /var/lock/subsys/$SERVICE ] && restart || :
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
exit 1
esac
exit $?
--- NEW FILE nasd.sysconfig ---
# Options to nasd
# See nasd(1) for more details
# -aa allow any client to connect
# -local allow local clients only
# -b detach and run in background
# -v enable verbose messages
# -d <num> enable debug messages at level <num>
# -pn partial networking enabled
# -nopn partial networking disabled [default]
NASD_OPTIONS="-b -local"
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/nas/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 13 Jul 2006 09:58:22 -0000 1.1
+++ .cvsignore 13 Jul 2006 09:59:53 -0000 1.2
@@ -0,0 +1 @@
+nas-1.8.src.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/nas/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 13 Jul 2006 09:58:22 -0000 1.1
+++ sources 13 Jul 2006 09:59:53 -0000 1.2
@@ -0,0 +1 @@
+7e5ecab75a48c75b0c6305fcced34a97 nas-1.8.src.tar.gz
More information about the fedora-extras-commits
mailing list