1 | %define major_ver 1.18 |
---|
2 | %define ver %{major_ver}.0 |
---|
3 | %define rel 1 |
---|
4 | |
---|
5 | Summary: Provides access to weather information from the net |
---|
6 | Name: libmateweather |
---|
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 |
---|
11 | License: LGPLv2.1 |
---|
12 | Group: System Environment/Libraries |
---|
13 | URL: http://mate-desktop.org/ |
---|
14 | |
---|
15 | BuildRequires: mate-common |
---|
16 | BuildRequires: libxml2-devel |
---|
17 | BuildRequires: gtk3-devel >= 3.14 |
---|
18 | BuildRequires: libsoup-devel |
---|
19 | BuildRequires: gtk-doc |
---|
20 | BuildRequires: autoconf |
---|
21 | BuildRequires: automake |
---|
22 | |
---|
23 | Requires(posttrans,postun): glib2 |
---|
24 | |
---|
25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
26 | |
---|
27 | Vendor: Project Vine |
---|
28 | Distribution: Vine Linux |
---|
29 | Packager: Takemikaduchi, iwaim |
---|
30 | |
---|
31 | |
---|
32 | %description |
---|
33 | libmateweather is a library to access weather information from online |
---|
34 | services for numerous locations. |
---|
35 | |
---|
36 | |
---|
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 |
---|
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 | |
---|
60 | %package docs |
---|
61 | Summary: Documentation for libmateweather |
---|
62 | Summary(ja): libmateweather 用のドキュメント |
---|
63 | Group: Documentation |
---|
64 | BuildArch: noarch |
---|
65 | |
---|
66 | %description docs |
---|
67 | This package contains documentation for libmateweather. |
---|
68 | |
---|
69 | |
---|
70 | %prep |
---|
71 | %setup -q |
---|
72 | %__cp %{SOURCE1} po-locations/ja.po |
---|
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 | |
---|
96 | %post -p /sbin/ldconfig |
---|
97 | |
---|
98 | %postun |
---|
99 | /sbin/ldconfig |
---|
100 | if [ $1 -eq 0 ]; then |
---|
101 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
102 | fi |
---|
103 | |
---|
104 | %posttrans |
---|
105 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
106 | |
---|
107 | %files -f %{name}.lang |
---|
108 | %defattr(-,root,root,-) |
---|
109 | %doc COPYING ChangeLog NEWS README |
---|
110 | %{_libdir}/libmateweather.so.* |
---|
111 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml |
---|
112 | %{_datadir}/icons/mate/*/*/* |
---|
113 | %{_datadir}/libmateweather/Locations.xml |
---|
114 | %{_datadir}/libmateweather/Locations.ja.xml |
---|
115 | |
---|
116 | %files l10n |
---|
117 | %defattr(-,root,root) |
---|
118 | %{_datadir}/libmateweather/* |
---|
119 | %exclude %{_datadir}/libmateweather/Locations.xml |
---|
120 | %exclude %{_datadir}/libmateweather/Locations.ja.xml |
---|
121 | |
---|
122 | %files devel |
---|
123 | %defattr(-,root,root,-) |
---|
124 | %{_includedir}/libmateweather |
---|
125 | %{_libdir}/libmateweather.so |
---|
126 | %{_libdir}/pkgconfig/mateweather.pc |
---|
127 | |
---|
128 | %files docs |
---|
129 | %defattr(-,root,root,-) |
---|
130 | %{_datadir}/gtk-doc/html/libmateweather |
---|
131 | |
---|
132 | |
---|
133 | %changelog |
---|
134 | * Sun Apr 2 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1 |
---|
135 | - update to 1.18.0 |
---|
136 | - move to GTK3+ |
---|
137 | - add libmateweather-locations.ja.po (Source1) |
---|
138 | |
---|
139 | * Sat Nov 26 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.1-1 |
---|
140 | - new upstream release |
---|
141 | - fix License |
---|
142 | - add Packager |
---|
143 | |
---|
144 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1 |
---|
145 | - new upstream release |
---|
146 | |
---|
147 | * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1 |
---|
148 | - new upstream release |
---|
149 | |
---|
150 | * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
151 | - new upstream release |
---|
152 | |
---|
153 | * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
154 | - new upstream release |
---|
155 | - create %%{name}-l10n subpackage |
---|
156 | - rename document subpackage |
---|
157 | |
---|
158 | * Mon Apr 14 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
159 | - new upstream release |
---|
160 | |
---|
161 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-2 |
---|
162 | - rebuild with VineSeed environment |
---|
163 | |
---|
164 | * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.2-1 |
---|
165 | - new upstream release |
---|
166 | |
---|
167 | * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1 |
---|
168 | - new upstream release |
---|
169 | - remove BuildRequires: mate-conf-devel |
---|
170 | |
---|
171 | * Wed Aug 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1 |
---|
172 | - new upstream release |
---|
173 | |
---|
174 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1 |
---|
175 | - new upstream release |
---|
176 | |
---|
177 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
178 | - initial build for Vine Linux |
---|
179 | |
---|