summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/applications/kvolumeosd/kde3-kvolumeosd.spec
blob: 51b22059c64b62020231a892ca569ba9cdc49de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
%define oname KVolumeOSD

Name: kde3-kvolumeosd
Version: 0.1
Release: %mkrel 6
Summary: An application showing OSD to respond volume buttons
License: GPLv2+
Group: Graphical desktop/KDE3
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
URL: http://www.kde-apps.org/content/show.php?content=80354
Source: http://www.kde-apps.org/CONTENT/content-files/80354-%{oname}-%{version}.tar.gz
Patch0:         kde-3.5.10-acinclude.patch
Patch1:         fix_autotools.patch
BuildRequires:  kde3-macros
%if %mdkversion < 201000
BuildRequires: autoconf <= 1:2.63
BuildRequires: automake >= 1.6.1
%else
BuildRequires: autoconf >= 1:2.65
BuildRequires: automake >= 1.11
%endif
BuildRequires: kdelibs-devel
BuildRequires: desktop-file-utils
Requires: kdemultimedia-kmix

%description
KVolumeOSD is a simple KDE application that runs in the background and
responds to volume buttons by showing a little OSD. It delegates the
actual job of adjusting the volume to KMix.

%prep
%setup -q -n %{oname}
%if %mdkversion >= 201000
%patch0 -p1
%patch1 -p1
%endif

%build
make -f Makefile.cvs
%configure_kde3
%make

%install
rm -rf %buildroot
%makeinstall_std

desktop-file-install --vendor='' --delete-original \
	--dir %buildroot%_kde3_datadir/applications/kde \
	--add-category='Audio;Mixer' \
	%buildroot%_kde3_datadir/applnk/Utilities/kvolumeosd.desktop

%clean
rm -rf %buildroot

%if %mdkversion < 200900
%post
%{update_menus}
%update_kde3_icon_cache hicolor

%postun
%{clean_menus}
%clean_kde3_icon_cache hicolor
%endif

%files
%defattr(-,root,root)
%{_kde3_bindir}/kvolumeosd
%{_kde3_appsdir}/kvolumeosd
%{_kde3_datadir}/doc/HTML/en/kvolumeosd
%{_kde3_datadir}/applications/kde/*.desktop
%{_kde3_iconsdir}/hicolor/*/apps/*


%changelog
* Mon Jul 18 2011 Tim Williams <tim@my-place.org.uk> 0.1-6mdv2010.2
+ Rebuild for Trinity

* Fri Jul 23 2010 Tim Williams <tim@my-place.org.uk> 0.1-5mdv2010.1
+ Rebuild MDV 2010.1

* Sun Feb 14 2010 Atilla ├ľNTA┼× <atilla_ontas@mandriva.org> 0.1-4mvt2010.0
+ Fix build with autoconf 2.65 and automake 1.11
+ Change package group

* Mon Nov 16 2009 Tim Williams <tim@my-place.org.uk> 0.1-3mdv2010.0
+ Rebuild MDV 2010.0

* Fri May 09 2008 Funda Wang <fundawang@mandriva.org> 0.1-2mdv2009.0
+ Revision: 205328
- fix post and postun script
- fix name
- import source and spec
- Created package structure for kde3-kvolumeosd.