libmateweather-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. Summary: Provides access to weather information from the net
  2. Name: libmateweather
  3. Version: 1.2.0
  4. Release: 1%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: System Environment/Libraries
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-conf-devel
  11. BuildRequires: libxml2-devel
  12. BuildRequires: gtk2-devel
  13. BuildRequires: libsoup-devel
  14. BuildRequires: gtk-doc
  15. BuildRequires: autoconf
  16. BuildRequires: automake
  17. Requires(post,pre,preun): mate-conf
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: Takemikaduchi
  22. %description
  23. libmateweather is a library to access weather information from online
  24. services for numerous locations.
  25. %package devel
  26. Summary: Development tools for libmateweather
  27. Summary(ja): libmateweather の開発環境
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: pkgconfig
  31. %description devel
  32. Header files and libraries for building a extension library for the
  33. libmateweather.
  34. %package doc
  35. Summary: Documentation for libmateweather
  36. Summary(ja): libmateweather 用のドキュメント
  37. Group: Documentation
  38. Requires: %{name} = %{version}-%{release}
  39. BuildArch: noarch
  40. %description doc
  41. This package contains documentation for libmateweather.
  42. %prep
  43. %setup -q
  44. %build
  45. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  46. %configure \
  47. --disable-static
  48. %{__make} %{?_smp_mflags}
  49. %install
  50. %{__rm} -rf ${RPM_BUILD_ROOT}
  51. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  52. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  53. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  54. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  55. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  56. %find_lang %{name}
  57. %clean
  58. %{__rm} -rf ${RPM_BUILD_ROOT}
  59. %post
  60. /sbin/ldconfig
  61. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  62. SCHEMAS=" \
  63. mateweather.schemas"
  64. for S in $SCHEMAS; do
  65. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  66. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  67. touch --no-create %{_datadir}/icons/hicolor
  68. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  69. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  70. fi
  71. %pre
  72. if [ "$1" -gt 1 ]; then
  73. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  74. SCHEMAS=" \
  75. mateweather.schemas"
  76. for S in $SCHEMAS; do
  77. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  78. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  79. fi
  80. %preun
  81. if [ "$1" -eq 0 ]; then
  82. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  83. SCHEMAS=" \
  84. mateweather.schemas"
  85. for S in $SCHEMAS; do
  86. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  87. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  88. fi
  89. %postun
  90. /sbin/ldconfig
  91. touch --no-create %{_datadir}/icons/hicolor
  92. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  93. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  94. fi
  95. %files -f %{name}.lang
  96. %defattr(-,root,root,-)
  97. %doc COPYING ChangeLog NEWS README
  98. %{_sysconfdir}/mateconf/schemas/mateweather.schemas
  99. %{_libdir}/libmateweather.so.*
  100. %{_datadir}/icons/mate/*/*/*
  101. %{_datadir}/libmateweather
  102. %files devel
  103. %defattr(-,root,root,-)
  104. %{_includedir}/libmateweather
  105. %{_libdir}/libmateweather.so
  106. %{_libdir}/pkgconfig/mateweather.pc
  107. %files doc
  108. %defattr(-,root,root,-)
  109. %{_datadir}/gtk-doc/html/libmateweather
  110. %changelog
  111. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  112. - new upstream release
  113. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  114. - initial build for Vine Linux