kdeaddons-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. %if %{?_dist_release} != "vl4" && %{?_dist_release} != "vl5"
  2. # Compile only atlantikdesigner on KDE4
  3. %define donotcompilelist doc kaddressbook-plugins kate kfile-plugins kicker-applets knewsticker-scripts konq-plugins ksig noatun-plugins renamedlgplugins
  4. %define kde KDE3
  5. %else
  6. %define kde KDE
  7. %endif
  8. Name: kdeaddons
  9. Summary: %{kde} additional plugins
  10. Summary(ja): %{kde} 追加プラグイン
  11. Version: 3.5.10
  12. Release: 3%{?_dist_release}
  13. URL: http://www.kde.org/
  14. Group: Applications/Other
  15. License: GPLv2
  16. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: kdelibs3-devel >= %{version}
  19. BuildRequires: kdegames3-devel >= %{version}
  20. BuildRequires: libxml2-devel >= 2.6.0
  21. BuildRequires: libxslt-devel >= 1.0.18
  22. BuildRequires: zlib-devel libjpeg-devel libpng-devel gettext
  23. %if %{?_dist_release} == "vl4" || %{?_dist_release} == "vl5"
  24. BuildRequires: kdemultimedia3-devel >= %{version}
  25. BuildRequires: kdenetwork3-devel >= %{version}
  26. BuildRequires: kdepim3-devel >= %{version}
  27. BuildRequires: SDL-devel
  28. %endif
  29. Requires: kdelibs3 >= %{version}
  30. Requires: kdegames3 >= %{version}
  31. %description
  32. kdeaddons contains additional plugins and scripts for some KDE applications.
  33. %if %{?_dist_release} !="vl4" && %{?_dist_release} !="vl5"
  34. %package atlantikdesigner
  35. Summary: Atlantik Designer
  36. Group: Applications/Games
  37. Requires: kdelibs3 >= %{version}
  38. Requires: kdegames3 >= %{version}
  39. # directory ownership
  40. Requires: hicolor-icon-theme
  41. Obsoletes: kdeaddons-extras < %{version}-%{release}
  42. %description atlantikdesigner
  43. This package includes a game board designer for Atlantik.
  44. %endif
  45. %prep
  46. %setup -q
  47. %if %{?_dist_release} != "vl4" && %{?_dist_release} != "vl5"
  48. sed -i -e 's/-lkdegames//g' atlantikdesigner/designer/Makefile.in
  49. %endif
  50. %build
  51. unset QTDIR || : ; . /etc/profile.d/qt.sh
  52. %if %{?_dist_release} != "vl4" && %{?_dist_release} != "vl5"
  53. export DO_NOT_COMPILE="%{donotcompilelist}"
  54. %endif
  55. %configure \
  56. --with-qt-libraries=$QTDIR/lib \
  57. --includedir=%{_includedir}/kde \
  58. --disable-rpath \
  59. --enable-new-ldflags \
  60. --disable-debug --disable-warnings \
  61. --disable-dependency-tracking --enable-final
  62. make %{?_smp_mflags}
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %if %{?_dist_release} != "vl4" && %{?_dist_release} != "vl5"
  66. export DO_NOT_COMPILE="%{donotcompilelist}"
  67. make DESTDIR=$RPM_BUILD_ROOT install
  68. %else
  69. make DESTDIR=$RPM_BUILD_ROOT install
  70. # Make symlinks relative
  71. cd $RPM_BUILD_ROOT/usr/share/doc/HTML/en
  72. for i in *; do
  73. if [ -d $i -a -L $i/common ]; then
  74. rm -f $RPM_BUILD_ROOT/usr/share/doc/HTML/en/$i/common
  75. ln -sf ../common $RPM_BUILD_ROOT/usr/share/doc/HTML/en/$i
  76. fi
  77. done
  78. %endif
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT
  81. %if %{?_dist_release} == "vl4" || %{?_dist_release} == "vl5"
  82. %post -p /sbin/ldconfig
  83. %postun -p /sbin/ldconfig
  84. %endif
  85. %if %{?_dist_release} == "vl4" || %{?_dist_release} == "vl5"
  86. %files
  87. %defattr(-,root,root)
  88. %doc README COPYING-DOCS
  89. %doc %{_datadir}/doc/HTML/en/*
  90. %{_bindir}/*
  91. %{_libdir}/kde3/*
  92. %{_datadir}/applications/*
  93. %{_datadir}/applnk
  94. %{_datadir}/apps/*
  95. %config %{_datadir}/config/*
  96. %{_datadir}/config.kcfg/*
  97. %{_datadir}/icons/*
  98. %{_datadir}/mimelnk/*
  99. %{_datadir}/services/*
  100. %else
  101. %files atlantikdesigner
  102. %defattr(-,root,root)
  103. %doc README COPYING-DOCS atlantikdesigner/TODO
  104. %{_bindir}/atlantikdesigner
  105. %{_datadir}/apps/atlantikdesigner/
  106. %{_datadir}/icons/hicolor/*/*/atlantikdesigner*
  107. %{_datadir}/applications/kde/atlantikdesigner.desktop
  108. %endif
  109. %changelog
  110. * Sat Feb 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.10-3
  111. - changed package name to avoid obsolation by kdeplasma-addons
  112. * Thu Dec 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.10-2
  113. - built for VinePlus/5
  114. - updated spec file compatibility
  115. * Sun Mar 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.10-1
  116. - updated to 3.5.10, only including atlantikdesigner
  117. - built with new toolchain
  118. * Sun May 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.8-1
  119. - applied new versioning policy
  120. - added BR: kdebase-devel
  121. - changed Group to Applications/Other
  122. * Mon Oct 29 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.8-0vl2
  123. - rebuild for VineSeed
  124. * Mon Oct 29 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.8-0vl1
  125. - new upstream release
  126. * Tue Aug 21 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl3
  127. - rebuild with flac-1.2.0
  128. * Wed Jul 4 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl2
  129. - rebuild for VineSeed
  130. * Sat Jun 30 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl1
  131. - new upstream release
  132. * Sun Oct 22 2006 NAKAMURA Kenta <kenta@vinelinux.org> 3.5.5-0vl3
  133. - added --with-qt-libraries and --enable-libsuffix option
  134. * Tue Oct 3 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.5-0vl2
  135. - rebuild for VineSeed
  136. * Tue Oct 3 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.5-0vl1
  137. - new upstream release
  138. * Wed Aug 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.4-0vl2
  139. - rebuild for VineSeed
  140. * Wed Aug 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.4-0vl1
  141. - new upstream release
  142. * Fri Jun 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.3-0vl2
  143. - rebuild for VineSeed
  144. * Fri Jun 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.3-0vl1
  145. - new upstream release
  146. * Thu Mar 23 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.2-0vl2
  147. - rebuild for VineSeed
  148. * Thu Mar 23 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.2-0vl1
  149. - new upstream release
  150. * Thu Dec 8 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.0-0vl2
  151. - rebuild for VineSeed
  152. * Thu Nov 24 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.0-0vl1
  153. - new upstream release
  154. * Tue Nov 15 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.0-0vl0.rc1
  155. - initial release for VineSeed