gnome-cups-manager-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. %define cvsdate 20060307
  2. Summary: GNOME CUPS printer management tool
  3. Summary(ja): GNOME CUPS プリンタ管理ツール
  4. Name: gnome-cups-manager
  5. Version: 0.31.0.%{cvsdate}
  6. Release: 1%{?_dist_release}
  7. License: GPL
  8. Group: Applications/System
  9. URL: http://www.ximian.com
  10. Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{version}/%{name}-%{version}.tar.bz2
  11. Source11: %{name}.desktop
  12. Source100: vine-testpage-a4.eps
  13. Patch10: %{name}-0.31cvs-gksu.patch
  14. Patch11: %{name}-0.30-vine.patch
  15. Patch12: %{name}-0.31cvs-gksu-quote-args.patch
  16. Patch20: gnome-cups-manager-0.31.0-add-printer.patch
  17. Patch21: gnome-cups-manager-0.31.0-gnome-cups-icon.patch
  18. Patch22: gnome-cups-manager-0.31.0-gnome-cups-manager.patch
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  20. BuildRequires: libgnomeui-devel
  21. BuildRequires: libglade2-devel
  22. BuildRequires: libgnomecups-devel
  23. BuildRequires: samba-libsmbclient-devel
  24. Requires: libgnomecups, libgnomeui, libglade2, hicolor-icon-theme, cups
  25. Requires: gksu
  26. #Requires: pam, usermode, usermode-gtk
  27. Obsoletes: printman
  28. Provides: printman
  29. %description
  30. gnome-cups-manager is CUPS printer management tool for GNOME environment.
  31. %description -l ja
  32. gnonme-cups-manager は GNOME 用 CUPS プリンタ管理ツールです。
  33. %package devel
  34. Summary: Development files for GNOME-CUPS library
  35. Summary(ja): GNOME-CUPS 統合ライブラリ用開発ファイル
  36. Group: Development/Libraries
  37. Requires: %{name} = %{version}-%{release}
  38. Provides: libgnomecupsui-devel = %{version}-%{release}
  39. %description devel
  40. Development files for GNOME-CUPS library
  41. %prep
  42. %setup -q
  43. %patch10 -p1 -b .gksu
  44. %patch11 -p1 -b .vine
  45. %patch12 -p1 -b .gksu-quote-args
  46. %patch20 -p1 -b .add-printer
  47. %patch21 -p1 -b .gnome-cups-icon
  48. %patch22 -p1 -b .gnome-cups-manager
  49. # copy vine-testpage-a4
  50. cp -f %{SOURCE100} gnome-cups-manager/xd2-testpage-a4.eps
  51. sed -i -e 's/GNOME_COMPILE_WARNINGS(maximum)//g' configure.in
  52. %build
  53. intltoolize -f -c
  54. autoreconf
  55. %configure
  56. %__make %{?_smp_mflags}
  57. %install
  58. rm -rf $RPM_BUILD_ROOT
  59. %makeinstall
  60. # remove unpackaged files
  61. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  62. %find_lang %{name}
  63. desktop-file-install --vendor=gnome \
  64. --dir %{buildroot}%{_datadir}/applications \
  65. --add-category Application \
  66. --add-category System \
  67. %{SOURCE11}
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT
  70. %post -p /sbin/ldconfig
  71. %postun -p /sbin/ldconfig
  72. %files -f %{name}.lang
  73. %defattr(-,root,root,-)
  74. %doc README ChangeLog NEWS
  75. %{_bindir}/*
  76. %{_sbindir}/*
  77. %{_datadir}/gnome-cups-manager
  78. %{_datadir}/icons/hicolor/48x48/devices/*
  79. %{_datadir}/icons/hicolor/48x48/stock/*
  80. %{_datadir}/pixmaps/*
  81. %{_datadir}/applications/*.desktop
  82. %{_libdir}/*.so.*
  83. %{_libdir}/bonobo/servers/*
  84. #%{_sysconfdir}/security/console.apps/*
  85. #%{_sysconfdir}/pam.d/*
  86. %files devel
  87. %defattr(-,root,root,-)
  88. %{_libdir}/*.so
  89. %{_libdir}/*.a
  90. %{_libdir}/pkgconfig/*
  91. %{_includedir}/*
  92. %changelog
  93. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.31.0.20060307-1vl5
  94. - applied new versioning policy, spec in utf-8
  95. * Tue Aug 28 2007 Shu KONNO <owa@bg.wakwak.com> 0.31.0.20060307-0vl5
  96. - add BuildRequires: samba-libsmbclient-devel
  97. - add Patch20: gnome-cups-manager-0.31.0-add-printer.patch
  98. - add Patch21: gnome-cups-manager-0.31.0-gnome-cups-icon.patch
  99. - add Patch22: gnome-cups-manager-0.31.0-gnome-cups-manager.patch
  100. * Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.31.0.20060307-0vl4
  101. - add Patch12 to fix <BTS:373>
  102. * Mon May 14 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.31.0.20060307-0vl3
  103. - rebuild with new environment/toolchain
  104. * Sat Mar 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.31.0.20060307-0vl2
  105. - fix broken testpage
  106. * Tue Mar 07 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.31.0.20060307-0vl1
  107. - update to cvs snapshot
  108. - add vine-testpage-a4.eps
  109. * Sun Mar 27 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.30-0vl1
  110. - new upstream release
  111. * Tue Aug 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.22-0vl2
  112. - update Patch11 to use gksu instead of gnomesu (to remove printer)
  113. * Tue Aug 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.22-0vl1
  114. - new upstream release
  115. * Sun Aug 01 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.19-0vl1
  116. - new upstream release
  117. - update ja.po
  118. - add Patch11 to not use gnomesu
  119. - use consolehelper for gnome-cups-add
  120. - add Requires to usermode and usermode-gtk
  121. - add Reuiqres to hicolor-icon-theme
  122. * Sun Jul 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.18-0vl2
  123. - copy hicolor icons to gnome2.4 default icon directory
  124. * Mon Jun 21 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.18-0vl1
  125. - new upstream release
  126. * Sun Nov 09 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.17-0vl3
  127. - update ja.po
  128. - add desktop-files
  129. * Sun Nov 09 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.17-0vl2
  130. - update Patch10 to add missing entry to POTFILES
  131. - update ja.po
  132. * Sun Nov 09 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.17-0vl1
  133. - Initial build for Vine Linux