source: projects/specs/trunk/m/mate-power-manager/mate-power-manager-vl.spec @ 5316

Revision 5316, 4.3 KB checked in by Takemikaduchi, 12 years ago (diff)

mate: change category
fontconfig: rebuild
others: new upstream release

Line 
1Summary:        A Power Manager for MATE
2Name:           mate-power-manager
3Version:        1.1.0
4Release:        2%{?_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:  libmatekeyring-devel
14BuildRequires:  libmatenotify-devel
15BuildRequires:  mate-panel-devel
16BuildRequires:  gtk2-devel
17BuildRequires:  dbus-glib-devel
18BuildRequires:  libcanberra-devel
19BuildRequires:  libwnck-devel
20BuildRequires:  unique-devel
21BuildRequires:  upower-devel
22BuildRequires:  popt-devel
23BuildRequires:  gtk-doc
24BuildRequires:  autoconf
25BuildRequires:  automake
26
27Requires(post,pre,preun):       mate-conf
28Requires(post,postun):  desktop-file-utils
29
30BuildRoot:      %{_tmppath}/%{name}-%{version}-root
31
32Vendor:         Project Vine
33Distribution:   Vine Linux
34Packager:       Takemikaduchi
35
36
37%description
38MATE Power Manager is a MATE session daemon that acts as a policy agent on top of
39UPower, which requires fairly new versions of the kernel and udev.
40MATE Power Manager listens for system events and responds with user-configurable actions.
41
42MATE Power Manager comes in three main parts:
43
44        - mate-power-manager:       the manager daemon itself
45        - mate-power-preferences:  the control panel program, for configuration
46        - mate-power-statistics:   the statistics graphing program
47
48
49%prep
50%setup -q
51
52
53%build
54(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
55%configure \
56        --libexecdir=%{_libexecdir}/mate \
57        --disable-static \
58        --disable-scrollkeeper
59
60%{__make} %{?_smp_mflags}
61
62
63%install
64%{__rm} -rf ${RPM_BUILD_ROOT}
65
66export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
67%{__make} install DESTDIR=${RPM_BUILD_ROOT}
68unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
69
70find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
71find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
72
73%find_lang %{name}
74
75
76%clean
77%{__rm} -rf ${RPM_BUILD_ROOT}
78
79%post
80/sbin/ldconfig
81
82export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
83
84SCHEMAS=" \
85  mate-power-manager.schemas"
86for S in $SCHEMAS; do
87  echo %{_sysconfdir}/mateconf/schemas/$S; done \
88  | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
89
90update-desktop-database %{_datadir}/applications >& /dev/null ||:
91touch --no-create %{_datadir}/icons/hicolor
92if [ -x /usr/bin/gtk-update-icon-cache ]; then
93  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
94fi
95
96%pre
97if [ "$1" -gt 1 ]; then
98  export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
99
100  SCHEMAS=" \
101    mate-power-manager.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%preun
108if [ "$1" -eq 0 ]; then
109  export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
110
111  SCHEMAS=" \
112    mate-power-manager.schemas"
113  for S in $SCHEMAS; do
114    echo %{_sysconfdir}/mateconf/schemas/$S; done \
115    | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
116fi
117
118%postun
119/sbin/ldconfig
120update-desktop-database %{_datadir}/applications >& /dev/null ||:
121touch --no-create %{_datadir}/icons/hicolor
122if [ -x /usr/bin/gtk-update-icon-cache ]; then
123  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
124fi
125
126
127%files -f %{name}.lang
128%defattr(-,root,root,-)
129%doc COPYING ChangeLog NEWS README
130%{_sysconfdir}/mateconf/schemas/mate-power-manager.schemas
131%{_sysconfdir}/xdg/autostart/mate-power-manager.desktop
132%{_bindir}/mate-power-bugreport.sh
133%{_bindir}/mate-power-manager
134%{_bindir}/mate-power-preferences
135%{_bindir}/mate-power-statistics
136%{_libdir}/matecomponent/servers/*.server
137%{_libexecdir}/mate/mate-brightness-applet
138%{_libexecdir}/mate/mate-inhibit-applet
139%{_sbindir}/mate-power-backlight-helper
140%{_datadir}/applications/mate-power-preferences.desktop
141%{_datadir}/applications/mate-power-statistics.desktop
142%{_datadir}/dbus-1/services/mate-power-manager.service
143%{_datadir}/icons/hicolor/*/*/*
144%{_datadir}/mate/help/mate-power-manager
145%{_datadir}/mate-2.0/ui/*.xml
146%{_datadir}/%{name}
147%{_datadir}/omf/mate-power-manager
148%{_datadir}/polkit-1/actions/org.mate.power.policy
149%{_mandir}/man1/*.1.gz
150
151
152%changelog
153* Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
154- change category
155
156* Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
157- initial build for Vine Linux
158
Note: See TracBrowser for help on using the repository browser.