source: projects/specs/trunk/m/mate-system-monitor/mate-system-monitor-vl.spec @ 6172

Revision 6172, 3.1 KB checked in by Takemikaduchi, 12 years ago (diff)

new upstream release

Line 
1Summary:        A system monitor for MATE
2Name:           mate-system-monitor
3Version:        1.2.1
4Release:        1%{?_dist_release}
5Source0:        %{name}-%{version}.tar.xz
6License:        GPLv2
7Group:          Applications/System
8URL:            https://matsusoft.com.ar/projects/mate/
9
10BuildRequires:  mate-common
11BuildRequires:  mate-doc-utils
12BuildRequires:  mate-conf-devel
13BuildRequires:  mate-icon-theme
14BuildRequires:  gtk2-devel
15BuildRequires:  libxml2-devel
16BuildRequires:  libgtop2-devel
17BuildRequires:  libwnck-devel
18BuildRequires:  librsvg2-devel
19BuildRequires:  dbus-glib-devel
20BuildRequires:  gtkmm2-devel
21BuildRequires:  glibmm-devel
22BuildRequires:  gtk-doc
23BuildRequires:  autoconf
24BuildRequires:  automake
25
26Requires(post,pre,preun):       mate-conf
27Requires(post,postun):  desktop-file-utils
28
29BuildRoot:      %{_tmppath}/%{name}-%{version}-root
30
31Patch0:         mate-system-monitor-1.2.1-configure.patch
32
33Vendor:         Project Vine
34Distribution:   Vine Linux
35Packager:       Takemikaduchi
36
37
38%description
39View current processes and monitor system state
40
41
42%prep
43%setup -q
44%patch0 -p1
45
46
47%build
48(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
49%configure \
50        --disable-static \
51        --disable-scrollkeeper
52
53%{__make} %{?_smp_mflags}
54
55
56%install
57%{__rm} -rf ${RPM_BUILD_ROOT}
58
59export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
60%{__make} install DESTDIR=${RPM_BUILD_ROOT}
61unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
62
63find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
64find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
65
66%find_lang %{name}
67
68
69%clean
70%{__rm} -rf ${RPM_BUILD_ROOT}
71
72%post
73/sbin/ldconfig
74
75export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
76
77SCHEMAS=" \
78  mate-system-monitor.schemas"
79for S in $SCHEMAS; do
80  echo %{_sysconfdir}/mateconf/schemas/$S; done \
81  | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
82
83update-desktop-database %{_datadir}/applications >& /dev/null ||:
84
85%pre
86if [ "$1" -gt 1 ]; then
87  export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
88
89  SCHEMAS=" \
90    mate-system-monitor.schemas"
91  for S in $SCHEMAS; do
92    echo %{_sysconfdir}/mateconf/schemas/$S; done \
93    | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
94fi
95
96%preun
97if [ "$1" -eq 0 ]; then
98  export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
99
100  SCHEMAS=" \
101    mate-system-monitor.schemas"
102  for S in $SCHEMAS; do
103    echo %{_sysconfdir}/mateconf/schemas/$S; done \
104    | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
105fi
106
107%postun
108/sbin/ldconfig
109update-desktop-database %{_datadir}/applications >& /dev/null ||:
110
111
112%files -f %{name}.lang
113%defattr(-,root,root,-)
114%doc COPYING ChangeLog NEWS README
115%{_sysconfdir}/mateconf/schemas/mate-system-monitor.schemas
116%{_bindir}/mate-system-monitor
117%{_datadir}/applications/mate-system-monitor.desktop
118%{_datadir}/mate/help/mate-system-monitor
119%{_datadir}/omf/mate-system-monitor
120%{_datadir}/pixmaps/mate-system-monitor
121
122
123%changelog
124* Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1
125- new upstream release
126- add Patch0 (mate-system-monitor-1.2.1-configure.patch)
127
128* Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
129- change category
130
131* Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
132- initial build for Vine Linux
133
Note: See TracBrowser for help on using the repository browser.