libmateweather-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. %define major_ver 1.18
  2. %define ver %{major_ver}.0
  3. %define rel 1
  4. Summary: Provides access to weather information from the net
  5. Name: libmateweather
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz
  9. Source1: libmateweather-locations.ja.po
  10. License: LGPLv2.1
  11. Group: System Environment/Libraries
  12. URL: http://mate-desktop.org/
  13. BuildRequires: mate-common
  14. BuildRequires: libxml2-devel
  15. BuildRequires: gtk3-devel >= 3.14
  16. BuildRequires: libsoup-devel
  17. BuildRequires: gtk-doc
  18. BuildRequires: autoconf
  19. BuildRequires: automake
  20. Requires(posttrans,postun): glib2
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: Takemikaduchi, iwaim
  25. %description
  26. libmateweather is a library to access weather information from online
  27. services for numerous locations.
  28. %package l10n
  29. Summary: Localized xml files for libmateweather
  30. Summary(ja): libmateweather の多言語データ
  31. Group: System Environment/Libraries
  32. Requires: %{name} = %{version}
  33. %description l10n
  34. This package contains localized xml files for libmateweather.
  35. (except for English and Japanese)
  36. %package devel
  37. Summary: Development tools for libmateweather
  38. Summary(ja): libmateweather の開発環境
  39. Group: Development/Libraries
  40. Requires: %{name} = %{version}-%{release}
  41. Requires: pkgconfig
  42. %description devel
  43. Header files and libraries for building a extension library for the
  44. libmateweather.
  45. %package docs
  46. Summary: Documentation for libmateweather
  47. Summary(ja): libmateweather 用のドキュメント
  48. Group: Documentation
  49. BuildArch: noarch
  50. %description docs
  51. This package contains documentation for libmateweather.
  52. %prep
  53. %setup -q
  54. %__cp %{SOURCE1} po-locations/ja.po
  55. %build
  56. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  57. %configure \
  58. --disable-static
  59. %{__make} %{?_smp_mflags}
  60. %install
  61. %{__rm} -rf ${RPM_BUILD_ROOT}
  62. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  63. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  64. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  65. %find_lang %{name}
  66. %clean
  67. %{__rm} -rf ${RPM_BUILD_ROOT}
  68. %post -p /sbin/ldconfig
  69. %postun
  70. /sbin/ldconfig
  71. if [ $1 -eq 0 ]; then
  72. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  73. fi
  74. %posttrans
  75. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  76. %files -f %{name}.lang
  77. %defattr(-,root,root,-)
  78. %doc COPYING ChangeLog NEWS README
  79. %{_libdir}/libmateweather.so.*
  80. %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml
  81. %{_datadir}/icons/mate/*/*/*
  82. %{_datadir}/libmateweather/Locations.xml
  83. %{_datadir}/libmateweather/Locations.ja.xml
  84. %files l10n
  85. %defattr(-,root,root)
  86. %{_datadir}/libmateweather/*
  87. %exclude %{_datadir}/libmateweather/Locations.xml
  88. %exclude %{_datadir}/libmateweather/Locations.ja.xml
  89. %files devel
  90. %defattr(-,root,root,-)
  91. %{_includedir}/libmateweather
  92. %{_libdir}/libmateweather.so
  93. %{_libdir}/pkgconfig/mateweather.pc
  94. %files docs
  95. %defattr(-,root,root,-)
  96. %{_datadir}/gtk-doc/html/libmateweather
  97. %changelog
  98. * Sun Apr 2 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1
  99. - update to 1.18.0
  100. - move to GTK3+
  101. - add libmateweather-locations.ja.po (Source1)
  102. * Sat Nov 26 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.1-1
  103. - new upstream release
  104. - fix License
  105. - add Packager
  106. * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1
  107. - new upstream release
  108. * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1
  109. - new upstream release
  110. * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  111. - new upstream release
  112. * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1
  113. - new upstream release
  114. - create %%{name}-l10n subpackage
  115. - rename document subpackage
  116. * Mon Apr 14 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  117. - new upstream release
  118. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-2
  119. - rebuild with VineSeed environment
  120. * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1
  121. - new upstream release
  122. * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1
  123. - new upstream release
  124. - remove BuildRequires: mate-conf-devel
  125. * Wed Aug 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  126. - new upstream release
  127. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  128. - new upstream release
  129. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  130. - initial build for Vine Linux