Группа :: Обучение
Пакет: solfege
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: solfege
Version: 3.10.3
Release: alt1
Summary: Eartaining program for GNOME
License: GPL
Group: Education
#Url: http://solfege.sourceforge.net
Url: http://www.solfege.org/
Source: http://download.sourceforge.net/solfege/%name-%version.tar.gz
Packager: Alex Karpov <karpov at altlinux.ru>
%define python_ver 2.3
%define pygnome_ver 2.6.0
%define pygtk_ver 2.6.0
%define gtkhtml_ver 1.99.6
## Automatically added by buildreq on Mon Jan 30 2006
##BuildRequires: glib2-devel pkg-config python-base python-dev python-module-pygtk-devel python-modules-compiler python-modules-encodings swig xml-common xml-utils docbook-style-xsl
#OldBuildRequires: docbook-dtds docbook-style-xsl glib2-devel gnome-python2 hostinfo libatk-devel libgtk+2-devel libgtkhtml2-devel libpango-devel libxml2-devel pkgconfig python-module-pygtk-devel python-base python-dev python-modules-encodings swig xml-common xml-utils xsltproc
#BuildRequires: links1
# doesn't build with "2.3" due to python2.3(*) unsatisfied
# Automatically added by buildreq on Tue Feb 26 2008
BuildRequires: docbook-dtds docbook-style-xsl ghostscript-classic gnome-doc-utils librsvg-utils python-devel swig
BuildRequires: python-devel = %__python_version
BuildRequires: python-devel >= %python_ver
BuildRequires: python-module-pygtk-devel >= %pygtk_ver
BuildRequires: python-module-pygnome >= %pygnome_ver
BuildRequires: libgtkhtml2-devel >= %gtkhtml_ver
BuildRequires: xsltproc >= 1.0.30-alt2
BuildRequires: gnome-doc-utils
# ...or something like 1.23-alt1, but *before* 1.29-alt1
Requires: pygtk2 >= %pygtk_ver, libgtkhtml2 >= %gtkhtml_ver
Requires: python >= %python_ver, gnome-python2 >= %pygnome_ver
Requires: python-module-pygnome-bonobo python-module-pygnome-canvas pyorbit
Requires: python-module-pygnome-gtkhtml2
Summary(ru_RU.KOI8-R): Программа тренировки слуха.
Summary(uk_UA.KOI8-U): Програма тренування слуху.
AutoReqProv: yes, nopython
# Requires: python-strict
%description
Solfege is an eartraining program for X written in python, using the
GTK+ and GNOME libraries. This is a development release, things might
be broken. See INSTALL file if you have problems running or installing
Solfege. Report your problems to solfege-devel at lists.sourceforge.net
Eartraining is a big subject with many connections to music theory and
performance of music, so I won't even try to make "a complete
computerbased eartraining course". But I hope someone find this
software useful.
%description -l ru_RU.KOI8-R
Solfege -- программа для тренировки слуха, написанная на Python с
использованием библиотек GTK+ и GNOME.
Тренировка слуха -- это отдельная тема, во многом перекликающаяся с теорией и
исполнением музыки. Поэтому автор и не пытается создать "полный курс", в то же
время надеясь, что эта программа окажется полезной.
%description -l uk_UA.KOI8-U
Solfege -- програма для тренування слуху, що написана на Python ╕з використанням
б╕бл╕отек GTK+ та GNOME.
%prep
%setup -q
%build
XSLPATH=`echo "system http://docbook.sourceforge.net/release/xsl/current" \
| xmlcatalog --shell \
| sed 's,^.*file://,,' \
| head -1`
[ -n "$XSLPATH" ] && {
XSLOPT="--enable-docbook-stylesheet=$XSLPATH/html/chunk.xsl"
} || {
XSLOPT="--with-local-xmlcatalog"
}
export PYTHON=%__python
unset CC
%configure \
--with-gtkhtml \
--enable-oss-sound \
$XSLOPT
# --enable-tuner \
# --with-swig13 \
%make_build
%install
%makeinstall nopycompile=YES
# WITH_SWIG13=yes
%__install -pD -m644 graphics/%name.png %buildroot%_iconsdir/%name.png
%__install -pD %name.desktop %buildroot%_datadir/gnome/apps/Applications/%name.desktop
# force python to optimize generated bytecode
%__subst 's at !%__python\(.*\) at !%__python\1 -O at ' %buildroot%_bindir/%name
# creating %name as symlink on solfege%version
#%__rm %buildroot%_bindir/%name
#%__ln_s %name%version %buildroot%_bindir/%name
%find_lang --output=%name.lang %name %name-intervallnames
%post
%update_menus
%postun
%clean_menus
# put only optimized bytecode and necessary .py's into the package
%files -f %name.lang
%_bindir/*
%dir %_datadir/%name
%_datadir/%name/feta/*
%_datadir/%name/lesson-files/*
%_datadir/%name/example-lesson-files/*
%_datadir/%name/*.*
%_datadir/%name/themes/svg/*.svg
%_datadir/%name/help/*
%_datadir/%name/src/*.py
%_datadir/%name/mpd/*.py
%_datadir/%name/soundcard/*.py
%_datadir/%name/graphics/
%_datadir/gnome/apps/*/*
%_datadir/pixmaps/*
%_datadir/icons/*
%_datadir/applications/*
%_libdir/%name/
%_man1dir/*
%config(noreplace) %_sysconfdir/*
%doc AUTHORS FAQ README COPYING INSTALL changelog
%changelog
…
Полный changelog можно просмотреть здесь
Version: 3.10.3
Release: alt1
Summary: Eartaining program for GNOME
License: GPL
Group: Education
#Url: http://solfege.sourceforge.net
Url: http://www.solfege.org/
Source: http://download.sourceforge.net/solfege/%name-%version.tar.gz
Packager: Alex Karpov <karpov at altlinux.ru>
%define python_ver 2.3
%define pygnome_ver 2.6.0
%define pygtk_ver 2.6.0
%define gtkhtml_ver 1.99.6
## Automatically added by buildreq on Mon Jan 30 2006
##BuildRequires: glib2-devel pkg-config python-base python-dev python-module-pygtk-devel python-modules-compiler python-modules-encodings swig xml-common xml-utils docbook-style-xsl
#OldBuildRequires: docbook-dtds docbook-style-xsl glib2-devel gnome-python2 hostinfo libatk-devel libgtk+2-devel libgtkhtml2-devel libpango-devel libxml2-devel pkgconfig python-module-pygtk-devel python-base python-dev python-modules-encodings swig xml-common xml-utils xsltproc
#BuildRequires: links1
# doesn't build with "2.3" due to python2.3(*) unsatisfied
# Automatically added by buildreq on Tue Feb 26 2008
BuildRequires: docbook-dtds docbook-style-xsl ghostscript-classic gnome-doc-utils librsvg-utils python-devel swig
BuildRequires: python-devel = %__python_version
BuildRequires: python-devel >= %python_ver
BuildRequires: python-module-pygtk-devel >= %pygtk_ver
BuildRequires: python-module-pygnome >= %pygnome_ver
BuildRequires: libgtkhtml2-devel >= %gtkhtml_ver
BuildRequires: xsltproc >= 1.0.30-alt2
BuildRequires: gnome-doc-utils
# ...or something like 1.23-alt1, but *before* 1.29-alt1
Requires: pygtk2 >= %pygtk_ver, libgtkhtml2 >= %gtkhtml_ver
Requires: python >= %python_ver, gnome-python2 >= %pygnome_ver
Requires: python-module-pygnome-bonobo python-module-pygnome-canvas pyorbit
Requires: python-module-pygnome-gtkhtml2
Summary(ru_RU.KOI8-R): Программа тренировки слуха.
Summary(uk_UA.KOI8-U): Програма тренування слуху.
AutoReqProv: yes, nopython
# Requires: python-strict
%description
Solfege is an eartraining program for X written in python, using the
GTK+ and GNOME libraries. This is a development release, things might
be broken. See INSTALL file if you have problems running or installing
Solfege. Report your problems to solfege-devel at lists.sourceforge.net
Eartraining is a big subject with many connections to music theory and
performance of music, so I won't even try to make "a complete
computerbased eartraining course". But I hope someone find this
software useful.
%description -l ru_RU.KOI8-R
Solfege -- программа для тренировки слуха, написанная на Python с
использованием библиотек GTK+ и GNOME.
Тренировка слуха -- это отдельная тема, во многом перекликающаяся с теорией и
исполнением музыки. Поэтому автор и не пытается создать "полный курс", в то же
время надеясь, что эта программа окажется полезной.
%description -l uk_UA.KOI8-U
Solfege -- програма для тренування слуху, що написана на Python ╕з використанням
б╕бл╕отек GTK+ та GNOME.
%prep
%setup -q
%build
XSLPATH=`echo "system http://docbook.sourceforge.net/release/xsl/current" \
| xmlcatalog --shell \
| sed 's,^.*file://,,' \
| head -1`
[ -n "$XSLPATH" ] && {
XSLOPT="--enable-docbook-stylesheet=$XSLPATH/html/chunk.xsl"
} || {
XSLOPT="--with-local-xmlcatalog"
}
export PYTHON=%__python
unset CC
%configure \
--with-gtkhtml \
--enable-oss-sound \
$XSLOPT
# --enable-tuner \
# --with-swig13 \
%make_build
%install
%makeinstall nopycompile=YES
# WITH_SWIG13=yes
%__install -pD -m644 graphics/%name.png %buildroot%_iconsdir/%name.png
%__install -pD %name.desktop %buildroot%_datadir/gnome/apps/Applications/%name.desktop
# force python to optimize generated bytecode
%__subst 's at !%__python\(.*\) at !%__python\1 -O at ' %buildroot%_bindir/%name
# creating %name as symlink on solfege%version
#%__rm %buildroot%_bindir/%name
#%__ln_s %name%version %buildroot%_bindir/%name
%find_lang --output=%name.lang %name %name-intervallnames
%post
%update_menus
%postun
%clean_menus
# put only optimized bytecode and necessary .py's into the package
%files -f %name.lang
%_bindir/*
%dir %_datadir/%name
%_datadir/%name/feta/*
%_datadir/%name/lesson-files/*
%_datadir/%name/example-lesson-files/*
%_datadir/%name/*.*
%_datadir/%name/themes/svg/*.svg
%_datadir/%name/help/*
%_datadir/%name/src/*.py
%_datadir/%name/mpd/*.py
%_datadir/%name/soundcard/*.py
%_datadir/%name/graphics/
%_datadir/gnome/apps/*/*
%_datadir/pixmaps/*
%_datadir/icons/*
%_datadir/applications/*
%_libdir/%name/
%_man1dir/*
%config(noreplace) %_sysconfdir/*
%doc AUTHORS FAQ README COPYING INSTALL changelog
%changelog
…
Полный changelog можно просмотреть здесь