1 | Summary: A tool to configure pointing devices |
---|
2 | Summary(ja): ポインティングデバイスを設定するためのツール |
---|
3 | |
---|
4 | Name: gpointing-device-settings |
---|
5 | Version: 1.5.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.gz |
---|
12 | # see https://aur.archlinux.org/packages.php?ID=25663&detail=1 |
---|
13 | Patch0: gpointing-device-settings-1.5.1-fix-gdk-display.patch |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
---|
16 | BuildRequires: GConf2-devel |
---|
17 | BuildRequires: gtk2-devel |
---|
18 | BuildRequires: intltool |
---|
19 | BuildRequires: gnome-settings-daemon-devel >= 2.28.0 |
---|
20 | Requires(post): GConf2 |
---|
21 | Requires(post): desktop-file-utils |
---|
22 | Requires(postun): desktop-file-utils |
---|
23 | |
---|
24 | Vendor: Project Vine |
---|
25 | Distribution: Vine Linux |
---|
26 | |
---|
27 | %description |
---|
28 | This application can be used to configure pointing devices like trackpoints |
---|
29 | or touchpads, that are commonly used on laptops. |
---|
30 | |
---|
31 | |
---|
32 | %package devel |
---|
33 | Summary: A tool to configure pointing devices |
---|
34 | License: LGPLv3+ |
---|
35 | Group: Development/Libraries |
---|
36 | Requires: %{name} = %{version}, GConf2-devel, gtk2-devel |
---|
37 | |
---|
38 | %description devel |
---|
39 | This application can be used to configure pointing devices like trackpoints |
---|
40 | or touchpads, that are commonly used on laptops. |
---|
41 | |
---|
42 | This package contains all necessary include files and libraries needed |
---|
43 | to develop modules for gpointing-device-settings. |
---|
44 | |
---|
45 | |
---|
46 | %prep |
---|
47 | %setup -q |
---|
48 | %patch0 -p1 -b .gdk-display |
---|
49 | |
---|
50 | %build |
---|
51 | %configure --disable-static |
---|
52 | %{__make} %{?_smp_mflags} |
---|
53 | |
---|
54 | %install |
---|
55 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
56 | |
---|
57 | # install .desktop |
---|
58 | cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop <<EOF |
---|
59 | [Desktop Entry] |
---|
60 | Name=Pointing Devices |
---|
61 | Name[ja]=ポインティングデバイス |
---|
62 | Comment=Configure pointing devices |
---|
63 | Comment[ja]=ポインティングデバイスを設定します |
---|
64 | Type=Application |
---|
65 | TryExec=%{name} |
---|
66 | Exec=%{_bindir}/%{name} |
---|
67 | Icon=input-touchpad.png |
---|
68 | Terminal=false |
---|
69 | StartupNotify=true |
---|
70 | Categories=GNOME;GTK;Settings;HardwareSettings; |
---|
71 | OnlyShowIn=GNOME;Categories=Graphics;2DGraphics;RasterGraphics;GTK; |
---|
72 | EOF |
---|
73 | |
---|
74 | # remove unnecessary files |
---|
75 | find $RPM_BUILD_ROOT/%{_libdir} -name "*.la" -exec %{__rm} -f "{}" \; |
---|
76 | find $RPM_BUILD_ROOT/%{_libdir} -name "*.a" -exec %{__rm} -f "{}" \; |
---|
77 | |
---|
78 | %find_lang %{name} |
---|
79 | |
---|
80 | |
---|
81 | %clean |
---|
82 | rm -rf $RPM_BUILD_ROOT |
---|
83 | |
---|
84 | %pre |
---|
85 | if [ "$1" -gt 1 ]; then |
---|
86 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
87 | SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas" |
---|
88 | for S in $SCHEMAS; do |
---|
89 | gconftool-2 --makefile-uninstall-rule \ |
---|
90 | %{_sysconfdir}/gconf/schemas/$S > /dev/null |
---|
91 | done |
---|
92 | fi |
---|
93 | |
---|
94 | %post |
---|
95 | /sbin/ldconfig |
---|
96 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
97 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
98 | SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas" |
---|
99 | for S in $SCHEMAS; do |
---|
100 | gconftool-2 --makefile-install-rule \ |
---|
101 | %{_sysconfdir}/gconf/schemas/$S > /dev/null |
---|
102 | done |
---|
103 | |
---|
104 | %preun |
---|
105 | if [ "$1" -eq 0 ]; then |
---|
106 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
107 | SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas" |
---|
108 | for S in $SCHEMAS; do |
---|
109 | gconftool-2 --makefile-uninstall-rule \ |
---|
110 | %{_sysconfdir}/gconf/schemas/$S > /dev/null |
---|
111 | done |
---|
112 | fi |
---|
113 | |
---|
114 | %postun |
---|
115 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
116 | |
---|
117 | |
---|
118 | |
---|
119 | %files -f %{name}.lang |
---|
120 | %defattr(-,root,root,-) |
---|
121 | %doc COPYING MAINTAINERS NEWS TODO |
---|
122 | %{_sysconfdir}/gconf/schemas/* |
---|
123 | %{_bindir}/* |
---|
124 | %{_datadir}/%{name} |
---|
125 | %{_datadir}/applications/%{name}.desktop |
---|
126 | %{_libdir}/%{name} |
---|
127 | %{_libdir}/gnome-settings-daemon-2.0/*.so |
---|
128 | %{_libdir}/gnome-settings-daemon-2.0/*.gnome-settings-plugin |
---|
129 | %{_libdir}/*.so.* |
---|
130 | %{_mandir}/man1/%{name}.1* |
---|
131 | |
---|
132 | %files devel |
---|
133 | %defattr(-,root,root,-) |
---|
134 | %{_includedir}/gpointing-device-settings |
---|
135 | %{_libdir}/*.so |
---|
136 | %{_libdir}/pkgconfig/*.pc |
---|
137 | |
---|
138 | |
---|
139 | %changelog |
---|
140 | * Thu May 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.5.1-1 |
---|
141 | - new upstream release |
---|
142 | - specify required version for gnome-settings-daemon-devel >= 2.28.0 |
---|
143 | - add patch0 to fix compile error |
---|
144 | - add Vendor and Distribution tags |
---|
145 | - add .desktop file |
---|
146 | |
---|
147 | * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.1-1 |
---|
148 | - initial build for Vine Linux |
---|
149 | |
---|