gpointing-device-settings-vl.spec 2.8 KB

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