8ad9671
Name:           frescobaldi
4aef873
Version:        2.0.10
bf7dea1
Release:        3%{?dist}
8ad9671
Summary:        Edit LilyPond sheet music with ease!
8ad9671
Group:          Applications/Editors
e3b4fd2
# hyphenator.py is LGPLv2+
8ad9671
# The rest, including the core of the program, is GPLv2+
e3b4fd2
License:        GPLv2+ and LGPLv2+
8ad9671
URL:            http://www.frescobaldi.org/
e3b4fd2
Source0:        https://github.com/downloads/wbsoft/%{name}/%{name}-%{version}.tar.gz
18403c8
Patch0:		frescobaldi-2.0.10-ascii.patch
8ad9671
BuildArch:      noarch
8ad9671
e3b4fd2
BuildRequires:  desktop-file-utils
e3b4fd2
BuildRequires:  python2-devel
e3b4fd2
BuildRequires:  gettext
8ad9671
Requires:       alsa-utils
8ad9671
Requires:       lilypond
e3b4fd2
Requires:       python-poppler-qt4
3cb40f8
Requires:       portmidi
3cb40f8
Requires:       python-portmidi
8ad9671
8ad9671
%description
8ad9671
Frescobaldi is a LilyPond sheet music editor for KDE4. It aims to be powerful,
8ad9671
yet lightweight and easy to use. It features:
8ad9671
e3b4fd2
    * Enter LilyPond scores, build and preview them with a mouse-click
8ad9671
    * Point-and-click support: click on notes or error messages to jump to the
8ad9671
      correct position
8ad9671
    * A powerful Score Wizard to quickly setup a musical score
8ad9671
    * Editing tools to:
8ad9671
          o manipulate the rhythm
8ad9671
          o hyphenate lyrics
8ad9671
          o quickly enter or add articulations and other symbols to existing 
8ad9671
            music
8ad9671
          o run the document through convert-ly to update it to a newer 
8ad9671
            LilyPond version
e3b4fd2
    * Context sensitive auto-complete, helping you to quickly enter LilyPond 
8ad9671
      commands
8ad9671
    * Expansion manager to enter larger snippets of LilyPond input using short
8ad9671
      mnemonics
8ad9671
    * A powerful Rumor plugin, using the Rumor program to quickly enter music
8ad9671
      by playing it on a MIDI keyboard or even your computer keyboard
8ad9671
    * Built-in comprehensive User Guide
8ad9671
8ad9671
8ad9671
%prep
8ad9671
%setup -q
e3b4fd2
find -name "*.py"  -exec sed -i -e 's|#! python||' {} \;
8ad9671
18403c8
%patch0 -p0
18403c8
8ad9671
%build
e3b4fd2
python ./setup.py build 
e3b4fd2
cd %{name}_app/po
e3b4fd2
make
8ad9671
8ad9671
%install
e3b4fd2
python ./setup.py install --skip-build --prefix=%{buildroot}%{_prefix}
e3b4fd2
8ad9671
8ad9671
## File lists
e3b4fd2
# Create the lang file. %%find_lang does not handle .po files
e3b4fd2
for file in %{buildroot}%{python_sitelib}/%{name}_app/po/*.mo; do
feb648e
    bn=$(basename $file)
e3b4fd2
    language=$(basename $file|cut -f 2 -d _|sed 's|\..*||')
feb648e
    echo %%lang\($language\) %{python_sitelib}/%{name}_app/po/$bn >> frescobaldi.lang
e3b4fd2
    done
8ad9671
8ad9671
# desktop file
8ad9671
desktop-file-install                                         \
8ad9671
   --dir=%{buildroot}%{_datadir}/applications                \
8ad9671
   --remove-category=Application                             \
8ad9671
   --add-category=AudioVideo                                 \
29b233f
   --add-category=X-Notation                                 \
8ad9671
   --delete-original                                         \
e3b4fd2
   %{name}.desktop
8ad9671
e3b4fd2
# sane file permissions
e3b4fd2
find %{buildroot}/%{python_sitelib}/%{name}_app/ -name "*.py*" -exec chmod 644 {} \;
e3b4fd2
# correct generated shebangs
e3b4fd2
sed -i -e 's|#!/usr/bin/python||' \
e3b4fd2
    %{buildroot}/%{python_sitelib}/%{name}_app/language_names/generate.py
8ad9671
8ad9671
%post
8ad9671
update-desktop-database &> /dev/null || :
8ad9671
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
8ad9671
8ad9671
%postun
8ad9671
update-desktop-database &> /dev/null || :
8ad9671
if [ $1 -eq 0 ] ; then
8ad9671
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
8ad9671
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
8ad9671
fi
8ad9671
8ad9671
%posttrans
8ad9671
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
8ad9671
8ad9671
%files -f %{name}.lang
e63f61a
%doc ChangeLog COPYING README* THANKS TODO
8ad9671
%{_bindir}/%{name}
e3b4fd2
%{python_sitelib}/%{name}_app
e3b4fd2
# the following is in our lang file
f473875
%exclude %{python_sitelib}/%{name}_app/po/*.mo
e3b4fd2
%{python_sitelib}/%{name}-%{version}-py2.7.egg-info
8ad9671
%{_datadir}/applications/%{name}.desktop
674c020
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
8ad9671
8ad9671
%changelog
bf7dea1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-3
bf7dea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bf7dea1
18403c8
* Thu Oct 03 2013 Jon Ciesla <limburgher@gmail.com> - 2.0.10-2
18403c8
- Fix special char handling in OS name, BZ 1010604.
18403c8
4aef873
* Tue Aug 13 2013 Jon Ciesla <limburgher@gmail.com> - 2.0.10-1
4aef873
- 2.0.10.
4aef873
- Fix bogus changelog dates.
4aef873
f442b90
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-2
f442b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f442b90
8d9ea2c
* Mon Apr 15 2013 Jon Ciesla <limburgher@gmail.com> - 2.0.9-1
8d9ea2c
- Update to 2.0.9, fix performance issues, BZ 952370.
8d9ea2c
c40a662
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-3
c40a662
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c40a662
24011d1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-2
24011d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
24011d1
feb648e
* Sat Jul 14 2012 Brendan Jones <brendan.jones.it@gmail.com> 2.0.6-1
feb648e
- Update to version 2.0.6, correct language
feb648e
4aef873
* Wed Jan 18 2012 Brendan Jones <brendan.jones.it@gmail.com> - 2.0.2-3
f473875
- Exclude only .mo files, not the whole directory
f473875
4aef873
* Wed Jan 18 2012 Brendan Jones <brendan.jones.it@gmail.com> - 2.0.2-2
3cb40f8
- Removed rumor/timidity++ requires added portmidi and bindings
3cb40f8
fe75d88
* Mon Jan 16 2012 Brendan Jones <brendan.jones.it@gmail.com> - 2.0.2-1
e3b4fd2
- New upstream version
e3b4fd2
d2b09b0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
d2b09b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d2b09b0
feea54d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
feea54d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
feea54d
860ed65
* Thu Dec 30 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.2.0-1
860ed65
- New upstream version
860ed65
- Drop upstreamed py2.7 patch
860ed65
4b48349
* Thu Aug 19 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.0.3-1
4b48349
- New upstream version (for KDE 4.5)
4b48349
- Drop BR: gettext ImageMagick lilypond that are no longer required
4b48349
a6021e9
* Tue Jul 27 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.0.2-3
a6021e9
- Enable build for python-2.7
a6021e9
6306ff6
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.2-2
6306ff6
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
6306ff6
7860f48
* Sat Feb 20 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.0.2-1
7860f48
- New upstream version (for KDE 4.4)
7860f48
1c0187e
* Sat Jan 30 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.0.1-1
1c0187e
- New upstream version
1c0187e
6ceae9f
* Wed Nov 18 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.16-1
6ceae9f
- New upstream version
6ceae9f
c7c1aae
* Thu Sep 17 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.14-1
c7c1aae
- New upstream version
c7c1aae
5bc7514
* Mon Aug 10 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.13-1
5bc7514
- New upstream version
5bc7514
- No need to rebuild .mo and .png files per new guidelines
5bc7514
29b233f
* Wed Aug 05 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.12-3
29b233f
- Update the .desktop file
29b233f
27b75c0
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.12-2
27b75c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
27b75c0
2c7a2c0
* Sun Jul 05 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.12-1
2c7a2c0
- New upstream version
2c7a2c0
ed4c674
* Mon Jun 15 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.11-1
ed4c674
- New upstream version
ed4c674
674c020
* Tue Jun 09 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.10-1
674c020
- New upstream version
674c020
- Decompress the icon. RHBZ #491016 is being ignored.
674c020
e63f61a
* Sat May 23 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.9-1
e63f61a
- New upstream version
e63f61a
8ad9671
* Tue Mar 24 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.8-1
8ad9671
- New upstream version
8ad9671
8ad9671
* Tue Mar 17 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.7-2
8ad9671
- Remove BuildRequires:  dbus-python
8ad9671
- Fix the year of the previous changelog entry
8ad9671
- Add "Public Domain" to the license tag
8ad9671
- Add AudioVideo category to the .desktop file
8ad9671
- Add disttag
8ad9671
8ad9671
* Sun Mar 15 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.7.7-1
8ad9671
- Initial build