skencil-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. Summary: python-based vector drawing program
  2. Summary(ja): ベクタ型ドローイングプログラム
  3. Name: skencil
  4. Version: 0.6.17
  5. Release: 3.svn20070606%{?_dist_release}
  6. License: LGPL, Python style
  7. Distribution: Vine Linux
  8. Vendor: Project Vine
  9. Group: Applications/Graphics
  10. URL: http://www.nongnu.org/skencil/
  11. Source0: http://dl.sf.net/sketch/skencil-0.6.tar.gz
  12. Source1: skencil-logo.png
  13. Source2: skencil.desktop
  14. Source3: skencil.xml
  15. Patch1: skencil-font.patch
  16. Patch2: skencil-0.6.17-fill-missing-bldshared.patch
  17. # https://bugs.launchpad.net/ubuntu/+source/skencil/+bug/361636
  18. Patch3: skencil-0.6.17-deletecommand.patch
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Requires: python >= 1.5.1, tkinter, python-imaging
  21. BuildRequires: python >= 1.5.1, python-imaging
  22. BuildRequires: xorg-x11-devel desktop-file-utils
  23. Prefix: %{_prefix}
  24. obsoletes: sketch < %{version}
  25. %description
  26. Skencil is an interactive X11 vector drawing program. It is written
  27. almost completely in Python, an object oriented interpreted programming
  28. language.
  29. %prep
  30. %setup -q -n skencil-0.6
  31. %patch1 -p1 -b .font
  32. %patch2 -p1 -b .bldshared
  33. %patch3 -p2 -b .deletecommand
  34. %ifarch x86_64
  35. grep -rl lib/ . | xargs perl -pi -e's,lib/,%{_lib}/,g'
  36. grep -rl lib\' . | xargs perl -pi -es,lib\',%{_lib}\',g
  37. %endif
  38. # remove .svn directories
  39. find . -type d -name .svn -print0 | xargs -0r rm -rf
  40. %build
  41. %{__python} setup.py configure --with-nls
  42. %{__python} setup.py build
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. %{__python} setup.py install --prefix=%{_prefix} --dest-dir=$RPM_BUILD_ROOT
  46. %{__install} -m 755 Tools/mkfontdb.py $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/
  47. ln -s %{_libdir}/%{name}-%{version}/mkfontdb.py $RPM_BUILD_ROOT%{_bindir}/mkfontdb
  48. mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
  49. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  50. mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime/packages
  51. install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps/
  52. desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2}
  53. install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/mime/packages/
  54. strip -S $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/Lib/*.so
  55. strip -S $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/Sketch/Modules/*.so
  56. %clean
  57. rm -rf %{buildroot}
  58. %post
  59. %{_bindir}/update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
  60. %{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
  61. %postun
  62. %{_bindir}/update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
  63. %{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
  64. %files
  65. %defattr(-, root, root)
  66. %doc Doc Examples Misc README INSTALL BUGS CREDITS COPYING TODO PROJECTS FAQ NEWS
  67. %doc --parents */README */COPYING
  68. %{_libdir}/%{name}-%{version}
  69. %{_bindir}/mkfontdb
  70. %{_bindir}/sk2ppm
  71. %{_bindir}/sk2ps
  72. %{_bindir}/skconvert
  73. %{_bindir}/skencil
  74. %{_bindir}/sketch
  75. %{_bindir}/skshow
  76. %{_datadir}/pixmaps/*
  77. %{_datadir}/applications/*
  78. %{_datadir}/mime/packages/*
  79. %changelog
  80. * Wed Dec 16 2009 Kazutaka HARADA <kazutaka@vinelinux.org> - 0.6.17-3.svn20070606
  81. - update source to latest svn version of 0.6 seriese
  82. - add Patch3 to fix tcl command deleteion error
  83. (<BTS:VineLinux:848>)
  84. * Thu Aug 21 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.6.17-2
  85. - add Patch2 to fix build failure
  86. * Wed Jun 25 2008 Shu KONNO <owa@bg.wakwak.com> 0.6.17-1vl5
  87. - applied new versioning policy and spec in utf-8
  88. - added BuildRequires: xorg-x11-devel desktop-file-utils
  89. * Fri Jan 18 2008 Shu KONNO <owa@bg.wakwak.com> 0.6.17-0vl1
  90. - updated skencil to 0.6.17
  91. - added skencil.desktop
  92. - dropt savannah-bug-10345.diff (fixed)
  93. * Mon May 23 2005 Shu KONNO <owa@bg.wakwak.com> 0.6.16-0vl3
  94. - added skencil-font.patch (by Ishikawa)
  95. * Sun May 22 2005 Shu KONNO <owa@bg.wakwak.com> skencil-0.6.16-0vl2
  96. - changed name to skencil
  97. - changed URL
  98. - updated 0.6.16
  99. - rebuilt with python-2.4
  100. - added savannah-bug-10345.diff
  101. http://savannah.nongnu.org/bugs/?func=detailitem&item_id=10345
  102. * Thu May 02 2002 Satoshi MACHINO <machino@vinelinux.org> 0.6.13-0vl1
  103. - updated 0.6.13
  104. * Tue Jul 24 2001 Satoshi MACHINO <machino@vinelinux.org> 0.6.12-0vl1
  105. - updated
  106. * Thu Nov 9 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  107. - 0.6.7-0vl2
  108. - added BuildPrereq:
  109. * Thu Aug 03 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  110. - Update to 0.6.7
  111. * Sat Jan 12 2000 SAITO Atsushi <saito4@slb.com>
  112. - Update to 0.6.4
  113. * Sat Dec 4 1999 SAITO Atsushi <saito4@slb.com>
  114. - Update to 0.6.3
  115. * Thu Oct 8 1999 SAITO Atsushi <saito4@slb.com>
  116. - Update to 0.6.2
  117. * Tue Aug 17 1999 SAITO Atsushi <saito4@slb.com>
  118. - Update to 0.6.1
  119. * Sun Mar 7 1999 MATSUMOTO Shoji <vine@flatout.org>
  120. - make spec