kphotoalbum-vl.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. Summary: KDE Photo Album
  2. Summary(ja): KDE フォトアルバム
  3. Name: kphotoalbum
  4. Version: 4.1.1
  5. Release: 4%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/Multimedia
  8. URL: http://www.kphotoalbum.org/
  9. Source0: http://kphotoalbum.org/data/download/kphotoalbum-%{version}.tar.bz2
  10. ## upstream patches
  11. Patch100: kphotoalbum-4.1.1-docbook_fix.patch
  12. # http://websvn.kde.org/?view=revision&revision=1213128
  13. Patch101: kphotoalbum-4.1.1-exiv2_021.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: desktop-file-utils
  16. BuildRequires: exiv2-devel
  17. BuildRequires: gettext
  18. # marble integration
  19. %define marble_version 4.3.0
  20. BuildRequires: kdeedu4-devel >= %{marble_version}
  21. BuildRequires: kdelibs4-devel
  22. BuildRequires: kdegraphics4-devel >= 4.3.0
  23. #BuildRequires: libkdcraw-devel >= 0.4.0
  24. #BuildRequires: libkexiv2-devel >= 0.5.0
  25. #BuildRequires: libkipi-devel >= 0.3.0
  26. BuildRequires: soprano-devel
  27. %global kde4_version %((kde4-config --version 2>/dev/null || echo "KDE 4.2.0") | grep ^KDE | cut -d' ' -f2)
  28. Requires: kdelibs4 >= %{kde4_version}
  29. Requires: kdeedu4-marble >= %{marble_version}
  30. %description
  31. A photo album tool. Focuses on three key points:
  32. * It must be easy to describe a number of images at a time.
  33. * It must be easy to search for images.
  34. * It must be easy to browse and View the images.
  35. %prep
  36. %setup -q
  37. %patch100 -p1
  38. %patch101 -p4 -b exiv2_021
  39. %build
  40. mkdir -p %{_target_platform}
  41. pushd %{_target_platform}
  42. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  43. %{cmake} \
  44. -DCMAKE_BUILD_TYPE=release \
  45. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  46. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  47. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  48. ..
  49. popd
  50. make %{?_smp_mflags} -C %{_target_platform}
  51. %install
  52. rm -rf %{buildroot}
  53. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  54. %find_lang %{name}
  55. #--with-kde
  56. HTML_DIR=$(kde4-config --expandvars --install html)
  57. if [ -d $RPM_BUILD_ROOT${HTML_DIR} ]; then
  58. for lang_dir in $RPM_BUILD_ROOT${HTML_DIR}/* ; do
  59. if [ -d ${lang_dir} ]; then
  60. lang=$(basename ${lang_dir})
  61. echo "%lang(${lang}) ${HTML_DIR}/${lang}/%{name}/" >> %{name}.lang
  62. fi
  63. done
  64. fi
  65. %check
  66. for dt_file in %{buildroot}%{_datadir}/applications/kde4/*.desktop ; do
  67. desktop-file-validate $dt_file
  68. done
  69. %clean
  70. rm -rf %{buildroot}
  71. %post
  72. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  73. %postun
  74. if [ $1 -eq 0 ] ; then
  75. update-desktop-database -q &> /dev/null
  76. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  77. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  78. fi
  79. %posttrans
  80. update-desktop-database -q &> /dev/null
  81. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  82. %files -f %{name}.lang
  83. %defattr(-,root,root,-)
  84. %doc ChangeLog COPYING README TODO
  85. %{_bindir}/kphotoalbum
  86. %{_datadir}/kde4/apps/kphotoalbum/
  87. %{_datadir}/applications/kde4/kphotoalbum.desktop
  88. %{_datadir}/applications/kde4/kphotoalbum-import.desktop
  89. %{_datadir}/config/*rc
  90. %{_datadir}/icons/hicolor/*/*/*
  91. %changelog
  92. * Sat Jan 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.1-3
  93. - added Patch100 and 101 from FC
  94. * Mon May 31 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.1.1-6
  95. - docbook fix (for kde-4.5.x)
  96. * Sat Jan 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.1-3
  97. - fixed build dependencies for VinePlus/5
  98. - updated URL
  99. * Wed May 05 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.1-2
  100. - rebuilt with exiv2-0.19
  101. * Sat Nov 28 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.1-1
  102. - initial build for Vine Linux
  103. * Sun Oct 25 2009 Rex Dieter <rdieter@fedoraproject.org> 4.1-1
  104. - kphotoalbum-4.1
  105. * Wed Jul 29 2009 Rex Dieter <rdieter@fedoraproject.org> 4.0.2-1
  106. - kphotoalbum-4.0.2
  107. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
  108. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  109. * Fri May 22 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.0.1-1
  110. - kphotoalbum-4.0.1
  111. * Tue May 19 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.0-1
  112. - kphotoalbum-4.0 (final)
  113. * Mon Mar 09 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.2-0.10.20090308
  114. - kphotoalbum-20090308 snapshot
  115. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-0.9.20090211svn
  116. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  117. * Thu Feb 12 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.2-0.8.20090211svn
  118. - kphotoalbum-2009-02-11 snapshot
  119. - enable marble integration
  120. * Mon Dec 22 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.2-0.7.20081007svn
  121. - BR: libkipi-devel >= 0.3.0
  122. * Thu Dec 18 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.2-0.6.20081007svn
  123. - respin (exiv2)
  124. * Tue Dec 03 2008 Rex Dieter <rdieter@fedoraproject.org> 3.2-0.5.20081007svn
  125. - respin (kdegraphics)
  126. - BR: soprano-devel
  127. * Wed Oct 29 2008 Rex Dieter <rdieter@fedoraproject.org> 3.2-0.4.20081007svn
  128. - respin (kdegraphics)
  129. * Mon Oct 06 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 3.2-0.3.20081007svn
  130. - new snapshot (20081007svn)
  131. - use create_tarball.rb (includes translations)
  132. - build against latest kdegraphics
  133. - fix typos in description
  134. * Mon Sep 29 2008 Rex Dieter <rdieter@fedoraproject.org> 3.2-0.2.20080929svn
  135. - respin against newer kdegraphics
  136. - kphotoalbum-20080929svn snapshot
  137. * Sat Aug 02 2008 Rex Dieter <rdieter@fedoraproject.org> 3.2-0.1.20080802svn
  138. - kphotoalbum-20080802svn snapshot
  139. * Wed Jun 25 2008 Rex Dieter <rdieter@fedoraproject.org> 3.1.1-3
  140. - respin for exiv2
  141. * Thu May 08 2008 Rex Dieter <rdieter@fedoraproject.org> 3.1.1-2
  142. - respin
  143. * Tue Mar 18 2008 Rex Dieter <rdieter@fedoraproject.org> 3.1.1-1
  144. - kphotoalbum-3.1.1
  145. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.1.0-2
  146. - Autorebuild for GCC 4.3
  147. * Sat Nov 24 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.1.0-1
  148. - kphotoalbum-3.1.0
  149. * Tue Nov 13 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.0.2-7
  150. - respin for exiv2-0.16
  151. * Sun Aug 26 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.0.2-6
  152. - desktop file patch (make MimeType=... end with ;)
  153. * Sat Aug 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.0.2-5
  154. - fix %%check
  155. * Sat Aug 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.0.2-3
  156. - specfile cosmetics
  157. - respin (BuildID)
  158. * Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.0.2-2
  159. - License: GPLv2+
  160. * Thu Apr 16 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.0.2-1
  161. - kphotoalbum-3.0.2
  162. * Wed Apr 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.0.1-1
  163. - kphotoalbum-3.0.1
  164. * Sun Dec 31 2006 Rex Dieter <rdieter[AT]fedoraproject.org> 3.0-1
  165. - kphotoalbum-3.0
  166. * Tue Nov 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-7
  167. - BR: exiv2-devel >= 0.12
  168. * Wed Oct 04 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-6
  169. - respin
  170. - drop deprecated Provides: kimdaba
  171. * Tue Sep 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-5
  172. - BR: exiv2-devel >= 0.11
  173. * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-4
  174. - fc6 respin
  175. * Sat Jun 03 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-3
  176. - respin against exiv2-0.10
  177. * Thu May 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-2
  178. - (temporarily) add Provides: kimdaba = %%version
  179. * Tue May 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-1
  180. - renamed kphotoalbum
  181. * Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net>
  182. - fc5: gcc/glibc respin
  183. * Thu Nov 10 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-6
  184. - relative symlinks
  185. - simplify configure
  186. * Sat Oct 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-4
  187. - --add-category Application
  188. * Sat Oct 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-3
  189. - %%doc: COPYING
  190. - Req(post,postun): update-desktop-database
  191. - gtk-update-icon-cache
  192. - remove unused crud (kde-redhat bits)
  193. - Group: Applications/Multimedia
  194. - drop %%{?debug_package} conditionals
  195. * Sat Oct 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-2
  196. - icon/mime spec
  197. * Tue May 3 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-1
  198. - real-deal 2.1 release (including -i18n bits)
  199. * Mon May 2 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-0
  200. - 2.1 (pre) release
  201. * Mon Nov 15 2004 Rex Dieter <rexdieter[AT]users.sf.net> 2.0-0.fdr.1
  202. - 2.0
  203. * Fri Feb 27 2004 Rex Dieter <rexdieter at sf.net> 0:1.1-0.fdr.0
  204. - first try