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