~blackskad/gnomeradio/dev-vol-button

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
# Note that this is NOT a relocatable package
%define ver      @VERSION@
%define rel      1
%define prefix   /usr

Summary: A FM-Tuner program for Gnome
Name: gnomeradio
Version: %ver
Release: %rel
Copyright: GPL
Group: Applications/Multimedia
Source: http://mfcn.ilo.de/gnomeradio/gnomeradio-%{ver}.tar.gz
BuildRoot: /var/tmp/gnomeradio-%{ver}-root
Packager: Jörgen Scheibengruber <mfcn@gmx.de>
URL: http://mfcn.ilo.de/gnomeradio
Docdir: %{prefix}/doc

BuildRequires: pkgconfig
BuildRequires: intltool
BuildRequires: libgnomeui-devel

%description
A FM-Tuner program for Gnome

%changelog

%prep
%setup

%build
CFLAGS="${RPM_OPT_FLAGS}"
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
make

%install
rm -rf $RPM_BUILD_ROOT
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
rm -rf $RPM_BUILD_ROOT/var/scrollkeeper

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_bindir}/*
%{_datadir}/locale/*
%{_datadir}/pixmaps/radio.png
%{_datadir}/gnome/help/gnomeradio
%{_datadir}/pixmaps/gnomeradio.png
%{_datadir}/omf/gnomeradio/gnomeradio-C.omf
%{_datadir}/applications/gnomeradio.desktop
%{_sysconfdir}/gconf/schemas/gnomeradio.schemas

%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
SCHEMAS="gnomeradio.schemas"
for S in $SCHEMAS; do
  gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
done
scrollkeeper-update

%postun
scrollkeeper-update