glabels-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. Name: glabels
  2. Version: 3.0.1
  3. Release: 2%{?_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.xz
  10. #Patch0: glabels-fix-child-schemas.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 .fix-child-schemas
  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. if [ $1 -eq 0 ] ; then
  124. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  125. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  126. fi
  127. %post libs -p /sbin/ldconfig
  128. %postun libs -p /sbin/ldconfig
  129. %post doc
  130. scrollkeeper-update -q -o %{_datadir}/omf/%{name} ||:
  131. %postun doc
  132. scrollkeeper-update -q ||:
  133. %posttrans
  134. glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null ||:
  135. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  136. %clean
  137. rm -rf %{buildroot}
  138. %files -f %{name}-3.0.lang
  139. %defattr(-,root,root,-)
  140. %doc AUTHORS ChangeLog COPYING COPYING.README_FIRST NEWS README TODO
  141. %{_bindir}/glabels*
  142. %{_datadir}/applications/glabels-3.0.desktop
  143. %{_datadir}/glib-2.0/schemas/org.gnome.glabels-3.gschema.xml
  144. %{_datadir}/glabels-3.0/
  145. %{_datadir}/icons/hicolor/*/
  146. %{_datadir}/mime/packages/glabels-3.0.xml
  147. %files devel
  148. %defattr(-,root,root,-)
  149. %doc AUTHORS COPYING-LIBS
  150. %doc %{_datadir}/gtk-doc/html/libglabels-3.0/
  151. %{_includedir}/libglabels-3.0/
  152. %{_includedir}/libglbarcode-3.0/
  153. %{_libdir}/libglabels-3.0.so
  154. %{_libdir}/libglbarcode-3.0.so
  155. %{_libdir}/pkgconfig/libglabels-3.0.pc
  156. %{_libdir}/pkgconfig/libglbarcode-3.0.pc
  157. %files libs
  158. %defattr(-,root,root,-)
  159. %doc AUTHORS COPYING-LIBS
  160. %dir %{_datadir}/libglabels-3.0/
  161. %{_datadir}/glabels-3.0/
  162. %{_libdir}/libglabels-3.0.so.*
  163. %{_libdir}/libglbarcode-3.0.so.*
  164. %files doc
  165. %defattr(-,root,root,-)
  166. ## Manual ("man") pages are automatically marked as %%doc by RPM.
  167. %doc AUTHORS COPYING-DOCS
  168. %doc %{_datadir}/gnome/help/glabels-3.0/
  169. %{_mandir}/man?/glabels-3*
  170. %{_datadir}/gtk-doc/html/libglabels-3.0/
  171. %{_datadir}/gtk-doc/html/libglbarcode-3.0/
  172. %files templates
  173. %doc AUTHORS COPYING-TEMPLATES
  174. %{_datadir}/libglabels-3.0/dtd/
  175. %{_datadir}/libglabels-3.0/templates/
  176. %changelog
  177. * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-2
  178. - rebuild with evolution-data-server-3.6.0
  179. * Sat Sep 22 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.1-1
  180. - new upstream release
  181. - changed source archive type bz2 to xz
  182. - deleted Patch0
  183. * Sun Aug 12 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.0-2
  184. - added Patch0 from Fedora
  185. - run gtk-update-icon-cache in %%posttrans, %%postun
  186. * Sat Sep 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.0-1
  187. - new upstream release
  188. - changed License: GPLv2+ to GPLv3+
  189. - changed %%configure option
  190. - deleted unrecognized option
  191. - changed --disable-static to --enable-static=no
  192. - added --enable-gtk-doc
  193. - added BuildRequires: cairo-devel >= 1.10.0, pango-devel, qrencode-devel, zint-devel
  194. - changed BuildRequires: gtk2-devel >= 2.22.0 to gtk3-devel >= 3.0.9
  195. - made -templates sub package
  196. - unresolved: can't appear icon on desktop file..
  197. * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.8-6
  198. - rebuild with evolution-data-server-3.1.90
  199. * Sun Aug 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.8-5
  200. - rebuild with evolution-data-server-3.1.4
  201. * Tue Oct 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.8-4
  202. - rebuild with evolution-data-server-2.32.0
  203. * Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 2.2.8-3
  204. - rebuilt with rpm-4.8.1 for pkg-config
  205. * Sat Jun 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2.8-2
  206. - rebuild with evolution-data-server-2.30.2
  207. * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2.8-1
  208. - new upstream release
  209. - add BuildRequires: gnome-doc-utils >= 0.3.2
  210. * Wed Mar 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.2.7-1
  211. - New upstream release
  212. - dropt Patch0
  213. - added BuildRequires: libSM-devel
  214. * Wed Nov 18 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.2.6-1
  215. - New upstream release
  216. - changed BuildRequires: gtk2 to gtk2-devel
  217. - added BuildRequires: intltool
  218. - added Patch1 from Fedora
  219. * Sun Jun 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.2.5-1
  220. - initial build for VineSeed
  221. * Wed Jan 07 2009 Peter Gordon <peter@thecodergeek.com> - 2.2.4-1
  222. - Update to new upstream bug-fix release (2.2.4):
  223. * Corrected button order in "Open" and "Save as" dialogs.
  224. * Fixed performance problem when large number of fonts are installed.
  225. * Corrected several i18n problems.
  226. * Fixed "paste" bug that created phantom object views.
  227. * Fixed performance problem when many objects are selected.
  228. * New templates.
  229. * Tue Aug 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.3-2
  230. - fix license tag (again)
  231. * Thu Aug 21 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.3-1
  232. - Update to new upstream bug-fix release (2.2.3).
  233. - Drop glabels-batch segfault patch (fixed upstream).
  234. - fix-batch-segfault.patch
  235. * Fri Aug 08 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.2-3
  236. - Add patch from Casey Harkins to fix a segfault in glabels-batch:
  237. + fix-batch-segfault.patch
  238. - Resolves: bug #458473.
  239. * Mon Jul 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.2-2
  240. - fix license tag
  241. * Tue Mar 04 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.2-1
  242. - Update to new upstream bug-fix release (2.2.2).
  243. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.2.1-2
  244. - Autorebuild for GCC 4.3
  245. * Mon Jan 28 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.1-1
  246. - Update to new upstream bug-fix release (2.2.1).
  247. * Mon Jan 14 2008 Peter Gordon <peter@thecodergeek.com> - 2.2.0-1
  248. - Update to new upstream release (2.2.0 Final); Yay!
  249. * Sun Dec 16 2007 Peter Gordon <peter@thecodergeek.com> - 2.1.5-1
  250. - Update to new upstream development snapshot (2.1.5).
  251. * Tue Aug 21 2007 Peter Gordon <peter@thecodergeek.com> - 2.0.4-7
  252. - Rebuild with new BuildID-enabled binutils.
  253. * Fri Aug 03 2007 Peter Gordon <peter@thecodergeek.com> - 2.0.4-6
  254. - Update License tagging (GPLv2+). This necessitates a split of two
  255. subpackages:
  256. (1) glabels-doc: Runtime documentation for gLabels (GFDLv1.1+)
  257. (2) glabels-libs: Shared libraries for gLabels (LGPLv2+)
  258. - Fix version in previous %%changelog entry.
  259. - Lots and lots of aesthetic spec file changes.
  260. - Remove X-Fedora category from desktop-file-install invocation.
  261. - Add TODO to installed %%doc files.
  262. * Sun Aug 27 2006 Peter Gordon <peter@thecodergeek.com> - 2.0.4-5
  263. - Add BR: perl(XML::Parser)
  264. * Sun Aug 27 2006 Peter Gordon <peter@thecodergeek.com> - 2.0.4-4
  265. - Mass FC6 rebuild
  266. * Wed Jul 05 2006 Peter Gordon <peter@thecodergeek.com> - 2.0.4-3
  267. - Add BuildRequires: gettext (#197633)
  268. * Sat Feb 18 2006 Jef Spaleta <jspaleta@gmail.com> - 2.0.4-2
  269. - Bump for fe5 rebuild
  270. * Sat Jan 01 2006 Jef Spaleta <jspaleta@gmail.com> - 2.0.4-1
  271. - Update to new stable upstream version
  272. * Thu Aug 18 2005 Jef Spaleta <jspaleta@gmail.com> - 2.0.3-3
  273. - rebuild
  274. * Thu Jul 7 2005 Jef Spaleta <jspaleta@gmail.com> - 2.0.3-2
  275. - use Source0
  276. * Mon Jul 5 2005 Jef Spaleta <jspaleta@gmail.com> - 2.0.3-1
  277. - Initial fedora extras build