source: projects/specs/trunk/x/xfce4-power-manager/xfce4-power-manager-vl.spec @ 3945

Revision 3945, 6.5 KB checked in by inagaki, 13 years ago (diff)

update: libexo, garcon
new: xfce4-power-manager

Line 
1%global minorversion 1.0
2%global xfceversion 4.7
3
4Name:           xfce4-power-manager
5Summary:        Power management for the Xfce desktop environment
6Summary(ja):    Xfce デスクトップ環境用電源管理ツール
7Version:        1.0.10
8Release:        2%{?_dist_release}
9
10Group:          User Interface/Desktops
11License:        GPLv2+
12URL:            http://goodies.xfce.org/projects/applications/%{name}
13
14Source0:        http://archive.xfce.org/src/apps/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
15Patch0:         xfce4-power-manager-1.0.1-dsofix.patch
16Patch1:         xfce4-power-manager-1.0.10-libnotify-0.7.0.patch
17
18BuildRoot:      %{_tmppath}/%{name}-%{version}-root
19
20BuildRequires:  xfconf-devel >= %{xfceversion}
21BuildRequires:  xfce4-panel-devel >= %{xfceversion}
22BuildRequires:  dbus-devel >= 0.60
23BuildRequires:  dbus-glib-devel >= 0.70
24BuildRequires:  libnotify-devel >= 0.4.1
25BuildRequires:  libxfce4ui-devel >= %{xfceversion}
26BuildRequires:  libXrandr-devel >= 1.2.0
27BuildRequires:  xorg-x11-proto-devel
28BuildRequires:  gettext intltool desktop-file-utils
29Requires:       xfce4-panel >= %{xfceversion}
30#Requires:       xfce4-doc
31Requires:       polkit
32
33%description
34Xfce Power Manager uses the information and facilities provided by HAL to
35display icons and handle user callbacks in an interactive Xfce session.
36Xfce Power Preferences allows authorised users to set policy and change
37preferences.
38
39
40%prep
41%setup -q
42%patch0 -p1 -b .dsofix
43
44#if 0%{?fedora} >= 15
45#patch1 -p1 -b .libnotify-0.7.0
46#endif
47
48
49%build
50%configure
51make %{?_smp_mflags} V=1
52
53
54%install
55rm -rf $RPM_BUILD_ROOT
56make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
57%find_lang %{name}
58desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-settings.desktop     
59
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64
65%post
66touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
67
68
69%postun
70if [ $1 -eq 0 ] ; then
71    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
72    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
73fi
74
75
76%posttrans
77gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
78
79
80%files -f %{name}.lang
81%defattr(-,root,root,-)
82%doc AUTHORS COPYING ChangeLog NEWS README TODO
83%{_bindir}/%{name}
84%{_bindir}/%{name}-settings
85%{_bindir}/xfce4-power-information
86%{_sbindir}/xfpm-power-backlight-helper
87%config %{_sysconfdir}/xdg/autostart/%{name}.desktop
88%{_libdir}/xfce4/panel-plugins/xfce4-brightness-plugin
89%{_datadir}/applications/%{name}-settings.desktop
90%{_datadir}/icons/hicolor/*/*/*.*
91%{_datadir}/xfce4/panel-plugins/xfce4-brightness-plugin.desktop
92%{_datadir}/polkit-1/actions/org.xfce.power.policy
93%doc %{_datadir}/xfce4/doc/C/images/*.png
94%doc %{_datadir}/xfce4/doc/C/%{name}.html
95%{_mandir}/man1/%{name}-settings.1.*
96%{_mandir}/man1/%{name}.1.*
97
98
99%changelog
100* Mon May 23 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.10-2
101- Initial build for Vine Linux
102
103* Sun Feb 20 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.10-1
104- Update to 1.0.10
105
106* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
107- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
108
109* Tue Jan 04 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.3-1
110- Update to 1.0.3
111- No longer require hal because the brightness backend was removed
112- Require polkit
113
114* Sun Dec 19 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.2-1
115- Update to 1.0.2
116
117* Thu Dec 16 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1-0.1-1
118- Update to 1.0.1 on Xfce 4.8 pre2
119
120* Sat Nov 06 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.5-1
121- Update to 0.8.5
122- Fix for libnotify 0.7.0
123- Make build verbose
124
125* Sat Nov 21 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4.2-1
126- Update to 0.8.4.2
127
128* Mon Nov 02 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4.1-1
129- Update to 0.8.4.1
130
131* Tue Sep 29 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4-1
132- Update to 0.8.4
133- Drop xfpm_session_set_client_id patch, fixed upstream
134
135* Wed Sep 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3.1-2
136- Fix segfault in xfpm_session_set_client_id
137
138* Sun Aug 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3.1-1
139- Update to 0.8.3.1
140
141* Sat Aug 01 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3-1
142- Update to 0.8.3
143
144* Thu Jul 30 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.2-3
145- Patch to include dpmsconst.h instead of dpms.h
146
147* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
148- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
149
150* Thu Jul 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.2-1
151- Update to 0.8.2
152
153* Mon Jul 06 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.1.1-1
154- Update to 0.8.1.1
155
156* Fri Jul 03 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.1-1
157- Update to 0.8.1
158- Drop libglade2 requirement
159
160* Wed Jun 10 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-1
161- Update to 0.8.0 final
162- Update gtk-icon-cache scriptlets
163
164* Wed May 20 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.3.RC2
165- Update to 0.8.0RC2
166
167* Tue Apr 28 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.3.RC1
168- Update to 0.8.0RC1
169
170* Mon Apr 13 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.2.beta2
171- Update to 0.8.0beta2
172- Drop xfpm-button-hal.patch, no longer necessary
173
174* Mon Apr 13 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.2.beta1
175- Add xfpm-button-hal.patch by Mike Massonnet
176
177* Sun Apr 12 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.1.beta1
178- Update to 0.8.0beta1
179
180* Thu Apr 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.1.alpha2
181- Update to 0.8.0alpha2
182
183* Thu Apr 02 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-0.1.alpha
184- Update to 0.8.0alpha
185
186* Tue Mar 24 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.5-1
187- Update to 0.6.5
188- Remove custom autostart file
189
190* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2
191- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
192
193* Thu Feb 19 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.2-1
194- Update to 0.6.2
195
196* Sat Feb  7 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.1-1
197- Update to 0.6.1
198- Include additional desktop file for autostarting the app
199
200* Mon Nov 10 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.0-0.1.RC1
201- Update to 0.6.0 RC1
202
203* Fri Oct 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.0-0.1.0.beta1
204- Initial Fedora package
Note: See TracBrowser for help on using the repository browser.