glabels-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. Name: glabels
  2. Version: 3.0.0
  3. Release: 1%{?_dist_release}
  4. Summary: A program for creating labels and business cards for GNOME
  5. Summary(ja): GNOME 用のラベルと名刺を作成するためのプログラム
  6. Group: Applications/Publishing
  7. License: GPLv3+
  8. URL: http://glabels.sf.net
  9. Source0: http://dl.sf.net/%{name}/%{name}-%{version}.tar.bz2
  10. #Patch0: %{name}-libxml-XML_PARSE_HUGE.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: cairo-devel >= 1.10.0
  13. BuildRequires: desktop-file-utils
  14. BuildRequires: evolution-data-server-devel >= 2.32.0
  15. BuildRequires: gettext
  16. BuildRequires: gtk3-devel >= 3.0.9
  17. BuildRequires: glib2 >= 2.28.2
  18. BuildRequires: libglade2-devel >= 2.6
  19. BuildRequires: libgnomeui-devel >= 2.16
  20. BuildRequires:librsvg2-devel >= 2.32.0
  21. BuildRequires: libSM-devel
  22. BuildRequires: libxml2 >= 2.7.8
  23. BuildRequires: pango-devel
  24. BuildRequires: perl-XML-Parser
  25. BuildRequires: scrollkeeper
  26. BuildRequires: intltool
  27. BuildRequires: gnome-doc-utils >= 0.3.2
  28. BuildRequires: qrencode-devel
  29. BuildRequires: zint-devel
  30. Requires(post): desktop-file-utils
  31. Requires(post): /sbin/ldconfig
  32. Requires(post): shared-mime-info
  33. Requires(postun): desktop-file-utils
  34. Requires(postun): /sbin/ldconfig
  35. Requires(postun): shared-mime-info
  36. Requires: %{name}-libs = %{version}-%{release}
  37. Requires: %{name}-doc = %{version}-%{release}
  38. Requires: %{name}-templates = %{version}-%{release}
  39. %description
  40. gLabels is a lightweight program for creating labels and
  41. business cards for the GNOME desktop environment.
  42. It is designed to work with various laser/ink-jet peel-off
  43. label and business card sheets that you'll find at most office
  44. supply stores.
  45. %description -l ja
  46. gLabels はGNOME デスクトップ環境用のラベルや名刺を
  47. 作成するための軽量のプログラムです。
  48. 殆どのオフィス用品店で見つけることができる様々な
  49. レーザー/インクジェット用のラベルや名刺用紙に対応するよう
  50. 設計されています。
  51. %package devel
  52. Summary: Development files for %{name}
  53. Summary(ja): %{name} の開発ファイル
  54. License: LGPLv3+
  55. Group: Development/Libraries
  56. Requires: %{name}-libs = %{version}-%{release}
  57. %description devel
  58. This package contains the header files and development documentation for
  59. libglabels.
  60. %description -l ja devel
  61. このパッケージは libglabels のヘッダファイルと
  62. 開発ドキュメントを含んでいます。
  63. %package libs
  64. License: LGPLv3+
  65. Summary: Shared liblaries for %{name}
  66. Summary(ja): %{name} の共有ライブラリ
  67. Group: Development/Libraries
  68. %description libs
  69. This package contains the shared libraries for %{name}.
  70. %description -l ja libs
  71. このパッケージは %{name} の共有ライブラリを含んでいます。
  72. %package doc
  73. License: GFDL
  74. Summary: Runtime documentation for %{name}
  75. Summary(ja): %{name} の実行ドキュメント
  76. Group: Development/Libraries
  77. Requires(post): scrollkeeper
  78. Requires(postun): scrollkeeper
  79. %description doc
  80. This package contains the runtime documentation and manual pages for %{name}.
  81. %description -l ja doc
  82. このパッケージは %{name} の実行ドキュメントとマニュアルを含んでいます。
  83. %package templates
  84. License: MIT
  85. Summary: The %{name} template database
  86. Summary(ja): %{name} のテンプレートデータベース
  87. Group: Development/Libraries
  88. ## Needs the glabels-libs subpackage for proper ownership of the top-level
  89. ## libglabels-3.0 directory in %%_datadir.
  90. Requires: %{name}-libs
  91. %description templates
  92. This package contains the template database for %{name}.
  93. %description -l ja templates
  94. このパッケージは %{name} のテンプレートデータベースを含んでいます。
  95. %prep
  96. %setup -q
  97. #%patch0 -p1 -b .libxml-XML_PARSE_HUGE
  98. sed -i 's/Icon=glabels-3.0.png/Icon=glabels-3.0/g' \
  99. data/desktop/glabels-3.0.desktop.in
  100. %build
  101. %configure --enable-static=no --enable-gtk-doc
  102. make %{?_smp_mflags}
  103. %install
  104. rm -rf %{buildroot}
  105. make install DESTDIR=%{buildroot}
  106. desktop-file-install \
  107. --vendor="" \
  108. --dir %{buildroot}%{_datadir}/applications \
  109. --delete-original \
  110. %{buildroot}%{_datadir}/applications/%{name}-3.0.desktop
  111. %find_lang %{name}-3.0
  112. rm -rf %{buildroot}%{_libdir}/libglabels-3.0.la
  113. rm -rf %{buildroot}%{_libdir}/libglbarcode-3.0.la
  114. %post
  115. update-desktop-database &> /dev/null ||:
  116. update-mime-database %{_datadir}/mime &> /dev/null ||:
  117. %postun
  118. update-desktop-database &> /dev/null ||:
  119. update-mime-database %{_datadir}/mime &> /dev/null ||:
  120. if [ $1 -eq 0 ]; then
  121. glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null ||:
  122. fi
  123. %post libs -p /sbin/ldconfig
  124. %postun libs -p /sbin/ldconfig
  125. %post doc
  126. scrollkeeper-update -q -o %{_datadir}/omf/%{name} ||:
  127. %postun doc
  128. scrollkeeper-update -q ||:
  129. %posttrans
  130. glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null ||:
  131. %clean
  132. rm -rf %{buildroot}
  133. %files -f %{name}-3.0.lang
  134. %defattr(-,root,root,-)
  135. %doc AUTHORS ChangeLog COPYING COPYING.README_FIRST NEWS README TODO
  136. %{_bindir}/glabels*
  137. %{_datadir}/applications/glabels-3.0.desktop
  138. %{_datadir}/glib-2.0/schemas/org.gnome.glabels-3.gschema.xml
  139. %{_datadir}/glabels-3.0/
  140. %{_datadir}/icons/hicolor/*/
  141. %{_datadir}/mime/packages/glabels-3.0.xml
  142. %files devel
  143. %defattr(-,root,root,-)
  144. %doc AUTHORS COPYING-LIBS
  145. %doc %{_datadir}/gtk-doc/html/libglabels-3.0/
  146. %{_includedir}/libglabels-3.0/
  147. %{_includedir}/libglbarcode-3.0/
  148. %{_libdir}/libglabels-3.0.so
  149. %{_libdir}/libglbarcode-3.0.so
  150. %{_libdir}/pkgconfig/libglabels-3.0.pc
  151. %{_libdir}/pkgconfig/libglbarcode-3.0.pc
  152. %files libs
  153. %defattr(-,root,root,-)
  154. %doc AUTHORS COPYING-LIBS
  155. %dir %{_datadir}/libglabels-3.0/
  156. %{_datadir}/glabels-3.0/
  157. %{_libdir}/libglabels-3.0.so.*
  158. %{_libdir}/libglbarcode-3.0.so.*
  159. %files doc
  160. %defattr(-,root,root,-)
  161. ## Manual ("man") pages are automatically marked as %%doc by RPM.
  162. %doc AUTHORS COPYING-DOCS
  163. %doc %{_datadir}/gnome/help/glabels-3.0/
  164. %{_mandir}/man?/glabels-3*
  165. %{_datadir}/gtk-doc/html/libglabels-3.0/
  166. %{_datadir}/gtk-doc/html/libglbarcode-3.0/
  167. %files templates
  168. %doc AUTHORS COPYING-TEMPLATES
  169. %{_datadir}/libglabels-3.0/dtd/
  170. %{_datadir}/libglabels-3.0/templates/
  171. %changelog
  172. * Sat Sep 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.0-1
  173. - new upstream release
  174. - changed License: GPLv2+ to GPLv3+
  175. - changed %%configure option
  176. - deleted unrecognized option
  177. - changed --disable-static to --enable-static=no
  178. - added --enable-gtk-doc
  179. - added BuildRequires: cairo-devel >= 1.10.0, pango-devel, qrencode-devel, zint-devel
  180. - changed BuildRequires: gtk2-devel >= 2.22.0 to gtk3-devel >= 3.0.9
  181. - made -templates sub package
  182. - unresolved: can't appear icon on desktop file..
  183. * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.8-6
  184. - rebuild with evolution-data-server-3.1.90
  185. * Sun Aug 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.8-5
  186. - rebuild with evolution-data-server-3.1.4
  187. * Tue Oct 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.8-4
  188. - rebuild with evolution-data-server-2.32.0
  189. * Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 2.2.8-3
  190. - rebuilt with rpm-4.8.1 for pkg-config
  191. * Sat Jun 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2.8-2
  192. - rebuild with evolution-data-server-2.30.2
  193. * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2.8-1
  194. - new upstream release
  195. - add BuildRequires: gnome-doc-utils >= 0.3.2
  196. * Wed Mar 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.2.7-1
  197. - New upstream release
  198. - dropt Patch0
  199. - added BuildRequires: libSM-devel
  200. * Wed Nov 18 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.2.6-1
  201. - New upstream release
  202. - changed BuildRequires: gtk2 to gtk2-devel
  203. - added BuildRequires: intltool
  204. - added Patch1 from Fedora
  205. * Sun Jun 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.2.5-1
  206. - initial build for VineSeed
  207. * Wed Jan 07 2009 Peter Gordon <peter@thecodergeek.com> - 2.2.4-1
  208. - Update to new upstream bug-fix release (2.2.4):
  209. * Corrected button order in "Open" and "Save as" dialogs.
  210. * Fixed performance problem when large number of fonts are installed.
  211. * Corrected several i18n problems.
  212. * Fixed "paste" bug that created phantom object views.
  213. * Fixed performance problem when many objects are selected.
  214. * New templates.
  215. * Tue Aug 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.3-2
  216. - fix license tag (again)
  217. * Thu Aug 21 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.3-1
  218. - Update to new upstream bug-fix release (2.2.3).
  219. - Drop glabels-batch segfault patch (fixed upstream).
  220. - fix-batch-segfault.patch
  221. * Fri Aug 08 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.2-3
  222. - Add patch from Casey Harkins to fix a segfault in glabels-batch:
  223. + fix-batch-segfault.patch
  224. - Resolves: bug #458473.
  225. * Mon Jul 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.2-2
  226. - fix license tag
  227. * Tue Mar 04 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.2-1
  228. - Update to new upstream bug-fix release (2.2.2).
  229. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.2.1-2
  230. - Autorebuild for GCC 4.3
  231. * Mon Jan 28 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.1-1
  232. - Update to new upstream bug-fix release (2.2.1).
  233. * Mon Jan 14 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.0-1
  234. - Update to new upstream release (2.2.0 Final); Yay!
  235. * Sun Dec 16 2007 Peter Gordon <peter@thecodergeek.com> - 2.1.5-1
  236. - Update to new upstream development snapshot (2.1.5).
  237. * Tue Aug 21 2007 Peter Gordon <peter@thecodergeek.com> - 2.0.4-7
  238. - Rebuild with new BuildID-enabled binutils.
  239. * Fri Aug 03 2007 Peter Gordon <peter@thecodergeek.com> - 2.0.4-6
  240. - Update License tagging (GPLv2+). This necessitates a split of two
  241. subpackages:
  242. (1) glabels-doc: Runtime documentation for gLabels (GFDLv1.1+)
  243. (2) glabels-libs: Shared libraries for gLabels (LGPLv2+)
  244. - Fix version in previous %%changelog entry.
  245. - Lots and lots of aesthetic spec file changes.
  246. - Remove X-Fedora category from desktop-file-install invocation.
  247. - Add TODO to installed %%doc files.
  248. * Sun Aug 27 2006 Peter Gordon <peter@thecodergeek.com> - 2.0.4-5
  249. - Add BR: perl(XML::Parser)
  250. * Sun Aug 27 2006 Peter Gordon <peter@thecodergeek.com> - 2.0.4-4
  251. - Mass FC6 rebuild
  252. * Wed Jul 05 2006 Peter Gordon <peter@thecodergeek.com> - 2.0.4-3
  253. - Add BuildRequires: gettext (#197633)
  254. * Sat Feb 18 2006 Jef Spaleta <jspaleta@gmail.com> - 2.0.4-2
  255. - Bump for fe5 rebuild
  256. * Sat Jan 01 2006 Jef Spaleta <jspaleta@gmail.com> - 2.0.4-1
  257. - Update to new stable upstream version
  258. * Thu Aug 18 2005 Jef Spaleta <jspaleta@gmail.com> - 2.0.3-3
  259. - rebuild
  260. * Thu Jul 7 2005 Jef Spaleta <jspaleta@gmail.com> - 2.0.3-2
  261. - use Source0
  262. * Mon Jul 5 2005 Jef Spaleta <jspaleta@gmail.com> - 2.0.3-1
  263. - Initial fedora extras build