libgweather-vl.spec 5.2 KB

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