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
BuildRequires:	alsa-devel
BuildRequires:	libpng16-devel
BuildRequires:	freetype2-devel
BuildRequires:	gtkmm2-devel
BuildRequires:	gdk-pixbuf-devel
BuildRequires:	update-desktop-files

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

BuildRequires:	liblo-devel
BuildRequires:  fdupes

Name:           harmonySEQ
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

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.

    Rafał Cieślak

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

export CFLAGS="-fPIC"
export CXXFLAGS="-fPIC"

%if %{defined fedora}
make DESTDIR=%{buildroot} install
%__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

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

rm -rf %{buildroot}

%files -f %{name}.lang
%doc examples
%dir %{_datadir}/harmonyseq