af8e103
%define  desktop_vendor fedora
af8e103
af8e103
Name:  phasex
af8e103
Version: 0.11.1
66e9ddd
Release: 4%{?dist}
af8e103
Summary: PHASEX -- Phase Harmonic Advanced Synthesis EXperiment
af8e103
Group:  Applications/Multimedia
af8e103
License: GPLv2
af8e103
URL:  http://sysex.net/phasex/
af8e103
af8e103
Source0: http://sysex.net/phasex/%{name}-%{version}.tar.gz
af8e103
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
af8e103
af8e103
BuildRequires: glibc-devel >= 2.3.0
af8e103
BuildRequires: alsa-lib-devel >= 0.9.0
af8e103
BuildRequires: jack-audio-connection-kit-devel >= 0.99.0
af8e103
BuildRequires: gtk2-devel >= 2.4.0
af8e103
BuildRequires: perl
af8e103
BuildRequires: desktop-file-utils
af8e103
Requires: glibc >= 2.3.0
af8e103
Requires: alsa-lib >= 0.9.0
af8e103
Requires: jack-audio-connection-kit >= 0.99.0
af8e103
Requires: gtk2 >= 2.4.0
af8e103
af8e103
%description
af8e103
PHASEX is an experimental JACK audio / ALSA MIDI softsynth for Linux
af8e103
with a synth engine built around flexible phase modulation and
af8e103
flexible oscillator/LFO sourcing.  Modulations include AM, FM, offset
af8e103
PM, and wave select.  PHASEX comes equipped with a 12db/octave filter
af8e103
with two distortion curves, a stereo crossover delay and chorus with
af8e103
phaser, ADSR envelopes for amplifier and filter, realtime audio input
af8e103
processing capabilities, and more.
af8e103
af8e103
%prep
af8e103
%setup -q
af8e103
af8e103
%build
af8e103
%configure
af8e103
make %{?_smp_mflags}
af8e103
af8e103
%install
af8e103
rm -rf $RPM_BUILD_ROOT
af8e103
make install DESTDIR=$RPM_BUILD_ROOT
af8e103
af8e103
for s in 16 22 32 48 ; do
af8e103
    %{__mkdir} -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
af8e103
    %{__cp} %{buildroot}%{_datadir}/phasex/pixmaps/phasex-icon-${s}x${s}.png \
af8e103
            %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/phasex-icon.png
af8e103
done
af8e103
af8e103
BASE="AudioVideo Audio"
af8e103
XTRA="X-MIDI X-Digital_Processing X-Jack"
af8e103
af8e103
%{__mkdir} -p %{buildroot}%{_datadir}/applications
af8e103
desktop-file-install --vendor %{desktop_vendor} \
af8e103
  --dir %{buildroot}%{_datadir}/applications \
af8e103
  `for c in ${BASE} ${XTRA} ; do echo "--add-category $c " ; done` \
af8e103
  $RPM_BUILD_ROOT%{_datadir}/phasex/%{name}.desktop
af8e103
af8e103
rm $RPM_BUILD_ROOT%{_datadir}/phasex/phasex.desktop
af8e103
af8e103
%post
af8e103
touch --no-create %{_datadir}/icons/hicolor || :
af8e103
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
af8e103
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
af8e103
fi
af8e103
af8e103
%postun
af8e103
touch --no-create %{_datadir}/icons/hicolor || :
af8e103
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
af8e103
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
af8e103
fi
af8e103
af8e103
%clean
af8e103
rm -rf $RPM_BUILD_ROOT
af8e103
af8e103
%files
af8e103
%defattr(-,root,root,-)
af8e103
%doc README COPYING
af8e103
%{_bindir}/phasex
af8e103
%dir %{_datadir}/phasex
af8e103
%dir %{_datadir}/phasex/help
af8e103
%dir %{_datadir}/phasex/pixmaps
af8e103
%dir %{_datadir}/phasex/sys-midimaps
af8e103
%dir %{_datadir}/phasex/sys-patches
af8e103
%{_datadir}/phasex/patchbank
af8e103
%{_datadir}/phasex/help/*
af8e103
%{_datadir}/phasex/pixmaps/*
af8e103
%{_datadir}/phasex/sys-midimaps/*
af8e103
%{_datadir}/phasex/sys-patches/*
af8e103
%{_datadir}/applications/%{desktop_vendor}-phasex.desktop
af8e103
%{_datadir}/icons/hicolor/*/apps/phasex-icon.png
af8e103
af8e103
%changelog
66e9ddd
* Mon Oct 22 2007 Anthony Green <green@redhat.com> - 0.11.1-4
66e9ddd
- Fix tagging problem.
66e9ddd
af8e103
* Thu Oct 18 2007 Parag AN <panemade@gmail.com> - 0.11.1-3
af8e103
- Really delete extra .desktop file after installation.
af8e103
af8e103
* Tue Oct 16 2007 Anthony Green <green@redhat.com> - 0.11.1-2
af8e103
- Delete extra .desktop file after installation.
af8e103
- Clean up .desktop file categories.
af8e103
af8e103
* Tue Oct 16 2007 Anthony Green <green@redhat.com> - 0.11.1-1
af8e103
- First Fedora build.
af8e103
af8e103
* Tue Aug  7 2007 William Weston <weston@sysex.net> - 0.11.0-0
af8e103
- Updated for 0.11.0.
af8e103
af8e103
* Thu May 24 2007 William Weston <weston@sysex.net> - 0.10.3-0
af8e103
- Updated for 0.10.3.
af8e103
af8e103
* Tue May 15 2007 William Weston <weston@sysex.net> - 0.10.2-0
af8e103
- Updated for 0.10.2.
af8e103
af8e103
* Thu May  3 2007 William Weston <weston@sysex.net> - 0.10.1-0
af8e103
- Added README and COPYING to doc install.
af8e103
- Updated for 0.10.1.
af8e103
af8e103
* Tue May  1 2007 William Weston <weston@sysex.net> - 0.10.0-0
af8e103
- Initial RPM spec file.