File tclabc.spec of Package tclabc
# spec file for package tclabc
#
# Copyright (c) 2007 by Christian Haertwig
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to christian@links2linux.de
#
#
# norootforbuild
BuildRequires: tcl-devel
BuildRequires: tk-devel
Summary: A Tcl interface to the ABC notation
Summary(de): Tcl-Oberfläche für die ABC Notensprache
Name: tclabc
Version: 1.3.7
Release: 0.1
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-abclib.patch
Group: Productivity/Multimedia/Sound/Editors and Convertors
License: GPL-2.0+
URL: http://moinejf.free.fr
Vendor: %vendor
Buildroot: %{_tmppath}/%{name}-%{version}-build
Requires: abcm2ps
Requires: abcmidi
Requires: tcl >= 8.2
Requires: tk >= 8.2
%description
tclabc is designed to help on writing music in ABC notation, especially on
Unix systems. It requires Tcl/Tk (8.2 or newer), and a C compiler.
It contains two main parts:
- a Tcl extension, written in C, which translates ABC to/from TCL
variables, and helps for tune navigation/modification.
- a Tk graphical interface which permits creation or modification of
tunes, using the previous extension.
%prep
%autosetup -p1
%build
export CFLAGS="$CFLAGS -DUSE_INTERP_RESULT"
%configure --prefix=%{_prefix} --with-tcltk=%{_libdir}
%__make %{?jobs:-j%{jobs}}
%install
# /usr/bin/
%__mkdir -p $RPM_BUILD_ROOT%{_bindir}
%__install -m 755 ./tkabc $RPM_BUILD_ROOT%{_bindir}
%__install -m 755 ./abcbarchk $RPM_BUILD_ROOT%{_bindir}
%__install -m 755 ./abctrans $RPM_BUILD_ROOT%{_bindir}
%__install -m 755 ./mid2abc $RPM_BUILD_ROOT%{_bindir}
# /usr/share/%{name}
%__mkdir $RPM_BUILD_ROOT%{_datadir}
%__mkdir $RPM_BUILD_ROOT%{_datadir}/%{name}
%__install -m 755 ./*.so $RPM_BUILD_ROOT%{_datadir}/%{name}
%__install -m 644 ./*.tcl $RPM_BUILD_ROOT%{_datadir}/%{name}
%__install -m 644 ./*.html $RPM_BUILD_ROOT%{_datadir}/%{name}
rm -rf $RPM_BUILD_ROOT%{_libdir}/debug
%clean
%__rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%doc Changes LICENSE README songs/
%{_bindir}/*
%{_datadir}/%{name}
%changelog
* Tue May 21 2013 - Edgar Aichinger <edogawa@aon.at>
- updated to version 1.3.7
* Tue Jan 01 2008 - Edgar Aichinger <edogawa@aon.at>
- updated to 1.1.0
* Sun Jul 08 2007 - Edgar Aichinger <edogawa@aon.at>
- updated to 1.0.9
* Tue Jan 09 2007 - Christian Haertwig <christian@links2linux.de>
- initial version 1.0.8 taken from src.rpm from project homepage
rewritten for packman