File otr.spec of Package otr
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: otr
Version: 3.1.0
Release: 0
License: GPL-2.0+
Summary: A Gamera toolkit for the recognition of historic lute tablature prints
Url: http://gamera.informatik.hsnr.de/addons/musicstaves/index.html
Group: Development/Libraries/Python
Source: http://gamera.informatik.hsnr.de/addons/otr4gamera/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: python-gamera-devel
BuildRequires: python-gamera
BuildRequires: python-devel
%py_requires
Requires: musicstaves
%description
This is a Gamera toolkit for optical recognition of lute and guitar tablature notation.
It is based on the Gamera framework and requires a working Gamera installation.
%prep
%setup -q
# Fix permissions on files
find . -name "*.hpp" -exec chmod 644 {} ';'
find . -name README -exec chmod 644 {} ';'
# remove shebang
# find gamera -name "*.py" -exec sed -i '/^#!\/usr\/bin\/env python$/d' {} ";"
%build
python setup.py build
%install
python setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm installed.files
grep -v 'doc/packages$' installed.files > installed.files.temp.$$ && mv installed.files.temp.$$ installed.files
%clean
rm -rf %{buildroot}
%files -f installed.files
%defattr(-,root,root)
%doc README
%changelog