basket-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. %define qtversion 3.3.8
  2. %define with_kontact 1
  3. Name: basket
  4. Version: 1.0.3.1
  5. Release: 1%{?_dist_release}
  6. Summary: Taking care of your ideas
  7. Group: Applications/Productivity
  8. License: GPLv2+
  9. URL: http://basket.kde.org/
  10. Packager: tomop
  11. Source0: http://basket.kde.org/downloads/%{name}-%{version}.tar.gz
  12. # Make it appear in Kontact from enterprise branch
  13. Patch0: basket-1.0.2-kdepimenterprise.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: kdelibs-devel gpgme-devel gettext desktop-file-utils arts-devel
  16. BuildRequires: jack-audio-connection-kit
  17. %if 0%{?with_kontact}
  18. BuildRequires: kdepim-devel
  19. %endif
  20. Requires: arts jack-audio-connection-kit
  21. %description
  22. A multi-purpose note-taking application that makes it easy to write down ideas
  23. as you think, and quickly find them later. You can collect, import or share
  24. any data, tag your notes and secure it some or all of it with passwords and/or
  25. encryption.
  26. %if 0%{?with_kontact}
  27. %package kontact
  28. Group: Applications/Productivity
  29. Summary: Basket plugin for Kontact
  30. Requires: %{name} = %{version}-%{release}
  31. Requires: kdepim
  32. %description kontact
  33. This package contains the kontact plugin for BasKet.
  34. %endif
  35. %prep
  36. %setup -q
  37. iconv -f ISO_8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp
  38. touch -r AUTHORS AUTHORS.tmp
  39. mv AUTHORS.tmp AUTHORS
  40. %patch0 -p0 -b .kdepimenterprise
  41. %build
  42. unset QTDIR && . %{_sysconfdir}/profile.d/qt.sh
  43. %configure --disable-rpath --disable-debug --with-qt-libraries=%{_libdir}/qt-%{qtversion}/lib
  44. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  45. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  46. make %{?_smp_mflags}
  47. %install
  48. rm -rf $RPM_BUILD_ROOT
  49. make install DESTDIR=$RPM_BUILD_ROOT
  50. # Icons: use hicolor instead of crystalsvg
  51. mv $RPM_BUILD_ROOT%{_datadir}/icons/{crystalsvg,hicolor}
  52. # Menu
  53. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  54. desktop-file-install --vendor fedora \
  55. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  56. --delete-original \
  57. --add-category Utility \
  58. --add-category Qt \
  59. --add-category KDE \
  60. $RPM_BUILD_ROOT%{_datadir}/applications/kde/%{name}.desktop
  61. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  62. # Removing a random sym link created during the build process
  63. # This will be needed again when/if basket ever provides HTML docs -- Rex
  64. rm -f $RPM_BUILD_ROOT%{_docdir}/HTML/en/basket/common
  65. %{find_lang} %{name}
  66. # HTML
  67. for lang_dir in $RPM_BUILD_ROOT%{_docdir}/HTML/* ; do
  68. lang=$(basename $lang_dir)
  69. [ "$lang" == "en" ] && d=en/%{name} || d=$lang
  70. echo "%lang($lang) %doc %{_docdir}/HTML/$d" >> %{name}.lang
  71. done
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT
  74. %files -f %{name}.lang
  75. %defattr(-,root,root,-)
  76. %doc README AUTHORS COPYING ChangeLog NEWS TODO
  77. %{_bindir}/basket
  78. %{_datadir}/applications/*.desktop
  79. %{_datadir}/icons/hicolor/*/actions/*.png
  80. %{_datadir}/icons/hicolor/*/mimetypes/*.png
  81. %{_datadir}/icons/hicolor/*/apps/%{name}.*
  82. %{_datadir}/apps/basket
  83. %{_libdir}/kde3/kcm_basket.*
  84. %{_libdir}/kde3/libbasketpart.*
  85. %{_libdir}/kde3/basketthumbcreator.*
  86. %{_libdir}/libbasketcommon.so
  87. %{_datadir}/services/*.desktop
  88. %{_datadir}/config/magic/basket.magic
  89. %{_datadir}/mimelnk/application/*.desktop
  90. %if 0%{?with_kontact}
  91. %files kontact
  92. %defattr(-,root,root,-)
  93. %{_datadir}/apps/kontact/ksettingsdialog/kontact_basketplugin.setdlg
  94. %{_datadir}/services/kontact/*.desktop
  95. %{_libdir}/kde3/libkontact_basket.*
  96. %endif
  97. %post
  98. /sbin/ldconfig
  99. touch --no-create %{_datadir}/icons/hicolor || :
  100. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  101. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  102. fi
  103. update-desktop-database &> /dev/null || :
  104. %postun
  105. /sbin/ldconfig
  106. touch --no-create %{_datadir}/icons/hicolor || :
  107. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  108. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  109. fi
  110. update-desktop-database &> /dev/null || :
  111. %changelog
  112. * Mon Jun 8 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3.1-1
  113. - built for Vine Linux.
  114. * Thu Dec 04 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.3.1-4
  115. - fix ->F-10+ upgrade path
  116. - Cannot configure basket, kcm_basket.la missing (#474425)
  117. - drop needless Requires: hicolor-icon-theme
  118. * Sat Nov 15 2008 Christopher D. Stover <quantumburnz@hotmail.com> 1.0.3.1-3
  119. - resolved kontact broken dependency
  120. * Mon Nov 10 2008 Christopher D. Stover <quantumburnz@hotmail.com> 1.0.3.1-2
  121. - added a requires for hicolor-icon-theme
  122. - removed -p from the main package /sbin/ldconfig
  123. * Sat Oct 25 2008 Christopher D. Stover <quantumburnz@hotmail.com> 1.0.3.1-1
  124. - version 1.0.3.1
  125. - gcc43 patch is no longer needed
  126. * Sat Jun 07 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 1.0.2-7
  127. - disable -kontact for F10+ (can't integrate KDE 3 app into KDE 4 Kontact)
  128. * Sun Jun 01 2008 Aurelien Bompard <abompard@fedoraproject.org> 1.0.2-6
  129. - rebuild
  130. * Wed Mar 02 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.2-5
  131. - fix rawhide build (#433960)
  132. - summary: s/for KDE//
  133. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> 1.0.2-4
  134. - Autorebuild for GCC 4.3
  135. * Sat Oct 27 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0.2-3
  136. - fix kontact plugin for kdepim-enterprise (bug 354771)
  137. * Sat Aug 25 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0.2-2
  138. - rebuild for BuildID
  139. - fix license tag
  140. * Tue Apr 24 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0.2-1
  141. - version 1.0.2 (bug 237660)
  142. * Sun Mar 18 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0.1-1
  143. - version 1.0.1
  144. * Sat Feb 17 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0-2
  145. - split off the kontact plugin, patch by Laurent Rineau (see bug 228966)
  146. * Mon Feb 12 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0-1
  147. - version 1.0
  148. * Wed Oct 25 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.6.0-1
  149. - version 0.6.0
  150. * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.5.0-10
  151. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  152. * Tue Sep 19 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.5.0-9
  153. - add explicit linking to libfam
  154. * Tue Sep 19 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.5.0-8
  155. - rebuild
  156. * Wed Aug 30 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.5.0-7
  157. - BR: gamin-devel
  158. * Wed Aug 30 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.5.0-6
  159. - rebuild
  160. * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-5
  161. - rebuild for FC5
  162. * Mon Oct 17 2005 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-4
  163. - add patch for 64 bits
  164. * Fri Oct 14 2005 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-3
  165. - don't add the extension to the icon, it's useless
  166. - touch the icon dir in post and postun
  167. * Fri Oct 14 2005 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-2
  168. - own the doc dir
  169. - use hicolor instead of crystalsvg as icon theme
  170. - add extension to the icon in the desktop file
  171. * Wed Oct 12 2005 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-1
  172. - port to Fedora from Mandriva (release 3)