source: projects/specs/trunk/lib/libm/libmateweather/libmateweather-vl.spec @ 5311

Revision 5311, 3.5 KB checked in by Takemikaduchi, 12 years ago (diff)

NEW: MATE Desktop Environment
vala: new upstream release

Line 
1Summary:        Provides access to weather information from the net
2Name:           libmateweather
3Version:        1.1.0
4Release:        1%{?_dist_release}
5Source0:        %{name}-%{version}.tar.xz
6License:        GPLv2
7Group:          System Environment/Libraries
8URL:            https://matsusoft.com.ar/projects/mate/
9
10BuildRequires:  mate-common
11BuildRequires:  mate-conf-devel
12BuildRequires:  libxml2-devel
13BuildRequires:  gtk2-devel
14BuildRequires:  libsoup-devel
15BuildRequires:  gtk-doc
16BuildRequires:  autoconf
17BuildRequires:  automake
18
19Requires(post,pre,preun):       mate-conf
20
21BuildRoot:      %{_tmppath}/%{name}-%{version}-root
22
23Vendor:         Project Vine
24Distribution:   Vine Linux
25Packager:       Takemikaduchi
26
27
28%description
29libmateweather is a library to access weather information from online
30services for numerous locations.
31
32
33%package        devel
34Summary:        Development tools for libmateweather
35Summary(ja):    libmateweather の開発環境
36Group:          Development/Libraries
37Requires:       %{name} = %{version}-%{release}
38Requires:       pkgconfig
39
40%description    devel
41Header files and libraries for building a extension library for the
42libmateweather.
43
44
45%package        doc
46Summary:        Documentation for libmateweather
47Summary(ja):    libmateweather 用のドキュメント
48Group:          Documentation
49Requires:       %{name} = %{version}-%{release}
50BuildArch:      noarch
51
52%description    doc
53This 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
71export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
72%{__make} install DESTDIR=${RPM_BUILD_ROOT}
73unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
74
75find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
76find $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
87export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
88
89SCHEMAS=" \
90  mateweather.schemas"
91for S in $SCHEMAS; do
92  echo %{_sysconfdir}/mateconf/schemas/$S; done \
93  | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
94
95touch --no-create %{_datadir}/icons/hicolor
96if [ -x /usr/bin/gtk-update-icon-cache ]; then
97  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
98fi
99
100%pre
101if [ "$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 ||:
109fi
110
111%preun
112if [ "$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 ||:
120fi
121
122%postun
123/sbin/ldconfig
124
125touch --no-create %{_datadir}/icons/hicolor
126if [ -x /usr/bin/gtk-update-icon-cache ]; then
127  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
128fi
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
Note: See TracBrowser for help on using the repository browser.