File harmonySEQ.spec of Package harmonyseq

# norootforbuild

%if %{defined fedora}
BuildRequires:	alsa-lib-devel
BuildRequires:	gtkmm24-devel
BuildRequires:	gdk-pixbuf2-devel
BuildRequires:	libpng-devel
BuildRequires:	freetype-devel
%else
BuildRequires:	alsa-devel
BuildRequires:	libpng16-devel
BuildRequires:	freetype2-devel
BuildRequires:	gtkmm2-devel
BuildRequires:	gdk-pixbuf-devel
BuildRequires:	update-desktop-files
%endif

BuildRequires:	gcc-c++
BuildRequires:	cairomm-devel
BuildRequires:	fontconfig-devel
BuildRequires:	pangomm-devel

BuildRequires:	liblo-devel
BuildRequires:  fdupes


Name:           harmonySEQ
Url:            http://harmonyseq.wordpress.com/
Version:        0.16
Release:        0.1
License:        GPL-2.0+
Prefix:         /usr
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Productivity/Multimedia/Sound/Midi
Summary:        A MIDI sequencing application helpful for music composers and live artists
Source:         %{name}-%{version}.tar.bz2
Patch0:          %{name}-desktop.patch
Patch1:          %{name}-bitrot.patch

%description
harmonySEQ is a MIDI sequencer for Linux. Basically, it does what any 
sequencer do – it playbacks a sequence of notes. However, it is slightly 
different from most of the popular software sequencers.

A list of features consists of :

  - Any number of synchronized sequencers
  - Each can play different pattern of notes to different MIDI channels on different velocities
  - Melodies/patterns may have unequal lengths and resolutions, but they will still be synchronized
  - Sequencers use only notes from the chord that is bound to them, which makes it easy to keep them in tune
  - Transposing, muting, changing chords and changing melodies can be done on the go, during the performance.
  - Heavily customizable events-actions system, which one may use to make harmonySEQ react on events like keypress, noteon, etc.
  - Saving and loading sequencer sets to files
  - Multilingual GUI, (currently English, Polish and partially Turkish, please contribute and help translating harmonySEQ)

And it’s growing, because harmonySEQ is under active development.

Authors:
--------
    Rafał Cieślak

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
export CFLAGS="-fPIC"
export CXXFLAGS="-fPIC"
%configure
%__make

%install
%if %{defined fedora}
make DESTDIR=%{buildroot} install
%else
%makeinstall
%endif
%__rm -rf %{buildroot}%{_datadir}/doc
%__rm -rf examples/Makefile*

# desktop file
%__install -m 644 harmonyseq.desktop %{buildroot}%{_datadir}/applications/

%if 0%{?suse_version}
%suse_update_desktop_file -i harmonyseq AudioVideo Midi Sequencer
%endif

%find_lang %{name} --all-name
# hardlink duplicate icon files
%fdupes %{buildroot}%{_datadir}/icons

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc README LICENSE CHANGELOG
%doc examples
%{_bindir}/harmonySEQ
%dir %{_datadir}/harmonyseq
%{_datadir}/harmonyseq/*
%{_datadir}/icons/*
%{_datadir}/applications/harmonyseq.desktop
%{_datadir}/mime/packages/harmonyseq-mime.xml

%changelog