summaryrefslogtreecommitdiffstats
path: root/gnome/netbook-launcher.spec
blob: 88d0719e5f0f6f1911d0ac57f4d183bf2a641289 (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Name:           netbook-launcher
Version:        1.6.21
Release:        2%{?dist}
Summary:        A clutter-based desktop launcher

Group:          User Interface/Desktops
License:        GPLv3
URL:            https://launchpad.net/netbook-remix-launcher
Source0:        http://launchpad.net/netbook-remix-launcher/trunk/1.2.0beta/+download/%{name}-%{version}.tar.gz
# https://bugs.launchpad.net/netbook-remix-launcher/+bug/369942
Patch0:         %{name}-1.6.21-fix-quit.patch
Patch1:         %{name}-1.6.21-fix-icons.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  clutter-gtk-devel
BuildRequires:  GConf2-devel
BuildRequires:  gnome-menus-devel
BuildRequires:  intltool
BuildRequires:  gnome-desktop-devel
BuildRequires:  libwnck-devel
# bug 485957
BuildRequires:  libXres-devel
BuildRequires:  startup-notification-devel
BuildRequires:  dbus-glib-devel
# for quit actions
Requires:       gnome-power-manager
Requires(pre): GConf2
Requires(post): GConf2
Requires(preun): GConf2

%description
Netbook Launcher is a desktop launcher that uses the clutter UI
library. It is commonly being used on netbook desktops with a
resolution of 1024x600 pixels and also supposed to support usage on
touchscreens. It follows the xdg spec standards from freedesktop.org
for the Desktop menu layout.


%prep
%setup -q
%patch0 -p1 -b .fix-quit
%patch1 -p1 -b .fix-icons


%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}


%clean
rm -rf $RPM_BUILD_ROOT


%pre
if [ "$1" -gt 1 ] ; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
            %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
fi

%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule \
            %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :

%preun
if [ "$1" -eq 0 ] ; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
            %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
fi


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING TODO
%config(noreplace) %{_sysconfdir}/gconf/schemas/netbook-launcher.schemas
%{_sysconfdir}/xdg/autostart/netbook-launcher.desktop
%{_bindir}/netbook-launcher
%{_datadir}/desktop-directories/Favorites.directory
%{_datadir}/netbook-launcher

%changelog
* Thu Apr 30 2009 Michel Salim <salimma@fedoraproject.org> - 1.6.21-2
- Fix session management actions and icons

* Sat Apr 18 2009 Michel Salim <salimma@fedoraproject.org> - 1.6.21-1
- Update to 1.6.21
- Register GConf schemas

* Mon Mar  2 2009 Michel Salim <salimma@fedoraproject.org> - 1.6.8-1
- Update to 1.6.8

* Fri Feb  6 2009 Michel Salim <salimma@fedoraproject.org> - 1.2-1
- Package renamed to netbook-launcher
- Updated build dependencies (add clutter-gtk-devel, drop redundant ones)

* Mon Oct 28 2008 Peter Robinson <pbrobinson@gmail.com> 0.6.3-2
- Fix dep and rebuild

* Thu Oct 02 2008 Jonathan Roberts <jonrob@fedoraproject.org> 0.6.3-1
- Updated spec file to fix comments from review, and updated to latest upstream

* Thu Sep 18 2008 Jonathan Roberts <jonrob@fedoraproject.org> 0.5.18-1
- Created initial spec file