|
@@ -2,20 +2,27 @@ Summary: A tool to configure pointing devices
|
|
Summary(ja): ポインティングデバイスを設定するためのツール
|
|
Summary(ja): ポインティングデバイスを設定するためのツール
|
|
|
|
|
|
Name: gpointing-device-settings
|
|
Name: gpointing-device-settings
|
|
-Version: 1.3.1
|
|
+Version: 1.5.1
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: LGPLv3+
|
|
License: LGPLv3+
|
|
Group: Applications/System
|
|
Group: Applications/System
|
|
-Url: http://live.gnome.org/GPointingDeviceSettings
|
|
+URL: http://live.gnome.org/GPointingDeviceSettings
|
|
|
|
|
|
-Source: %{name}-%{version}.tar.bz2
|
|
+Source: %{name}-%{version}.tar.gz
|
|
|
|
+# see https://aur.archlinux.org/packages.php?ID=25663&detail=1
|
|
|
|
+Patch0: gpointing-device-settings-1.5.1-fix-gdk-display.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: GConf2-devel
|
|
BuildRequires: GConf2-devel
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: intltool
|
|
BuildRequires: intltool
|
|
-BuildRequires: gnome-settings-daemon-devel
|
|
+BuildRequires: gnome-settings-daemon-devel >= 2.28.0
|
|
Requires(post): GConf2
|
|
Requires(post): GConf2
|
|
|
|
+Requires(post): desktop-file-utils
|
|
|
|
+Requires(postun): desktop-file-utils
|
|
|
|
+
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
|
|
%description
|
|
%description
|
|
This application can be used to configure pointing devices like trackpoints
|
|
This application can be used to configure pointing devices like trackpoints
|
|
@@ -38,18 +45,37 @@ to develop modules for gpointing-device-settings.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
+%patch0 -p1 -b .gdk-display
|
|
|
|
|
|
%build
|
|
%build
|
|
%configure --disable-static
|
|
%configure --disable-static
|
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
-%find_lang %{name}
|
|
+# install .desktop
|
|
|
|
+cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop <<EOF
|
|
|
|
+[Desktop Entry]
|
|
|
|
+Name=Pointing Devices
|
|
|
|
+Name[ja]=ポインティングデバイス
|
|
|
|
+Comment=Configure pointing devices
|
|
|
|
+Comment[ja]=ポインティングデバイスを設定します
|
|
|
|
+Type=Application
|
|
|
|
+TryExec=%{name}
|
|
|
|
+Exec=%{_bindir}/%{name}
|
|
|
|
+Icon=input-touchpad.png
|
|
|
|
+Terminal=false
|
|
|
|
+StartupNotify=true
|
|
|
|
+Categories=GNOME;GTK;Settings;HardwareSettings;
|
|
|
|
+OnlyShowIn=GNOME;Categories=Graphics;2DGraphics;RasterGraphics;GTK;
|
|
|
|
+EOF
|
|
|
|
+
|
|
|
|
+# remove unnecessary files
|
|
|
|
+find $RPM_BUILD_ROOT/%{_libdir} -name "*.la" -exec %{__rm} -f "{}" \;
|
|
|
|
+find $RPM_BUILD_ROOT/%{_libdir} -name "*.a" -exec %{__rm} -f "{}" \;
|
|
|
|
|
|
-# remove unneeded files
|
|
+%find_lang %{name}
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-2.0/*.la
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -67,6 +93,7 @@ fi
|
|
|
|
|
|
%post
|
|
%post
|
|
/sbin/ldconfig
|
|
/sbin/ldconfig
|
|
|
|
+update-desktop-database %{_datadir}/applications >& /dev/null ||:
|
|
export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
|
|
export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
|
|
SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas"
|
|
SCHEMAS="gpointing-device-settings_gnome_settings_daemon.schemas"
|
|
for S in $SCHEMAS; do
|
|
for S in $SCHEMAS; do
|
|
@@ -84,16 +111,23 @@ if [ "$1" -eq 0 ]; then
|
|
done
|
|
done
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+%postun
|
|
|
|
+update-desktop-database %{_datadir}/applications >& /dev/null ||:
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING MAINTAINERS NEWS TODO
|
|
%doc COPYING MAINTAINERS NEWS TODO
|
|
%{_sysconfdir}/gconf/schemas/*
|
|
%{_sysconfdir}/gconf/schemas/*
|
|
%{_bindir}/*
|
|
%{_bindir}/*
|
|
%{_datadir}/%{name}
|
|
%{_datadir}/%{name}
|
|
|
|
+%{_datadir}/applications/%{name}.desktop
|
|
%{_libdir}/%{name}
|
|
%{_libdir}/%{name}
|
|
%{_libdir}/gnome-settings-daemon-2.0/*.so
|
|
%{_libdir}/gnome-settings-daemon-2.0/*.so
|
|
%{_libdir}/gnome-settings-daemon-2.0/*.gnome-settings-plugin
|
|
%{_libdir}/gnome-settings-daemon-2.0/*.gnome-settings-plugin
|
|
%{_libdir}/*.so.*
|
|
%{_libdir}/*.so.*
|
|
|
|
+%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -103,6 +137,13 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu May 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.5.1-1
|
|
|
|
+- new upstream release
|
|
|
|
+- specify required version for gnome-settings-daemon-devel >= 2.28.0
|
|
|
|
+- add patch0 to fix compile error
|
|
|
|
+- add Vendor and Distribution tags
|
|
|
|
+- add .desktop file
|
|
|
|
+
|
|
* Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.1-1
|
|
* Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.1-1
|
|
- initial build for Vine Linux
|
|
- initial build for Vine Linux
|
|
|
|
|