lilypond-vl.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. %define buildinfo yes
  2. %define name lilypond
  3. %define iconsdir /usr/share/pixmaps
  4. %define infodir %{_infodir}/%{name}
  5. Summary: A typesetting system for music notation
  6. Summary(ja):楽譜作成プログラム
  7. Group: Applications/Publishing
  8. Name: %{name}
  9. #Version: 2.4.5
  10. Version: 2.12.3
  11. Release: 1%{?_dist_release}
  12. License: GPLv2
  13. URL: http://www.lilypond.org/
  14. Source0: http://download.linuxaudio.org/lilypond/sources/v2.12/%{name}-%{version}.tar.gz
  15. Patch0: lilypond-platex-2.4.5.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. ## from fc11
  18. Patch10: lilypond-2.11.65-python26.patch
  19. Patch12: lilypond-2.21.2-gcc44-relocate.patch
  20. Patch13: lilypond-consts.patch
  21. BuildRequires: t1utils ImageMagick-devel gettext tetex
  22. BuildRequires: gcc-c++
  23. BuildRequires: bison flex m4
  24. BuildRequires: python-devel >= 2.4.0
  25. BuildRequires: mftrace >= 1.1.19
  26. Buildrequires: texinfo >= 4.8
  27. BuildRequires: guile-devel >= 1.8
  28. BuildRequires: ghostscript >= 8.15
  29. BuildRequires: pango-devel >= 1.12.0
  30. BuildRequires: potrace >= 1.3
  31. BuildRequires: netpbm-progs
  32. BuildRequires: xdvik
  33. BuildRequires: ec-fonts-mftraced
  34. Buildrequires: which
  35. BuildRequires: glibc-devel groff
  36. BuildRequires: fontforge
  37. Requires: chkfontpath
  38. %description
  39. LilyPond is a music typesetter. It produces beautiful sheet music using a
  40. high level description file as input. Lilypond is part of the GNU project.
  41. LilyPond is split into two packages. The package "lilypond" provides the
  42. core package, containing the utilities for converting the music source
  43. (.ly) files into printable output. The package "lilypond-documentation"
  44. provides the full documentation, example .ly files for various features and
  45. the Mutopia project files (musical equivalent of the Gutenberg project - see
  46. http://www.mutopiaproject.org for details).
  47. If you are new to lilypond, you will almost certainly want to install the
  48. "lilypond-documentation" package in addition to the "lilypond" package.
  49. %description -l ja
  50. LilyPond は GNU プロジェクトで開発されている楽譜作成ソフトです。高解像度の
  51. とてもきれいな楽譜を作ることができます。
  52. LiLyPond は2つのパッケージにわかれています。"lilypond"パッケージがメインパッ
  53. ケージ"で、楽譜ソースファイル(.ly)を印刷可能な形式に変換するプログラムが入っ
  54. てます。tex, html等に簡単に楽譜を挿入するための lilypond-book コマンドもあり
  55. ます.(Vine用パッケージでは,platexでの利用も可能に変更してあります.)
  56. "lilypond-documentation" にはマニュアルやいろいろなサンプルファイル(.ly)、
  57. Mutopiaプロジェクトによるいつくかのファイルが入ってます。Mutopia プロジェクト
  58. (musical equivalent of the Gutenberg project)については
  59. http://www.mutopiaproject.orgを見てください。
  60. %package -n liblilypond
  61. Summary: Lilypond libraries
  62. Summary(ja): Lilypond ライブラリ
  63. Group: System Environment/Libraries
  64. Requires: lilypond >= %{version}
  65. %description -n liblilypond
  66. Lilypond libs
  67. %package documentation
  68. Summary: LilyPond documentation, examples and Mutopia files.
  69. Summary(ja): LilyPond のマニュアル, サンプル,Mutopiaファイル
  70. Group: Applications/Documentation
  71. Requires: %{name}
  72. %description documentation
  73. The documentation of LilyPond, both in HTML and PostScript, along with
  74. example input files and the files from the Mutopia project.
  75. %description documentation -l ja
  76. LiLyPond のマニュアルです.HTML ,PostScript, PDF の形式のものがあります.
  77. サンプルや Mutopiaプロジェクトによるファイルも入ってます.
  78. %prep
  79. rm -rf $RPM_BUILD_ROOT
  80. %setup -q
  81. #%patch -p1
  82. # from fc11
  83. %patch10 -p0
  84. %patch12 -p0
  85. #%patch13 -p1
  86. %build
  87. ##@ # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
  88. ##@ # so we can't do make prefixix=/tmp/ install.
  89. ##@
  90. ##@ # In fact, do not take out the spaces between % and { in the above comment,
  91. ##@ # because RPM will gladly do a substitution anyway.
  92. ##@ ./configure \
  93. ##@ --disable-checking \
  94. ##@ --prefix=%{_prefix} \
  95. ##@ --libdir=%{_libdir} \
  96. ##@ --includedir=%{_includedir} \
  97. ##@ --enable-optimising \
  98. ##@ ;
  99. ##@
  100. ##@ %{__make} all
  101. ##@ %{__make} web
  102. ##@ %{__make} -C Documentation/user omf
  103. %configure --without-kpathsea --disable-checking --with-ncsb-dir=%{_datadir}/fonts/default/Type1
  104. %{__make}
  105. %install
  106. %{__rm} -rf %{buildroot}
  107. make install DESTDIR=$RPM_BUILD_ROOT package_infodir=%{_infodir} vimdir=%{_datadir}/vim/vim72
  108. chmod +x $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}/python/midi.so
  109. # Symlink lilypond-init.el in emacs' site-start.d directory
  110. pushd $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
  111. mkdir site-start.d
  112. ln -s ../lilypond-init.el site-start.d
  113. popd
  114. # Change encoding to UTF8
  115. pushd $RPM_BUILD_ROOT%{_infodir}
  116. iconv -f iso-8859-1 -t utf-8 music-glossary.info > music-glossary.info.utf8
  117. mv music-glossary.info.utf8 music-glossary.info
  118. sed -e s,lilypond/,, -i *.info
  119. popd
  120. ##@ %{makeinstall} MAKE_PFA_FILES=1 local_lilypond_libdir=%{buildroot}/%{_libdir}/%{name}/%{version}
  121. ##@ ########## install emacs els
  122. ##@ %{__mkdir} -p %{buildroot}%{_datadir}/emacs/site-lisp/site-start.d
  123. ##@ %{__install} -m 644 elisp/lilypond-init.el %{buildroot}%{_datadir}/emacs/site-lisp/site-start.d
  124. ##@
  125. ##@ ######### gzip mans
  126. ##@ %{__gzip} -9fn %{buildroot}%{_mandir}/man1/*
  127. ##@
  128. ##@ ########## install profiles
  129. ##@ #mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
  130. ##@ #cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
  131. ##@ #cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
  132. ##@
  133. ##@ ########## move items to texmf dir
  134. ##@ %define texmfdir %{buildroot}/usr/share/texmf/
  135. ##@ mkdir -p %{texmfdir}/{tex,dvips,fonts}
  136. ##@
  137. ##@ pushd %{buildroot}%{_datadir}/%{name}/%{version}/
  138. ##@ for d in dvips tex; do
  139. ##@ mv $d %{texmfdir}/$d/lilypond
  140. ##@ done
  141. ##@
  142. ##@ for d in afm source tfm; do
  143. ##@ mkdir %{texmfdir}/fonts/$d
  144. ##@ mv fonts/$d %{texmfdir}/fonts/$d/lilypond
  145. ##@ done
  146. ##@ popd
  147. ##@
  148. ##@ ########## install docs
  149. ##@ %{__make} prefix="%{buildroot}%{_prefix}" \
  150. ##@ infodir="%{buildroot}%{_infodir}" \
  151. ##@ webdir="%{buildroot}%{_docdir}/lilypond-documentation-%{version}/" web-install
  152. ##@
  153. ##@ %{__rm} -f %{buildroot}/%{_infodir}/dir
  154. ##@ %{__gzip} -9fn `find %{buildroot}%{_infodir}/ -name '*.info'`
  155. ##@
  156. ##@ ########## install icons
  157. ##@ install -d $RPM_BUILD_ROOT/%{iconsdir}
  158. ##@ install -m 644 Documentation/pictures/out-www/lelie-logo.png $RPM_BUILD_ROOT/%{iconsdir}/%{name}.png
  159. %clean
  160. %{__rm} -rf %{buildroot}
  161. %post
  162. ##@ touch /tmp/.lilypond-install
  163. ##@ %{__rm} `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
  164. ##@ /sbin/install-info %{_infodir}/lilypond/lilypond.info.gz %{_infodir}/dir
  165. ##@ /sbin/install-info %{_infodir}/lilypond/music-glossary.info.gz %{_infodir}/dir
  166. ##@ if [ -x /usr/bin/texhash ]; then /usr/bin/env - /usr/bin/texhash 2> /dev/null ;fi
  167. ##@ if [ -x /usr/bin/updmap ]; then /usr/bin/env - /usr/bin/updmap 2> /dev/null;fi
  168. ##@ /usr/X11R6/bin/mkfontdir %{_datadir}/lilypond/%{version}/fonts/type1/
  169. ##@ /usr/sbin/chkfontpath -q --add=%{_datadir}/lilypond/%{version}/fonts/type1/
  170. /sbin/install-info --info-dir=%{_infodir} %{_infodir}/lilypond.info || :
  171. /sbin/install-info --info-dir=%{_infodir} %{_infodir}/music-glossary.info || :
  172. %preun
  173. ##@ if [ $1 = 0 ] ; then
  174. ##@ if [ -f /usr/share/lilypond/%{version}/ls-R ]; then
  175. ##@ %{__rm} -f /usr/share/lilypond/%{version}/ls-R
  176. ##@ fi
  177. ##@ fi
  178. ##@ if [ $1 = 0 ]; then
  179. ##@ /sbin/install-info --delete %{_infodir}/lilypond/lilypond.info.gz %{_infodir}/dir
  180. ##@ /sbin/install-info --delete %{_infodir}/lilypond/music-glossary.info.gz %{_infodir}/dir
  181. ##@ fi
  182. ##@ if [ -x /usr/bin/chkfontpath ] ; then
  183. ##@ chkfontpath --remove=%{_datadir}/lilypond/%{version}/fonts/type1/
  184. ##@ fi
  185. if [ "$1" = "0" ]; then
  186. /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/lilypond.info || :
  187. /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/music-glossary.info || :
  188. fi
  189. ##@ %postun
  190. ##@ # %{clean_menus}
  191. ##@ if [ -x /usr/bin/texhash ] ;then /usr/bin/env - /usr/bin/texhash 2> /dev/null;fi
  192. ##@ if [ -x /usr/bin/updmap ] ;then /usr/bin/env - /usr/bin/updmap 2> /dev/null;fi
  193. ##@ if [ -x /usr/bin/scrollkeeper-update ] ;then /usr/bin/env - /usr/bin/scrollkeeper-update 2> /dev/null;fi
  194. ##@
  195. ##@ %post documentation
  196. ##@ if [ -x /usr/bin/scrollkeeper-update ] ; then
  197. ##@ scrollkeeper-update
  198. ##@ fi
  199. ##@
  200. ##@ %postun documentation
  201. ##@ if [ -x /usr/bin/scrollkeeper-update ] ; then
  202. ##@ scrollkeeper-update
  203. ##@ fi
  204. %files
  205. %defattr(-, root, root)
  206. %doc AUTHORS.txt COPYING DEDICATION INSTALL.txt NEWS.txt README.txt
  207. %doc ROADMAP THANKS
  208. %{_datadir}/emacs/site-lisp/site-start.d/%{name}-init.el
  209. %{_datadir}/emacs/site-lisp/lilypond*
  210. %{_bindir}/*
  211. %{_infodir}/*
  212. %{_mandir}/man1/*
  213. %{_datadir}/%{name}/%{version}/
  214. %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
  215. %{_datadir}/vim/vim*
  216. %files -n liblilypond
  217. %defattr(-,root,root)
  218. %{_libdir}/%{name}/%{version}/python/*.so
  219. %files documentation
  220. %defattr(-, root, root)
  221. %{_docdir}/*
  222. %{_datadir}/omf/lilypond/%{version}
  223. %changelog
  224. * Thu Apr 22 2010 Shu KONNO <owa@bg.wakwak.com> 2.12.3-1
  225. - updated LilyPond to 2.12.3
  226. - applied new versioning policy, spec in utf-8
  227. - dropt Patch0: lilypond-platex-2.4.5.patch
  228. - imported patch from fc11
  229. Patch10: lilypond-2.11.65-python26.patch
  230. Patch12: lilypond-2.21.2-gcc44-relocate.patch
  231. Patch13: lilypond-consts.patch
  232. - replaced build, install, pre/post scripts (from fc11)
  233. * Sun Jul 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.5-0vl2
  234. - rebuilt for VineSeed
  235. * Sat Mar 12 2005 Jun NISHII <jun@vinelinux.org> 2.4.5-0vl1
  236. - build on Vine 3.1
  237. * Wed Mar 24 2004 Jun Nishii <jun@vinelinux.org> 2.0.3-0vl1
  238. - build for Vine Linux
  239. - many fixes in post/postun scripts
  240. * Fri Mar 12 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.30-1thac
  241. - Updated to latest devel release
  242. * Wed Mar 10 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.29-1thac
  243. - Updated to latest devel release
  244. * Wed Feb 25 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.27-1thac
  245. - Updated to latest devel release
  246. * Thu Feb 19 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.25-1thac
  247. - Updated to latest devel release
  248. * Tue Feb 17 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.24-1thac
  249. - Updated to latest devel release
  250. * Fri Feb 13 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.21-1thac
  251. - Updated to latest devel release
  252. - Built against latest pfaedit-040211 and mftrace-1.0.27
  253. - Added requirement for potrace
  254. * Mon Feb 09 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.20-1thac
  255. - Updated to latest devel release
  256. * Tue Jan 27 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.15-1thac
  257. - Updated to latest devel release
  258. * Sat Jan 24 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.14-1thac
  259. - Updated to latest devel release
  260. * Mon Jan 19 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.12-1thac
  261. - Updated to latest devel release
  262. * Sun Jan 18 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.11-1thac
  263. - Updated to latest devel release
  264. * Sat Jan 17 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.10-1thac
  265. - Updated to latest devel release
  266. * Thu Jan 15 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.9-1thac
  267. - Updated to latest devel release
  268. * Fri Jan 09 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.8-1thac
  269. - Updated to latest devel release
  270. * Tue Jan 06 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.7-1thac
  271. - Updated to latest devel release
  272. * Mon Jan 05 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.6-1thac
  273. - Updated to latest devel release
  274. * Fri Jan 02 2004 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.4-1thac
  275. - Updated to latest devel release
  276. * Sun Dec 28 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.3-1thac
  277. - Updated to latest devel release
  278. * Sun Dec 21 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.2-1thac
  279. - Updated to latest devel release
  280. * Thu Dec 17 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.1-1thac
  281. - Updated to latest devel release
  282. * Thu Oct 30 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.0-2thac
  283. - Rebuilt for Mandrake 9.2
  284. * Fri Oct 17 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1.0-1thac
  285. - Updated to latest devel release
  286. * Mon Oct 06 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.0.1-1thac
  287. - Updated to latest devel release
  288. * Thu Sep 25 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.0.0-1thac
  289. - Updated to latest devel release
  290. - removed lilypond-words
  291. * Tue Sep 23 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.9.9-1thac
  292. - Updated to latest devel release
  293. - fixed lilypond.word install
  294. * Wed Sep 17 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.9.6-1thac
  295. - Updated to latest devel release
  296. * Thu Sep 11 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.9.5-1thac
  297. - Updated to latest devel release
  298. - Built against pyton2.3
  299. * Sun Sep 01 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.9.4-1thac
  300. - Updated to latest devel release
  301. * Sun Aug 31 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.9.3-1thac
  302. - Updated to latest devel release
  303. * Thu Aug 28 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.9.2-1thac
  304. - Updated to latest devel release
  305. * Wed Aug 27 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.9.1-1thac
  306. - Updated to latest devel release
  307. - Changed naming to differ from Mandrake cooker
  308. * Mon Aug 25 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.8.1-3mdk
  309. - Fixed documentation path
  310. - Added some of Heikki Johannes Junes suggestions
  311. * Sun Aug 24 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.8.1-2mdk
  312. - Added Heikki Johannes Junes fix for confilcting PHP variable
  313. out=/dev/vc/ by adding unset out before compiling
  314. - Compiled with recent guile = 1.6.4 and mftrace = 1.0.17
  315. - Changed icon to lilypond.png
  316. - Added menu and icons again
  317. * Thu Aug 23 2003 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.8.1-1mdk
  318. - removed menu and icons, sync with redhat-spec
  319. * Thu Jun 12 2003 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.7.23-1mdk
  320. - refreshed dependencies and file list.
  321. * Sat Feb 01 2003 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.7.12-1mdk
  322. - Built for Mandrake 9.1
  323. * Fri Dec 01 2002 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.7.9-1mdk
  324. - set menu-items to lilypond-info and lilypond-documentation.
  325. * Fri Nov 30 2002 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.7.8-4mdk
  326. - add pre/post-dependencies and menus with icon from source.
  327. * Fri Oct 28 2002 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.7.4-1mdk
  328. - info, commented menu
  329. * Fri Aug 30 2002 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.6.0-1mdk
  330. - Adapted from lilypond.redhat.skel and skeleton found in Mandrake's RPM-docs.
  331. - TODO: info (?) and dependencies.
  332. * Fri Jun 01 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.4.2-1mdk
  333. - updated by Michael Brown <mbrown@linux-mandrake.com> :
  334. - Upgraded to 1.4.2
  335. - Changed URL
  336. - Removed /etc/profile.d scripts: all TeX bits are now located properly
  337. - Rearranged documentation
  338. - Tidied spec file
  339. - Updated README.first
  340. * Mon Feb 26 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.3.129-1mdk
  341. - added in contribs by Michael Brown <mbrown@fensystems.co.uk> :
  342. - Removed info files completely (couldn't get info reader to read them)
  343. - TODO: Get this to work at some point (in the meantime, use documentation in lilypond-extras)
  344. * Sat Feb 17 2001 Michael Brown <mbrown@fensystems.co.uk>
  345. - Moved TeX font folders into the system TeX tree (this ensures that the /var/lib/texmf font cache is used instead of current folder)
  346. - Added mktexlsr to post-install and post-uninstall scripts
  347. - Patched scripts in /etc/profile.d to reflect changes to font locations
  348. - Added QuickStart guide and Points to note sections to README.first (well worth reading)
  349. - Fixed install-info and uninstall-info sections to use Mandrake's RPM macros :-)
  350. * Tue Feb 13 2001 Michael Brown <mbrown@fensystems.co.uk>
  351. - First Mandrake package
  352. - spec file heavily adapted from PowerPC contribs.
  353. - Note HTML documentation may contain duff links and may be incomplete. Lots of warnings appear when building HTML docs.
  354. - PostScript documentation is duplicated (how do you get an rpm package to contain a symlink?)
  355. - Created README.first file