kdewebdev-vl.spec 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. %define make_cvs 1
  2. Name: kdewebdev
  3. Summary: KDE Web development applications
  4. Summary(ja): KDE Web 開発アプリケーション集
  5. Version: 3.5.10
  6. Release: 3%{?_dist_release}
  7. License: GPLv2
  8. URL: http://kdewebdev.org/
  9. Group: Applications/Development
  10. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
  11. Source1: http://download.sourceforge.net/quanta/css.tar.bz2
  12. Source2: http://download.sourceforge.net/quanta/html.tar.bz2
  13. Source3: http://download.sourceforge.net/quanta/php_manual_en_20030401.tar.bz2
  14. Source4: http://download.sourceforge.net/quanta/javascript.tar.bz2
  15. Source5: hi48-app-kxsldbg.png
  16. Patch0: javascript.patch
  17. Patch1: kdewebdev-3.5.4-kxsldbg-icons.patch
  18. Patch2: arts-acinclude.patch
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. %if %{make_cvs}
  21. BuildRequires: automake libtool
  22. %endif
  23. BuildRequires: desktop-file-utils
  24. BuildRequires: kdelibs3-devel >= %{version}
  25. BuildRequires: arts-devel
  26. BuildRequires: libxslt-devel >= 1.0.18
  27. BuildRequires: libxml2-devel >= 2.6.0
  28. BuildRequires: perl
  29. Provides: kdewebdev3 = %{version}-%{release}
  30. Obsoletes: quanta < %{version}-%{release}
  31. Provides: quanta = %{version}-%{release}
  32. %define kommander_ver 1.2.2
  33. #Obsoletes: kommander < %{kommander_ver}-%{release}
  34. Provides: kommander = %{kommander_ver}-%{release}
  35. %description
  36. The kdewebdev package contains Quanta Plus and other applications,
  37. which are useful for web development. They are runtime dependencies
  38. of Quanta Plus, and it is highly recommended that you install them.
  39. The extra applications are:
  40. * kfilereplace: batch search and replace tool
  41. * kimagemapeditor: HTML image map editor
  42. * klinkstatus: link checker
  43. * kommander: visual dialog building tool
  44. * kxsldbg: xslt Debugger
  45. * quanta+: web development
  46. %package devel
  47. Summary: Development files for kdewebdev
  48. Summary(ja): kdewebdev の開発用ファイル
  49. Group: Development/Libraries
  50. Requires: %{name} = %{version}-%{release}
  51. Requires: kdelibs3-devel
  52. Provides: kdewebdev3-devel = %{version}-%{release}
  53. %description devel
  54. Development files for kdewebdev.
  55. %prep
  56. %setup -q -a 1 -a 2 -a 3 -a 4
  57. %patch0 -p0 -b .javascript
  58. %patch1 -p1 -b .kxsldbg-icons
  59. %patch2 -p1 -b .autoconf
  60. install -m644 -p %{SOURCE5} kxsldbg/
  61. %if %{make_cvs}
  62. # hack/fix for newer automake
  63. sed -iautomake -e 's|automake\*1.10\*|automake\*1.1[0-5]\*|' admin/cvs.sh
  64. make -f admin/Makefile.common cvs
  65. %endif
  66. %build
  67. unset QTDIR && . /etc/profile.d/qt.sh
  68. %configure \
  69. --with-qt-libraries=$QTDIR/lib \
  70. --includedir=%{_includedir}/kde \
  71. --disable-rpath \
  72. --enable-new-ldflags \
  73. --disable-debug --disable-warnings \
  74. --disable-dependency-tracking --enable-final
  75. make %{?_smp_mflags}
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. make DESTDIR=$RPM_BUILD_ROOT install
  79. ## package separately? Why doesn't upstream include this? -- Rex
  80. # install docs
  81. for i in css html javascript ; do
  82. pushd $i
  83. ./install.sh <<EOF
  84. $RPM_BUILD_ROOT%{_datadir}/apps/quanta/doc
  85. EOF
  86. popd
  87. rm -rf $i
  88. done
  89. cp -a php php.docrc $RPM_BUILD_ROOT%{_datadir}/apps/quanta/doc/
  90. # Make symlinks relative
  91. pushd $RPM_BUILD_ROOT%{_datadir}/doc/HTML/en
  92. for i in *; do
  93. if [ -d $i -a -L $i/common ]; then
  94. rm -f $RPM_BUILD_ROOT%{_datadir}/doc/HTML/en/$i/common
  95. ln -sf ../common $RPM_BUILD_ROOT%{_datadir}/doc/HTML/en/$i
  96. fi
  97. done
  98. popd
  99. # rpmdocs
  100. for dir in k* quanta; do
  101. for file in AUTHORS ChangeLog README TODO ; do
  102. test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
  103. done
  104. done
  105. %clean
  106. rm -rf $RPM_BUILD_ROOT
  107. %post
  108. /sbin/ldconfig
  109. for f in crystalsvg hicolor locolor ; do
  110. touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
  111. done
  112. %postun
  113. /sbin/ldconfig
  114. if [ $1 -eq 0 ] ; then
  115. for f in crystalsvg hicolor locolor ; do
  116. touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
  117. gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
  118. done
  119. update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
  120. fi
  121. %posttrans
  122. for f in crystalsvg hicolor locolor ; do
  123. gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
  124. done
  125. update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
  126. %files
  127. %defattr(-,root,root)
  128. %doc %{_datadir}/doc/HTML/en/*
  129. %{_bindir}/*
  130. %{_libdir}/*.so.*
  131. %{_libdir}/*.la
  132. %{_libdir}/kde3/*
  133. %{_datadir}/applications/*
  134. %{_datadir}/applnk
  135. %{_datadir}/apps/*
  136. %{_datadir}/config.kcfg/*
  137. %{_datadir}/icons/*
  138. %{_datadir}/mimelnk/*
  139. %{_datadir}/services/*
  140. %{_datadir}/servicetypes/*
  141. %files devel
  142. %defattr(-,root,root)
  143. %{_includedir}/kde/*
  144. %{_libdir}/*.so
  145. %changelog
  146. * Thu Dec 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.10-3
  147. - fixed summary
  148. * Sat Jul 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.10-2
  149. - added BR: arts-devel
  150. * Sun Mar 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.10-1
  151. - updated to 3.5.10 based on FC
  152. - updated %%post and %%postun section, added %%posttrans section
  153. - built with new toolchain
  154. * Wed May 13 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.8-1
  155. - applied new versioning policy, spec in UTF-8
  156. - added Japanese summary
  157. - changed Group to Applictions/Development
  158. * Sun Nov 25 2007 NAKAMURA Kenta <kenta@vinelinux.org> 3.5.8-0vl3
  159. - added --with-qt-libraries option
  160. * Mon Oct 29 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.8-0vl2
  161. - rebuild for VineSeed
  162. * Mon Oct 29 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.8-0vl1
  163. - new upstream release
  164. * Wed Jun 27 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl2
  165. - rebuild for VineSeed
  166. * Tue Jun 26 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl1
  167. - new upstream release
  168. - added --enable-libsuffix option
  169. * Tue Oct 3 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.5-0vl2
  170. - rebuild for VineSeed
  171. * Tue Oct 3 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.5-0vl1
  172. - new upstream release
  173. * Wed Aug 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.4-0vl2
  174. - rebuild for VineSeed
  175. * Wed Aug 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.4-0vl1
  176. - new upstream release
  177. * Wed May 31 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.3-0vl2
  178. - rebuild for VineSeed
  179. * Wed May 31 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.3-0vl1
  180. - new upstream release
  181. * Wed Mar 22 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.2-0vl2
  182. - rebuild for VineSeed
  183. * Wed Mar 22 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.2-0vl1
  184. - new upstream release
  185. * Mon Feb 6 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.1-0vl2
  186. - rebuild for VineSeed
  187. * Mon Feb 6 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.1-0vl1
  188. - new upstream release
  189. * Thu Dec 8 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.0-0vl2
  190. - rebuild for VineSeed
  191. * Mon Nov 28 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.0-0vl1
  192. - new upstream release
  193. * Tue Nov 15 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.0-0vl0.rc1
  194. - new upstream release
  195. * Tue Oct 18 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.4.92-0vl1
  196. - new upstream release
  197. - delete Patch0
  198. * Thu Sep 22 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.4.91-0vl1
  199. - new upstream release
  200. - add Patch0
  201. * Mon Jul 25 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.4.2-0vl2
  202. - rebuild for VineSeed
  203. * Mon Jul 25 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.4.2-0vl1
  204. - new upstream release
  205. * Mon Jul 4 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.4.1-0vl2
  206. - build for VineSeed
  207. - add --disable-rpath to configure option
  208. * Tue Jun 7 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.4.1-0vl1
  209. - new upstream release
  210. - remove patch0
  211. * Mon Apr 25 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.4.0-0vl1
  212. - initial release for VineSeed