3463be2
Name:       nas 
3463be2
Summary:    The Network Audio System (NAS)
5bc850d
Version:    1.9.4
dce5bd3
Release:    8%{?dist}
3463be2
URL:        http://radscan.com/nas.html
5bc850d
# README:               MIT (main license)
5bc850d
# config/aclocal.m4:    FSFULLR
5bc850d
# config/config.sub:    GPL with exceptions, effectively same as main license
5bc850d
# config/ltmain.sh:     GPLv2+ with exceptions, effectively same as main license
5bc850d
# config/config.guess:  GPLv2+ with exceptions, effectively same as main license
5bc850d
# config/configure:     FSFUL
5bc850d
# config/install-sh:    MIT
5bc850d
# server/dda/voxware/auvoxware.h:
5bc850d
#                           (MIT) and
5bc850d
#                           (something similar to MIT license by SCO)
5bc850d
# server/dda/sun/ausuni.c:  (MIT) and
5bc850d
#                           (something similar to MIT)
5bc850d
# lib/audio/aiff.c          MIT (with Apple warranty declaration)
5bc850d
# Following flawed files has been removed or correcterd according to upstream
5bc850d
# commit e43cf3377b8b87114796556f5ad0469d4e79e183:
5bc850d
# server/dda/hpux/auhpux.h: (MIT) and
5bc850d
#                           (as-is with unclear commercial prohibition)
5bc850d
# doc/xcon94slide.ps:       All rights reserved (Frame Technology Corporation)
5bc850d
# doc/overview.ps:          All rights reserved (Network Computing Devices)
5bc850d
# doc/library.ps:           All rights reserved (Network Computing Devices)
5bc850d
# doc/title.ps:             All rights reserved (Network Computing Devices)
5bc850d
License:    MIT
3463be2
%define daemon nasd
5bc850d
# Original source nas-1.9.4.src.tar.gz (MD5:dac0e6cd3e5d6a37ae1dff364236a752)
5bc850d
# is from
5bc850d
# <http://downloads.sourceforge.net/%%{name}/%%{name}-%%{version}.src.tar.gz>.
5bc850d
# The nas-1.9.4.repacked.tar.gz corrects flawed files according to upstream
5bc850d
# commit e43cf3377b8b87114796556f5ad0469d4e79e183. Offical post-1.9.4 release
5bc850d
# should be free as speech and will not need repacking.
5bc850d
Source0:    %{name}-%{version}.repacked.tar.gz
7cf2e5a
Source1:    %{daemon}.service
3463be2
Source2:    %{daemon}.sysconfig
97a5e19
Patch0:     %{name}-1.9.3-Move-AuErrorDB-to-SHAREDIR.patch
5bc850d
BuildRequires:  bison
5bc850d
BuildRequires:  flex
89b394b
BuildRequires:  gcc
3463be2
BuildRequires:  imake
5bc850d
BuildRequires:  libX11-devel
5bc850d
BuildRequires:  libXau-devel
5bc850d
BuildRequires:  libXaw-devel
5bc850d
BuildRequires:  libXext-devel
5bc850d
BuildRequires:  libXp-devel
5bc850d
BuildRequires:  libXt-devel
89b394b
BuildRequires:  make
423898f
BuildRequires:  perl-generators
7cf2e5a
BuildRequires:  systemd-units
7c51080
# Update config.sub to support aarch64, bug #926196
5bc850d
BuildRequires:  autoconf
5bc850d
BuildRequires:  automake
5bc850d
BuildRequires:  libtool
3463be2
Requires:           %{name}-libs = %{version}-%{release}
7cf2e5a
Requires(post):     systemd-sysv systemd-units
7cf2e5a
Requires(preun):    systemd-units
7cf2e5a
Requires(postun):   systemd-units
d328df4
d328df4
frankb 51b9968
%package devel
3463be2
Summary:    Development and doc files for the NAS 
3463be2
Requires:   %{name}-libs = %{version}-%{release}
frankb 51b9968
d328df4
%package libs
5bc850d
Summary:    Run-time libraries for NAS
d328df4
d328df4
frankb 51b9968
%description
5bc850d
In a nutshell, NAS is the audio equivalent of an X display server.  The
5bc850d
Network Audio System (NAS) was developed for playing, recording, and
5bc850d
manipulating audio data over a network.  Like the X Window System, it uses the
5bc850d
client/server model to separate applications from the specific drivers that
5bc850d
control audio input and output devices.
5bc850d
frankb 51b9968
Key features of the Network Audio System include:
5bc850d
    • Device-independent audio over the network
5bc850d
    • Lots of audio file and data formats
5bc850d
    • Can store sounds in server for rapid replay
5bc850d
    • Extensive mixing, separating, and manipulation of audio data
5bc850d
    • Simultaneous use of audio devices by multiple applications
5bc850d
    • Use by a growing number of ISVs
5bc850d
    • Small size
5bc850d
    • Free!  No obnoxious licensing terms
3463be2
3463be2
%description libs
3463be2
%{summary}.
frankb 51b9968
frankb 51b9968
%description devel
6def1ad
Development files and the documentation for Network Audio System.
frankb 51b9968
93f8713
frankb 51b9968
%prep
3463be2
%setup -q
97a5e19
%patch0 -p1 -b .move_AuErrorDB
f8bdb4c
7c51080
# Update config.sub to support aarch64, bug #926196
7c51080
cp -p %{_datadir}/automake-*/config.{sub,guess} config
7c51080
sed -i -e '/AC_FUNC_SNPRINTF/d' config/configure.ac
7c51080
autoreconf -i -f config
3463be2
for F in HISTORY; do
3463be2
    iconv --from-code=ISO_8859-15 --to-code=UTF-8 "$F" > "${F}.tmp"
3463be2
    touch -r "$F" "${F}.tmp"
3463be2
    mv "${F}.tmp" "$F"
3463be2
done
3463be2
93f8713
frankb 51b9968
%build
frankb 51b9968
xmkmf
3463be2
# See HISTORY file how to modify CDEBUGFLAGS
dce5bd3
make WORLDOPTS='-k CDEBUGFLAGS="%{optflags}" -k EXTRA_LDOPTIONS="%{__global_ldflags}"' %{?_smp_mflags} World
frankb 51b9968
93f8713
frankb 51b9968
%install
93f8713
make DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} INCROOT=%{_includedir} \
3463be2
  LIBDIR=%{_libdir}/X11  SHLIBDIR=%{_libdir} USRLIBDIR=%{_libdir} \
dce5bd3
  MANPATH=%{_mandir} INSTALLFLAGS='-p' EXTRA_LDOPTIONS='%{__global_ldflags}' \
93f8713
  install install.man
93f8713
7cf2e5a
install -p -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/%{daemon}.service
3463be2
install -p -m644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{daemon}
frankb 51b9968
3463be2
# Rename config file
3463be2
mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/nasd.conf{.eg,}
frankb 51b9968
Rex Dieter aede81a
## unpackaged files
Rex Dieter aede81a
# Remove static libraries
Rex Dieter aede81a
rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*.a
Rex Dieter aede81a
frankb 51b9968
3463be2
%post
237bfb0
%systemd_post %{daemon}.service
frankb 51b9968
frankb 51b9968
%preun
237bfb0
%systemd_preun %{daemon}.service
3463be2
3463be2
%postun
237bfb0
%systemd_postun_with_restart %{daemon}.service
frankb 51b9968
7cf2e5a
%triggerun -- %{name} < 1.9.3-1
7cf2e5a
echo '%{name}: User must migrate to systemd target manually by runnig:'
7cf2e5a
echo '  systemd-sysv-convert --apply %{daemon}'
7cf2e5a
# Save the current service runlevel info
7cf2e5a
/usr/bin/systemd-sysv-convert --save %{daemon} >/dev/null 2>&1 ||:
7cf2e5a
# Run these because the SysV package being removed won't do them
7cf2e5a
/sbin/chkconfig --del %{daemon} >/dev/null 2>&1 || :
7cf2e5a
/bin/systemctl try-restart %{daemon}.service >/dev/null 2>&1 || :
7cf2e5a
7cf2e5a
3463be2
d328df4
%post libs -p /sbin/ldconfig
d328df4
d328df4
%postun libs -p /sbin/ldconfig
d328df4
d328df4
frankb 51b9968
%files
3463be2
%dir %{_sysconfdir}/%{name}
3463be2
%config(noreplace) %{_sysconfdir}/%{name}/nasd.conf
3463be2
%config(noreplace) %{_sysconfdir}/sysconfig/%{daemon}
7cf2e5a
%{_unitdir}/%{daemon}.service
frankb 51b9968
%{_bindir}/*
frankb 51b9968
%{_mandir}/man1/*
frankb 51b9968
%{_mandir}/man5/*
d328df4
d328df4
%files libs
5bc850d
# The LICENSE_CLARIFICIATION is specific to repacked sources.
5bc850d
%doc FAQ HISTORY LICENSE_CLARIFICIATION README TODO
5bc850d
%{_libdir}/libaudio.so.*
3463be2
%{_datadir}/X11/AuErrorDB
frankb 51b9968
frankb 51b9968
%files devel
5bc850d
%doc doc/actions doc/protocol.txt doc/*.ps
frankb 51b9968
%{_includedir}/audio/
frankb 51b9968
%{_libdir}/libaudio.so
frankb 51b9968
%{_mandir}/man3/*
frankb 51b9968
93f8713
1ea7e39
%changelog
dce5bd3
* Mon Jul 31 2017 Petr Pisar <ppisar@redhat.com> - 1.9.4-8
dce5bd3
- Respect distribution linker flags
dce5bd3
2e87905
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.4-7
2e87905
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2e87905
bb098b2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.4-6
bb098b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bb098b2
ef844bb
* Wed Feb 25 2015 Petr Pisar <ppisar@redhat.com> - 1.9.4-5
ef844bb
- Put auscope client back
ef844bb
Rex Dieter aede81a
* Fri Feb 20 2015 Rex Dieter <rdieter@fedoraproject.org> 1.9.4-4
Rex Dieter aede81a
- omit broken/perl-based auscope client app
Rex Dieter aede81a
7e66a76
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.4-3
7e66a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7e66a76
2d53c07
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.4-2
2d53c07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2d53c07
5bc850d
* Tue Oct 08 2013 Petr Pisar <ppisar@redhat.com> - 1.9.4-1
5bc850d
- 1.9.4 bump
5bc850d
- Package license corrected to MIT
5bc850d
f8bdb4c
* Mon Sep 16 2013 Petr Pisar <ppisar@redhat.com> - 1.9.3-9
f8bdb4c
- Fix CVE-2013-4258 (formatting string for syslog call) (bug #1006753)
fcebf48
- Fix CVE-2013-4256 (parsing display number, heap overflow when processing
fcebf48
  AUDIOHOST variable) (bug #1006753)
ab2f94e
- Fix race when opening a TCP device (bug #1006753)
f8bdb4c
7350ce1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.3-8
7350ce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7350ce1
a21aec6
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.9.3-7
a21aec6
- Perl 5.18 rebuild
a21aec6
7c51080
* Wed Mar 27 2013 Petr Pisar <ppisar@redhat.com> - 1.9.3-6
7c51080
- Update config.sub to support aarch64 (bug #926196)
7c51080
242bae8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.3-5
242bae8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
242bae8
237bfb0
* Wed Aug 22 2012 Petr Pisar <ppisar@redhat.com> - 1.9.3-4
237bfb0
- Modernize systemd scriptlets
237bfb0
de80cb2
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.3-3
de80cb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
de80cb2
462a440
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.3-2
462a440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
462a440
7cf2e5a
* Fri Sep 02 2011 Petr Pisar <ppisar@redhat.com> - 1.9.3-1
97a5e19
- 1.9.3 bump
6def1ad
- Remove useless spec code
7cf2e5a
- Migrate nasd service from sysvinit to systemd
97a5e19
e9911b0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.2-2
e9911b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e9911b0
3463be2
* Mon Aug 09 2010 Petr Pisar <ppisar@redhat.com> - 1.9.2-1
3463be2
- 1.9.2 bump, update URL, Source0
3463be2
- Remove spec code specific for Fedora < 12 and EPEL < 4 as they are
3463be2
  unsupported now
3463be2
- Apply nas-1.9.2-asneeded.patch to get libXau linked explicitly (bug #565181)
3463be2
- Move AuErrorDB non-executable to share directory, distribute with libraries
3463be2
- Unify spec file indentation
3463be2
- Add postun action
3463be2
277f798
* Sun Mar 14 2010 Frank Büttner <frank-buettner@gmx.net> - 1.9.1-7
277f798
- fix #565181
277f798
0f5e073
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-6
0f5e073
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0f5e073
1ea7e39
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-5
1ea7e39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1ea7e39
d328df4
* Mon Apr 07 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.9.1-4
d328df4
- -libs subpkg (f9+, #438547)
d328df4
- %%install: INSTALLFLAGS='-p' (preserve timestamps)
d328df4
- fixup %%changelog whitespace
d328df4
eb3b024
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.9.1-3
eb3b024
- Autorebuild for GCC 4.3
eb3b024
d328df4
* Sun Nov 11 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.9.1-2
d328df4
- fix spec file
d328df4
d328df4
* Sun Nov 11 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.9.1-1
d328df4
- update to 1.9.1
d328df4
- remove unneeded patches
frankb 2f7d7a0
d328df4
* Fri Nov 02 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.9a-3
d328df4
- add better patch for #247468 
frankb 1706860
d328df4
* Fri Nov 02 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.9a-2
d328df4
- add patch to fix #247468
frankb 104a1f5
d328df4
* Sun Oct 28 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.9a-1
d328df4
- update to 1.9a to fix #245712
frankb 8e60823
d328df4
* Sat Aug 18 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.9-4
d328df4
- fix for bug #245712
frankb 97a4631
frankb 29e893a
* Sat Aug 11  2007 Frank Büttner  <frank-buettner@gmx.net> - 1.9-3
d328df4
- fix for bug #250453
frankb 29e893a
frankb 9d0ad55
* Fri May 04 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.9-2%{?dist}
frankb 9d0ad55
- rebuild for the new ppc64 arch
frankb 9d0ad55
frankb 37f8711
* Sun Apr 08 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.9-1%{?dist}
frankb 37f8711
- update to 1.9
frankb 37f8711
- remove old patch file
frankb 37f8711
frankb cd0c0b3
* Mon Mar 26 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.8b-1%{?dist}
frankb cd0c0b3
- update to 1.8b
frankb cd0c0b3
frankb 2fcee38
* Thu Mar 22 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.8a-2%{?dist}
frankb 2fcee38
- use the SVN version of 1.8a
frankb 2fcee38
frankb d448aeb
* Wed Mar 21 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.8a-1%{?dist}
frankb 2fcee38
- fix bug 233353 
frankb d448aeb
5bc850d
* Fri Feb 09 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.8-13%{?dist}
frankb 6400cb7
- use the corrected patch
frankb 6400cb7
frankb a743769
* Thu Feb 08 2007 Frank Büttner  <frank-buettner@gmx.net> - 1.8-11%{?dist}
frankb a743769
- fix bug 227759
frankb a743769
93f8713
* Tue Sep 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> - 1.8-10
93f8713
- don't rely-on/use potentially broken %%_libdir/X11 symlink (#207180)
93f8713
frankb 96c0d85
* Mon Sep 11 2006 Frank Büttner  <frank-buettner@gmx.net> - 1.8-9%{?dist}
frankb 96c0d85
- second rebuild for FC6
frankb 96c0d85
frankb 51eb50c
* Mon Jul 24 2006 Frank Büttner  <frank-buettner@gmx.net> - 1.8-8%{?dist}
frankb 51eb50c
- fix ugly output when starting the daemon
frankb 51eb50c
frankb 1d21216
* Fri Jul 21 2006 Frank Büttner  <frank-buettner@gmx.net> - 1.8-7%{?dist}
frankb 1d21216
- disable build for EMT64 on FC4
frankb 1d21216
frankb bdaa9b1
* Thu Jul 13 2006 Frank Büttner  <frank-buettner@gmx.net> - 1.8-6%{?dist}
frankb bdaa9b1
- fix build on EMT64 
frankb bdaa9b1
frankb 51b9968
* Wed Jul 12 2006 Frank Büttner  <frank-buettner@gmx.net> - 1.8-5%{?dist}
frankb 51b9968
- fix include dir
frankb 51b9968
frankb 51b9968
* Fri Jul 7 2006 Frank Büttner  <frank-buettner@gmx.net> - 1.8-4%{?dist}
frankb 51b9968
- add Requires(preun): chkconfig /sbin/service
frankb 51b9968
- add Requires(post):  chkconfig
frankb 51b9968
- add remarks for FC4
frankb 51b9968
frankb 51b9968
* Fri Jul 7 2006 Frank Büttner  <frank-buettner@gmx.net> - 1.8-3%{?dist}
frankb 51b9968
- move man3 to devel
frankb 51b9968
- rename nasd.conf.eg to .conf
frankb 51b9968
- add build depend for libXext-devel libXt-devel
frankb 51b9968
- change license to Public Domain
frankb 51b9968
- add path to make intall
frankb 51b9968
- add rc.d/sysconfig  files 
frankb 51b9968
frankb 51b9968
* Fri Jul 7 2006 Frank Büttner  <frank-buettner@gmx.net> - 1.8-2%{?dist}
frankb 51b9968
- move libaudio.so.2 to main package
frankb 51b9968
- switch package name from NAS to nas
frankb 51b9968
- fix depend for devel package
frankb 51b9968
- fix version
frankb 51b9968
- add nas subdir in etc to main package
frankb 51b9968
- set license to Distributable
frankb 51b9968
- add readme file
frankb 51b9968
frankb 51b9968
* Fri Jul 7 2006 Frank Büttner  <frank-buettner@gmx.net> - 1.8-1%{?dist}
frankb 51b9968
- start