libgweather-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. Summary: Library for accessing weather information
  2. Summary(ja): 天気予報情報にアクセスするライブラリ
  3. Name: libgweather
  4. Version: 2.30.2
  5. Release: 2%{?_dist_release}
  6. URL: http://www.gnome.org/
  7. License: GPL
  8. Group: System Environment/Libraries
  9. Source0: %{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: glib2-devel
  12. BuildRequires: gtk2-devel
  13. BuildRequires: GConf2-devel
  14. BuildRequires: libsoup-devel
  15. Requires(post,pre,preun): GConf2
  16. %description
  17. libgweather is a library to access weather information from online
  18. services for numerous locations.
  19. %description -l ja
  20. libgweather はオンラインサービス上にある世界中の天気予報情報に
  21. アクセスするためのライブラリです。
  22. %package l10n
  23. Summary: Localized xml files for %{name}
  24. Summary(ja): %{name} の多言語データ
  25. Group: System Environment/Libraries
  26. Requires: %{name} = %{version}
  27. %description l10n
  28. This package contains localized xml files for libgweather.
  29. (except for English and Japanese)
  30. %description -l ja l10n
  31. このパッケージには libgweather 用の各種言語の xml ファイルが
  32. 含まれています。(英語および日本語以外の言語)
  33. %package devel
  34. Summary: Libraries and headers for libgweather
  35. Summary(ja): libgweather 用ライブラリとヘッダ
  36. Group: Development/Libraries
  37. Requires: %{name} = %{version}
  38. Requires: gtk2-devel
  39. Requires: GConf2-devel
  40. Requires: libsoup-devel
  41. %description devel
  42. Libraries and headers for libgweather.
  43. %description devel -l ja
  44. libgweather 用ライブラリとヘッダ
  45. %prep
  46. %setup -q
  47. %build
  48. %configure --disable-schemas-install
  49. # do NOT use smp flag
  50. make
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  54. %makeinstall
  55. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  56. rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
  57. %find_lang %{name}
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %post
  61. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  62. gconftool-2 --makefile-install-rule \
  63. %{_sysconfdir}/gconf/schemas/gweather.schemas \
  64. > /dev/null || :
  65. /sbin/ldconfig
  66. %pre
  67. if [ "$1" -gt 1 ]; then
  68. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  69. gconftool-2 --makefile-uninstall-rule \
  70. %{_sysconfdir}/gconf/schemas/gweather.schemas \
  71. > /dev/null || :
  72. fi
  73. %preun
  74. if [ "$1" -eq 0 ]; then
  75. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  76. gconftool-2 --makefile-uninstall-rule \
  77. %{_sysconfdir}/gconf/schemas/gweather.schemas \
  78. > /dev/null || :
  79. fi
  80. %postun -p /sbin/ldconfig
  81. %files -f %{name}.lang
  82. %defattr(-,root,root)
  83. %doc AUTHORS COPYING NEWS README
  84. %{_sysconfdir}/gconf/schemas/*.schemas
  85. %{_libdir}/lib*.so.*
  86. %dir %{_datadir}/libgweather
  87. %{_datadir}/libgweather/Locations.xml
  88. %{_datadir}/libgweather/Locations.ja.xml
  89. %{_datadir}/libgweather/locations.dtd
  90. %{_datadir}/icons/gnome/*/status/weather-*
  91. %files l10n
  92. %defattr(-,root,root)
  93. %{_datadir}/libgweather/*.xml
  94. %exclude %{_datadir}/libgweather/Locations.xml
  95. %exclude %{_datadir}/libgweather/Locations.ja.xml
  96. %exclude %{_datadir}/libgweather/locations.dtd
  97. %files devel
  98. %defattr(-,root,root)
  99. %{_libdir}/lib*.so
  100. %{_libdir}/pkgconfig/*
  101. %{_includedir}/*
  102. %{_datadir}/gtk-doc/html/libgweather
  103. %changelog
  104. * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-2
  105. - rebuild with rpm-4.8.1 for pkg-config file
  106. * Tue Jun 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-1
  107. - new upstream release
  108. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  109. - new upstream release
  110. * Sat Oct 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.0-1
  111. - new upstream release
  112. - removed BR: gnome-vfs2-devel
  113. - added BR: libsoup-devel
  114. * Sat Jul 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.2.1-1
  115. - new upstream release
  116. * Wed Apr 08 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-2
  117. - split l10n xml files to -l10n subpackage.
  118. * Sat Mar 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  119. - new upstream release
  120. - remove static libs
  121. * Mon Jan 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.24.3-1
  122. - new upstream release
  123. * Sun Oct 26 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.24.1-1
  124. - new upstream release
  125. * Wed Sep 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  126. - new upstream release
  127. * Wed Jul 30 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.22.3-1
  128. - new upstream release
  129. - added Japanese summary and description, in UTF-8
  130. * Sun Jun 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.2-1
  131. - new upstream release
  132. * Sat Apr 19 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2.22.1.2-2
  133. - dropped %%{_smp_mflags} from make option
  134. * Thu Apr 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1.2-1vl5
  135. - new upstream release
  136. * Wed Apr 9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1.1-1vl5
  137. - new upstream release
  138. * Sun Mar 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  139. - initial package for Vine Linux