gpointing-device-settings-vl.spec 4.1 KB

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