inkscape-vl.spec 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. %global src_suffix 2022-07-14_9c6d41e410
  2. Name: inkscape
  3. Summary: A Vector Drawing Application
  4. Summary(ja): ベクター描画アプリケーション
  5. Version: 1.2.1
  6. Release: 2%{?_dist_release}
  7. Group: graphics
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: GPLv2+
  11. URL: https://inkscape.org/
  12. Source0: https://media.inkscape.org/dl/resources/file/inkscape-%{version}.tar.xz
  13. # to build with poppler-22.09.0
  14. Patch1000: poppler-22.09.0.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: cairo-devel
  17. BuildRequires: cmake
  18. BuildRequires: dos2unix
  19. BuildRequires: dbus-glib-devel
  20. BuildRequires: double-conversion-devel
  21. BuildRequires: gc-devel >= 6.4
  22. BuildRequires: gdl-devel
  23. BuildRequires: gsl-devel
  24. BuildRequires: gtkmm3-devel
  25. BuildRequires: ImageMagick-c++-devel
  26. BuildRequires: lcms2-devel
  27. BuildRequires: libboost-devel
  28. BuildRequires: libboost-filesystem
  29. BuildRequires: libexif-devel
  30. BuildRequires: libjpeg-turbo-devel
  31. BuildRequires: libpng-devel >= 1.2.0
  32. BuildRequires: libsigc++-devel >= 2.0.12
  33. BuildRequires: libsoup-devel
  34. BuildRequires: libxml2-devel >= 2.6.11
  35. BuildRequires: libxslt-devel >= 1.0.15
  36. BuildRequires: libwpg-devel
  37. BuildRequires: pango-devel
  38. BuildRequires: perl-XML-Parser
  39. BuildRequires: poppler-devel >= 0.14.2
  40. BuildRequires: popt-devel
  41. BuildRequires: potrace-devel
  42. BuildRequires: python3-devel
  43. BuildRequires: python3-setuptools
  44. Requires: python3
  45. Requires: python3-lxml
  46. Requires: python3-numpy
  47. #Requires: python3-scour
  48. %description
  49. Inkscape is a SVG based generic vector-drawing program for
  50. Linux/Unix/Windows/Mac.
  51. %description -l ja
  52. Inkscape は SVG ベースの汎用ベクトル描画プログラムです。
  53. Linux/Unix/Windows/Mac で動作します。
  54. %debug_package
  55. %prep
  56. %setup -q -n %{name}-%{version}_%{src_suffix}
  57. %autopatch -p1
  58. # https://bugs.launchpad.net/inkscape/+bug/314381
  59. # A couple of files have executable bits set,
  60. # despite not being executable
  61. find . -name '*.cpp' | xargs chmod -x
  62. find . -name '*.h' | xargs chmod -x
  63. find share/extensions -name '*.py' | xargs chmod -x
  64. # Fix end of line encodings
  65. dos2unix -k -q share/extensions/*.py
  66. %build
  67. %cmake \
  68. -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
  69. %if "%{_lib}" == "lib64"
  70. -DLIB_SUFFIX=64 \
  71. %endif
  72. -DBUILD_SHARED_LIBS:BOOL=OFF
  73. %cmake_build
  74. %install
  75. rm -rf %{buildroot}
  76. %cmake_install
  77. find %{buildroot} -type f -name 'lib*.a' -delete
  78. # Don't install development files for bundled libraries
  79. rm -r $RPM_BUILD_ROOT%{_includedir}/2geom-1.1.0/
  80. rm -r $RPM_BUILD_ROOT%{_libdir}/cmake/2Geom
  81. rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/2geom.pc
  82. rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
  83. %find_lang %{name} --with-man
  84. %find_lang inkview --with-man
  85. rm -rf $RPM_BUILD_ROOT%{_datadir}/inkscape/doc
  86. rm -f $RPM_BUILD_ROOT%{_datadir}/doc/inkscape/copyright
  87. %clean
  88. rm -rf %{buildroot}
  89. %files -f %{name}.lang -f inkview.lang
  90. %defattr(-, root, root)
  91. %license COPYING
  92. %doc AUTHORS NEWS* README*
  93. %{_bindir}/inkscape
  94. %{_bindir}/inkview
  95. %{_datadir}/inkscape
  96. %{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml
  97. %{_datadir}/applications/org.inkscape.Inkscape.desktop
  98. %{_datadir}/icons/hicolor/*/*/*.png
  99. %{_datadir}/icons/hicolor/*/*/*.svg
  100. %{_mandir}/man1/*
  101. %dir %{_datadir}/bash-completion
  102. %dir %{_datadir}/bash-completion/completions
  103. %{_datadir}/bash-completion/completions/inkscape
  104. %changelog
  105. * Sat Nov 05 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.1-2
  106. - rebuilt with python3-3.11.
  107. * Sun Sep 11 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.1-1
  108. - new upstream release.
  109. * Wed Mar 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.2-2
  110. - rebuilt with poppler-21.03.0.
  111. * Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.2-1
  112. - new upstream release.
  113. * Sun Oct 27 2019 Toshiaki Ara <ara_t@384.jp> 0.92.4-3
  114. - rebuild with OpenEXR-libs-2.4.0 (required by ImageMagick)
  115. * Mon Oct 14 2019 Toshiaki Ara <ara_t@384.jp> 0.92.4-2
  116. - rebuild with poppler-0.81.0 and gsl-2.6
  117. - add Patch1002 for poppler >= 0.76.0
  118. * Mon May 20 2019 Toshiaki Ara <ara_t@384.jp> 0.92.4-1
  119. - update to 0.92.4
  120. - drop unrecognized options: --with-python, --enable-lcms2
  121. * Sun Jun 03 2018 Toshiaki Ara <ara_t@384.jp> 0.92.3-1
  122. - updated to 0.92.3
  123. - drop Patch1000,1001
  124. * Wed Jan 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.92.2-1
  125. - updated to 0.92.2
  126. * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.91-3
  127. - rebuild with gcc-5.4.0
  128. * Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.91-2
  129. - rebuild with poppler-0.43.0
  130. * Tue Nov 03 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.91-1
  131. - update to 0.91
  132. - remove old patches
  133. - add BuildRequires: dbus-glib-devel, libexif-devel, libjpeg-turbo-devel
  134. * Tue Apr 14 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.5-4
  135. - rebuild with ImageMagick-6.9.1.1
  136. * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.48.5-3
  137. - rebuilt with libwpd 0.3.0
  138. - added Patch14 to build with libwpd 0.3.0
  139. * Tue Jul 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.5-2
  140. - rebuild with poppler-0.26.2
  141. * Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.5-1
  142. - new upstream release
  143. - add BuildRequires: libwpg-devel
  144. - remove Patch0 (inkscape-0.48.4-freetype-2.5.x.patch)
  145. * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-5
  146. - rebuild with poppler-0.24.5
  147. - add Patch0 (inkscape-0.48.4-freetype-2.5.x.patch)
  148. * Sun Nov 10 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-4
  149. - rebuild with ImageMagick-6.8.7.5
  150. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-3
  151. - rebuild with poppler-0.24.2
  152. * Wed Aug 14 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-2
  153. - rebuild with ImageMagick-6.8.6.8
  154. * Mon Jul 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-1
  155. - new upstream release
  156. - remove Patch0 (inkscape-0.48.2-poppler_020.patch)
  157. * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.3.1-2
  158. - rebuild with poppler-0.20.4
  159. - add Patch0 (inkscape-0.48.2-poppler_020.patch) from fedora
  160. - change BuildRequires: lcms2-devel instead of lcms-devel
  161. * Thu Apr 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.3.1-1
  162. - new upstream release
  163. * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.2-2
  164. - rebuild with ImageMagick-6.7.5.10
  165. * Sat Feb 4 2012 TANAKA hiroaki <mosaicist@par.odn.ne.jp> 0.48.2-1
  166. - new upstream release
  167. * Sat May 28 2011 TANAKA hiroaki <mosaicist@par.odn.ne.jp>
  168. - add Requires: python-lxml,perl-XML-RegExp,perl-XML-DOM
  169. * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.48.1-1
  170. - new upstream release
  171. - built with poppler-0.16.3
  172. * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.0-2
  173. - rebuild with poppler-0.14.2
  174. - add BuildRequires: popt-devel, ImageMagick-c++-devel
  175. * Sun Oct 3 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.48-1
  176. - new upstream release
  177. - rebuilt with ImageMagick-6.6.4.8
  178. * Thu Apr 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.47-3
  179. - added Patch0 for building with poppler-0.12.2+
  180. - rebuilt with new toolchain and ImageMagick-6.6.1.5
  181. - removed BR: libgnomeprint-devel, libgnomeprintui-devel
  182. * Fri Nov 27 2009 Shu KONNO <owa@bg.wakwak.com> 0.47-2
  183. - rebuild with poppler-0.12.1
  184. * Mon Nov 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.47-1
  185. - new upstream release
  186. - add BR: libboost-devel
  187. * Thu Sep 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.47-0.1.pre2
  188. - update to 0.47pre2
  189. - drop obsolete patches
  190. - add BR: gsl-devel
  191. * Sat Dec 13 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.46-4
  192. - rebuild with poppler-0.10.2
  193. * Sun Oct 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.46-3
  194. - add Patch[1-6]
  195. * Sat Aug 23 2008 Shu KONNO <owa@bg.wakwak.com> 0.46-2vl5
  196. - added inkscape-0.46-poppler-0.8.3.patch
  197. - spec in utf-8
  198. - added option %%{?_smp_mflags} at make
  199. * Sun Apr 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.46-1vl5
  200. - new upstream release
  201. * Fri May 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.45.1-0vl2
  202. - rebuild with new environment/toolchain
  203. * Mon Apr 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.45.1-0vl1
  204. - new upstream release
  205. * Sun Mar 11 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.45-0vl2
  206. - add BuildRequires: lcms-devel >= 1.13, libxslt-devel >= 1.0.15
  207. - update required version of gtk2-devel
  208. * Sat Feb 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.45-0vl1
  209. - new upstream release
  210. * Sun Sep 24 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.44.1-0vl1
  211. - new upstream release
  212. * Wed Nov 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.43-0vl1
  213. - new upstream release
  214. * Tue Aug 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.42.2-0vl1
  215. - new upstream release
  216. * Mon Aug 22 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.42.1-0vl1
  217. - new upstream release
  218. * Thu Aug 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.42-0vl1
  219. - new upstream release
  220. * Tue Nov 16 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.40-0vl1
  221. - new upstream release
  222. - add Japanese summary and description
  223. - fixed dependancy of libsigc++12 to libsigc++ >= 2.0
  224. * Tue Nov 16 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.39-1vl2
  225. - fixed dependancy of libsigc++ to libsigc++12
  226. - fixed %files section
  227. * Wed Aug 25 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.39-1vl1
  228. - rebuild for Vine Linux
  229. - s/Copyright/License/
  230. - added Requires and BuildRequires
  231. * Sat Jul 17 2004 Bryce W. Harrington <bryce@bryceharrington.com>
  232. - Removing _libdir and TODO, updating description
  233. * Thu May 01 2003 Christian Schaller <uraeus@gnome.org>
  234. - Fix up the spec file for current release
  235. * Mon Sep 23 2002 Dag Wieers <dag@wieers.com>
  236. - Update to 0.2.6
  237. * Thu Sep 12 2002 Dag Wieers <dag@wieers.com>
  238. - Update to 0.2.5
  239. - Changed SPEC to benefit from macros