Пакет jamin: Specfile

%define _ladspa_path %_libdir/ladspa

Name: jamin
Version: 0.95.0
Release: alt2.1

Summary: JAMin is a Realtime Mastering Processor
Summary(ru_RU.KOI8-R): JAMin -- \xd0\xd2\xc9\xcc\xcf\xd6\xc5\xce\xc9\xc5 \xc4\xcc\xd1 \xcd\xc1\xd3\xd4\xc5\xd2\xc9\xce\xc7\xc1 \xda\xd7\xd5\xcb\xc1
License: GPL
Group: Sound
Url: http://%name.sourceforge.net
Packager: Fr. Br. George <george@altlinux.ru>
Source: http://prdownloads.sourceforge.net/%name/%name-%version.tar.gz

Requires: ladspa-swh-plugins >= 0.4.11
Requires: jackd

BuildPreReq: ladspa_sdk

# Automatically added by buildreq on Sat Jun 13 2009
BuildRequires: gcc-c++ gcc-fortran jackit-devel libfftw3-devel libgtk+2-devel liblo-devel libxml2-devel perl-XML-Parser intltool
BuildRequires: desktop-file-utils

#BuildRequires: XFree86-libs fontconfig freetype2 gcc-c++ gcc-g77 glib2-devel intltool jackit-devel libatk-devel libfftw3-devel libgtk+2-devel liblo-devel libpango-devel libstdc++-devel libxml2-devel perl-XML-Parser pkgconfig zlib-devel

%description
JAMin is a realtime mastering processor designed to bring out the detail
in recorded music and provide the final layer of polish. Every effort
has been made to ensure a clean, distortion-free signal path. All
processing elements use linear-phase filtering, ensuring that no phase
distortion is introduced. JAMin uses the JACK Audio Connection Kit, a
low-latency audio server, which can connect a number of different
applications to an audio device, and also allow them to share audio
among themselves.

%description -l ru_RU.KOI8-R
JAMin -- \xd0\xd2\xc9\xcc\xcf\xd6\xc5\xce\xc9\xc5, \xd2\xc1\xc2\xcf\xd4\xc1\xc0\xdd\xc5\xc5 \xde\xc5\xd2\xc5\xda \xd3\xc5\xd2\xd7\xc5\xd2 JACK, \xcf\xce
\xd3\xd0\xd2\xcf\xc5\xcb\xd4\xc9\xd2\xcf\xd7\xc1\xce \xc4\xcc\xd1 \xd0\xd2\xcf\xc6\xc5\xd3\xd3\xc9\xcf\xce\xc1\xcc\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f\xd0\xc1\xce\xcf\xd2\xc1\xcd\xd9, lookahead-\xcf\xc7\xd2\xc1\xce\xc9\xde\xc9\xd4\xc5\xcc\xd1 (\xcc\xc9\xcd\xc9\xd4\xc5\xd2\xc1), \xd5\xd3\xc9\xcc\xc9\xd4\xc5\xcc\xd1 \xd3\xc9\xc7\xce\xc1\xcc\xc1 \xc9
\xce\xc5\xcb\xcf\xd4\xcf\xd2\xd9\xc8 \xc4\xd2\xd5\xc7\xc9\xc8.

%prep
%setup -q -n %name-%version
# Fix lib
for file in controller/Makefile.am src/plugin.c; do
   sed -i 's|/lib/|/%_lib/|g' $file
done

sed -i 's/JAMIN_LIBS="/JAMIN_LIBS="$lt_cv_dlopen_libs /' configure.in

# .desktop file fixes:
sed -i 's|\(GenericName=\)|\1Jack Audio Mastering|
	s|\.svg||
	s|AudioVideo|Audio|
	/^Encoding=/d' data/%{name}.desktop.in

%build
NOCONFIGURE=indeed ./autogen.sh
%configure
%make_build

%install
%make_install DESTDIR=%buildroot install

# remove none-packaged files
rm -f %buildroot%_ladspa_path/*.la

%find_lang %name
desktop-file-install --dir %buildroot%_desktopdir \
	--remove-category=Application \
	--add-category=AudioVideo \
	--add-category=Sequencer \
	%buildroot%_desktopdir/jamin.desktop

%files -f %name.lang
%_bindir/*
%_datadir/applications/*
%_datadir/mime/packages/*
%_datadir/%name
%_iconsdir/*
%_ladspa_path/*.so
%_man1dir/*
%doc AUTHORS ChangeLog NEWS README TODO

%changelog
* Thu Jun 20 2013 Andrey Cherepanov <cas@altlinux.org> 0.95.0-alt2.1
- Rebuild with new version liblo

* Thu May 24 2012 Fr. Br. George <george@altlinux.ru> 0.95.0-alt2
- DSO list completion

* Tue May 24 2011 Repocop Q. A. Robot <repocop@altlinux.org> 0.95.0-alt1.qa1
- NMU (by repocop). See http://www.altlinux.org/Tools/Repocop
- applied repocop fixes:
  * freedesktop-desktop-file-proposed-patch for jamin

* Sun Jun 14 2009 Fr. Br. George <george@altlinux.ru> 0.95.0-alt1
- Version up
- Resurrecting from orphand

* Sun Jan 16 2005 Yuri N. Sedunov <aris@altlinux.ru> 0.95.0-alt0.5beta6
- 0.9.5beta6.
- some i18n fixes.
- .desktop file.
- .jam mime description.

* Tue Sep 21 2004 Yuri N. Sedunov <aris@altlinux.ru> 0.9.0-alt0.5
- First build for Sisyphus.
- Russian summary, description by avp@.