1 | Summary: A tool to configure pointing devices |
---|
2 | Summary(ja): ポインティングデバイスを設定するためのツール |
---|
3 | |
---|
4 | Name: gpointing-device-settings |
---|
5 | Version: 1.3.1 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: LGPLv3+ |
---|
8 | Group: Applications/System |
---|
9 | Url: http://live.gnome.org/GPointingDeviceSettings |
---|
10 | |
---|
11 | Source: %{name}-%{version}.tar.bz2 |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
---|
14 | BuildRequires: GConf2-devel |
---|
15 | BuildRequires: gtk2-devel |
---|
16 | BuildRequires: intltool |
---|
17 | BuildRequires: gnome-settings-daemon-devel |
---|
18 | Requires(post): GConf2 |
---|
19 | |
---|
20 | %description |
---|
21 | This application can be used to configure pointing devices like trackpoints |
---|
22 | or touchpads, that are commonly used on laptops. |
---|
23 | |
---|
24 | |
---|
25 | %package devel |
---|
26 | Summary: A tool to configure pointing devices |
---|
27 | License: LGPLv3+ |
---|
28 | Group: Development/Libraries |
---|
29 | Requires: %{name} = %{version}, GConf2-devel, gtk2-devel |
---|
30 | |
---|
31 | %description devel |
---|
32 | This application can be used to configure pointing devices like trackpoints |
---|
33 | or touchpads, that are commonly used on laptops. |
---|
34 | |
---|
35 | This package contains all necessary include files and libraries needed |
---|
36 | to develop modules for gpointing-device-settings. |
---|
37 | |
---|
38 | |
---|
39 | %prep |
---|
40 | %setup -q |
---|
41 | |
---|
42 | %build |
---|
43 | %configure --disable-static |
---|
44 | |
---|
45 | %install |
---|
46 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
47 | |
---|
48 | %find_lang %{name} |
---|
49 | |
---|
50 | # remove unneeded files |
---|
51 | rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-2.0/*.la |
---|
52 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
53 | |
---|
54 | |
---|
55 | %clean |
---|
56 | rm -rf $RPM_BUILD_ROOT |
---|
57 | |
---|
58 | %pre |
---|
59 | if [ "$1" -gt 1 ]; then |
---|
60 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
61 | SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas" |
---|
62 | for S in $SCHEMAS; do |
---|
63 | gconftool-2 --makefile-uninstall-rule \ |
---|
64 | %{_sysconfdir}/gconf/schemas/$S > /dev/null |
---|
65 | done |
---|
66 | fi |
---|
67 | |
---|
68 | %post |
---|
69 | /sbin/ldconfig |
---|
70 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
71 | SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas" |
---|
72 | for S in $SCHEMAS; do |
---|
73 | gconftool-2 --makefile-install-rule \ |
---|
74 | %{_sysconfdir}/gconf/schemas/$S > /dev/null |
---|
75 | done |
---|
76 | |
---|
77 | %preun |
---|
78 | if [ "$1" -eq 0 ]; then |
---|
79 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
80 | SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas" |
---|
81 | for S in $SCHEMAS; do |
---|
82 | gconftool-2 --makefile-uninstall-rule \ |
---|
83 | %{_sysconfdir}/gconf/schemas/$S > /dev/null |
---|
84 | done |
---|
85 | fi |
---|
86 | |
---|
87 | %files -f %{name}.lang |
---|
88 | %defattr(-,root,root,-) |
---|
89 | %doc COPYING MAINTAINERS NEWS TODO |
---|
90 | %{_sysconfdir}/gconf/schemas/* |
---|
91 | %{_bindir}/* |
---|
92 | %{_datadir}/%{name} |
---|
93 | %{_libdir}/%{name} |
---|
94 | %{_libdir}/gnome-settings-daemon-2.0/*.so |
---|
95 | %{_libdir}/gnome-settings-daemon-2.0/*.gnome-settings-plugin |
---|
96 | %{_libdir}/*.so.* |
---|
97 | |
---|
98 | %files devel |
---|
99 | %defattr(-,root,root,-) |
---|
100 | %{_includedir}/gpointing-device-settings |
---|
101 | %{_libdir}/*.so |
---|
102 | %{_libdir}/pkgconfig/*.pc |
---|
103 | |
---|
104 | |
---|
105 | %changelog |
---|
106 | * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.1-1 |
---|
107 | - initial build for Vine Linux |
---|
108 | |
---|