librsvg2-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. %define __libtoolize :
  2. Name: librsvg2
  3. Summary: An SVG library based on cairo.
  4. Summary(ja): cairo ベースの SVG ライブラリ
  5. Group: graphics,system
  6. Version: 2.57.0
  7. Release: 1%{?_dist_release}
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: LGPL
  11. %global shortver %(echo %{version} | sed -e 's/\\.[0-9]*$//')
  12. Source: https://download.gnome.org/sources/librsvg/%{shortver}/librsvg-%{version}.tar.xz
  13. # upstream dropped vendoring since 2.55.0 (GNOME/librsvg#718), to create:
  14. # tar xf librsvg-%%{version}.tar.xz ; pushd librsvg-%%{version} ; \
  15. # cargo vendor && tar Jcvf ../librsvg-%%{version}-vendor.tar.xz vendor/ ; popd
  16. Source1: librsvg-%{version}-vendor.tar.xz
  17. Source2: cargo.sh
  18. # Patches to build with Fedora-packaged rust crates
  19. Patch1: 0001-Fedora-Drop-dependencies-required-for-benchmarking.patch
  20. # Fix self tests with newer pango
  21. Patch2: 0001-1019-Fix-small-caps-and-bump-the-version-of-Pango-re.patch
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildRequires: chrpath
  24. BuildRequires: gobject-introspection-devel
  25. BuildRequires: cairo-devel
  26. BuildRequires: fontconfig-devel
  27. BuildRequires: gdk-pixbuf2-devel
  28. BuildRequires: glib2-devel
  29. BuildRequires: libxml2-devel
  30. BuildRequires: pango-devel
  31. BuildRequires: vala
  32. BuildRequires: rust
  33. BuildRequires: cargo
  34. Requires: cairo
  35. Obsoletes: %{name}-doc < 2.57.0
  36. %description
  37. An SVG library based on cairo.
  38. %description -l ja
  39. cairo ベースの SVG ライブラリです
  40. %package devel
  41. Summary: Libraries and include files for developing with librsvg.
  42. Summary(ja): librsvg の開発用ライブラリおよびヘッダファイル
  43. Group: programming
  44. Requires: %{name} = %{version}
  45. Requires: gdk-pixbuf2-devel
  46. Requires: cairo-devel
  47. %description devel
  48. This package provides the necessary development libraries and include
  49. files to allow you to develop with librsvg.
  50. %package docs
  51. Summary: Documentation for %{name}
  52. Summary(ja): %{name} 用のドキュメント
  53. Group: documentation
  54. BuildArch: noarch
  55. Requires: %{name} = %{version}-%{release}
  56. %description docs
  57. This package contains documentation for %{name}.
  58. %package vala
  59. Summary: Vala bindings for %{name}
  60. Summary(ja): %{name} の Vala バインディング
  61. Group: programming
  62. Requires: %{name} = %{version}-%{release}
  63. Requires: vala
  64. %description vala
  65. Vala bindings for %{name}.
  66. %debug_package
  67. %prep
  68. %autosetup -p1 -n librsvg-%{version} -a 1
  69. sed -i -e 's/--locked/--offline/' Makefile.am
  70. autoreconf -vif
  71. sh %{SOURCE2}
  72. %build
  73. %configure \
  74. --disable-gtk-doc \
  75. --enable-introspection=yes \
  76. --enable-vala=yes \
  77. --with-svgz \
  78. --enable-gtk-theme \
  79. --disable-static
  80. %__make %{?_smp_mflags}
  81. %install
  82. make install DESTDIR=%{buildroot}
  83. find %{buildroot} -type f -name '*.la' -print -delete
  84. rm -rf %{buildroot}%{_docdir}/librsvg
  85. # Remove lib64 rpaths
  86. chrpath --delete %{buildroot}%{_bindir}/rsvg-convert
  87. chrpath --delete %{buildroot}%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-svg.so
  88. # Not useful in this package.
  89. rm -f %{buildroot}%{_pkgdocdir}/COMPILING.md
  90. %clean
  91. rm -rf %{buildroot}
  92. %files
  93. %defattr(-,root,root,-)
  94. %license COPYING.LIB
  95. %doc AUTHORS NEWS README.md
  96. %{_bindir}/rsvg-convert
  97. %{_libdir}/librsvg-2.so.*
  98. %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
  99. %{_libdir}/girepository-1.0/Rsvg-2.0.typelib
  100. %dir %{_datadir}/thumbnailers
  101. %{_datadir}/thumbnailers/librsvg.thumbnailer
  102. %files devel
  103. %defattr(-,root,root,-)
  104. %{_libdir}/librsvg-2.so
  105. %{_includedir}/librsvg-2.0/librsvg
  106. %{_libdir}/pkgconfig/librsvg-2.0.pc
  107. %{_datadir}/gir-1.0/Rsvg-2.0.gir
  108. %files vala
  109. %defattr(-,root,root,-)
  110. %{_datadir}/vala/vapi/librsvg-2.0.*
  111. %changelog
  112. * Thu Oct 05 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.57.0-1
  113. - new upstream release.
  114. * Sun May 09 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.50.5-1
  115. - new upstream release.
  116. - dropped scriptlets.
  117. * Thu Apr 15 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.50.4-1
  118. - new upstream release.
  119. * Mon Mar 08 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.50.3-1
  120. - new upstream release.
  121. * Thu Aug 13 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.48.8-1
  122. - new upstream release.
  123. - cleaned BR: up.
  124. * Sat Feb 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.46.4-1
  125. - new upstream release.
  126. * Sun Jul 17 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.16-1
  127. - new upstream release
  128. * Sat Dec 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.12-1
  129. - new upstream release
  130. * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.11-1
  131. - new upstream release
  132. - remove Patch0
  133. * Sun Aug 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.10-1
  134. - new upstream release
  135. - add Patch0 (librsvg-2.40.10-git20150811.patch)
  136. * Sun Mar 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.9-1
  137. - new upstream release
  138. * Sun Mar 08 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.8-1
  139. - new upstream release
  140. * Sun Mar 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.7-1
  141. - new upstream release
  142. * Mon Dec 22 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.6-1
  143. - new upstream release
  144. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.5-1
  145. - new upstream release
  146. * Thu Aug 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.3-1
  147. - new upstream release
  148. * Sun Jul 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.2-2
  149. - rebuild with libpng-1.6.12
  150. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.2-1
  151. - new upstream release
  152. * Mon Jan 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.1-2
  153. - fix typo
  154. * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.1-1
  155. - new upstream release
  156. - remove BuildRequires: gtk2-devel
  157. * Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.36.4-2
  158. - add BuildRequires: autoconf, gtk-doc, vala-devel, vala-tools
  159. - create %%{name}-docs and %%{name}-vala subpackages
  160. * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.36.4-1
  161. - new upstream release
  162. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.36.3-1
  163. - new upstream release
  164. * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.36.1-1
  165. - new upstream release
  166. * Sun Nov 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.34.2-1
  167. - new upstream release
  168. - add BuildRequires: gobject-introspection-devel
  169. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.34.1-1
  170. - new upstream release
  171. - remove Patch0
  172. * Mon Aug 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.34.0-1
  173. - new upstream release
  174. - add Patch0 (librsvg2-2.34.0-git20110728.patch)
  175. * Sat Nov 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.1-1
  176. - new upstream release
  177. * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.0-1
  178. - new upstream release
  179. - remove BuildRequires: popt, libart_lgpl, libgnomeui-devel, gnome-vfs2-devel
  180. - remove Requires: libart_lgpl
  181. - add configure option (--disable-static)
  182. - remove unrecognized configure option (--enable-gnome-vfs, --disable-mozilla-plugins)
  183. - fix %install, %files, %post and %postun
  184. * Wed Sep 22 2010 IWAI, Masaharu <iwai@alib.jp> 2.26.3-1
  185. - build with rpm-4.8.1-1 for pkg-config file
  186. * Sun May 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.3-1
  187. - new upstream release
  188. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  189. - new upstream release
  190. - remove static libs
  191. * Sun Oct 26 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.3-1vl5
  192. - new upstream release
  193. - spec in UTF-8
  194. * Wed Mar 26 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.2-1vl5
  195. - new upstream release
  196. * Sat Mar 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18.2-0vl2
  197. - rebuilt with libgsf-1.14.8
  198. * Sat Sep 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18.2-0vl1
  199. - new upstream release
  200. * Sun May 20 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.16.1-0vl1
  201. - new upstream release
  202. - add BuildRequires: dbus-glib-devel, avahi-glib-devel
  203. - add BuildRequires: libgsf-devel, libcroco-devel
  204. - add Requires(post): dbus-glib, avahi-glib, libgsf, libcroco
  205. - add Requires(post,postun): glib2
  206. * Tue Apr 24 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.4-0vl5
  207. - rebuild with gtk+-2.10
  208. * Thu Aug 31 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.14.4-0vl4
  209. - rebuilt without libgsf-devel
  210. * Tue Jun 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.4-0vl3
  211. - update %%post scripts to use %%{_sysconfdir}/gtk-2.0/%%{_arch}/gd-pixbuf.loaders
  212. for biarch support. (TODO: add compat32)
  213. * Sat Jun 17 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.14.4-0vl2
  214. - rebuild
  215. * Mon May 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.4-0vl1
  216. - new upstream release
  217. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.2-0vl1
  218. - new upstream release
  219. * Tue Mar 07 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.1-0vl1
  220. - new upstream release
  221. * Wed Oct 12 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.12.7-0vl1
  222. - new upstream release
  223. - added --disable-gtk-doc option
  224. * Sat Oct 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.12.6-0vl1
  225. - new upstream release
  226. - added gtk-doc to devel package
  227. * Sun Oct 2 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.12.3-0vl1
  228. - new upstream release
  229. - added Japanese description
  230. - added --without-svgz option (because it requires libgsf)
  231. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.0-0vl1
  232. - new upstream release
  233. * Sun Nov 07 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-0vl1
  234. - new upstream release
  235. * Fri Jun 18 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.0-0vl4
  236. - rebuilt to avoid unwanted dependency (libgsf)
  237. * Fri Mar 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl3
  238. - add gdk-pixbuf-query-loaders to post/postun script.
  239. * Fri Mar 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl2
  240. - rebuild with gtk+-2.4.0
  241. * Wed Sep 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl1
  242. - new upstream release
  243. * Fri Sep 05 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.1-0vl2
  244. - fix kanji code of spec file
  245. - fix file entry, add missing files
  246. * Wed Sep 03 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.1-0vl1
  247. - new upstream release
  248. * Sat Jul 12 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.5-0vl2
  249. - added --without-svgz and --without-gimp to %configure
  250. * Thu Jul 10 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.5-0vl1
  251. - new upstream release
  252. - added %{_bindir}/rsvg and %{_mandir}/man1/* to main package
  253. - added %{_libdir}/gtk-2.0/* to devel package
  254. * Tue Jan 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0-0vl1
  255. - new upstream release
  256. * Thu Jan 16 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.5-0vl1
  257. - new upstream release
  258. * Fri Jan 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.3-0vl1
  259. - new upstream release
  260. * Sun Dec 15 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.2-0vl1
  261. - build for Vine Linux
  262. - new upstream release from gnome-2.1.4
  263. * Sat Jul 27 2002 Havoc Pennington <hp@redhat.com>
  264. - 2.0.1
  265. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  266. - automated rebuild
  267. * Sun May 26 2002 Tim Powers <timp@redhat.com>
  268. - automated rebuild
  269. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  270. - rebuild in different environment
  271. * Thu May 02 2002 Havoc Pennington <hp@redhat.com>
  272. - rebuild in different environment
  273. * Thu Apr 18 2002 Havoc Pennington <hp@redhat.com>
  274. - 1.1.6
  275. * Mon Feb 11 2002 Alex Larsson <alexl@redhat.com> 1.1.3-1
  276. - Update to 1.1.3
  277. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  278. - automated rebuild
  279. * Wed Jan 2 2002 Havoc Pennington <hp@redhat.com>
  280. - new CVS snap 1.1.0.91
  281. - remove automake/autoconf calls
  282. * Mon Nov 26 2001 Havoc Pennington <hp@redhat.com>
  283. - convert to librsvg2 RPM
  284. * Tue Oct 23 2001 Havoc Pennington <hp@redhat.com>
  285. - 1.0.2
  286. * Fri Jul 27 2001 Alexander Larsson <alexl@redhat.com>
  287. - Add a patch that moves the includes to librsvg-1/librsvg
  288. - in preparation for a later librsvg 2 library.
  289. * Tue Jul 24 2001 Havoc Pennington <hp@redhat.com>
  290. - build requires gnome-libs-devel, #49509
  291. * Thu Jul 19 2001 Havoc Pennington <hp@redhat.com>
  292. - own /usr/include/librsvg
  293. * Wed Jul 18 2001 Akira TAGOH <tagoh@redhat.com> 1.0.0-4
  294. - fixed the linefeed problem in multibyte environment. (Bug#49310)
  295. * Mon Jul 09 2001 Havoc Pennington <hp@redhat.com>
  296. - put .la file back in package
  297. * Fri Jul 6 2001 Trond Eivind Glomsr藷?<teg@redhat.com>
  298. - Put changelog at the end
  299. - Move .so files to devel subpackage
  300. - Don't mess with ld.so.conf
  301. - Don't use %%{prefix}, this isn't a relocatable package
  302. - Don't define a bad docdir
  303. - Add BuildRequires
  304. - Use %%{_tmppath}
  305. - Don't define name, version etc. on top of the file (why do so many do that?)
  306. - s/Copyright/License/
  307. * Wed May 9 2001 Jonathan Blandford <jrb@redhat.com>
  308. - Put into Red Hat Build system
  309. * Tue Oct 10 2000 Robin Slomkowski <rslomkow@eazel.com>
  310. - removed obsoletes from sub packages and added mozilla and trilobite
  311. subpackages
  312. * Wed Apr 26 2000 Ramiro Estrugo <ramiro@eazel.com>
  313. - created this thing