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