dockmanager-vl.spec 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Summary: dock-independent helper scripts
  2. Summary(ja): ドック用ヘルパースクリプト
  3. Name: dockmanager
  4. Version: 0.1.0
  5. Release: 2%{?_dist_release}
  6. Source0: %{name}-%{version}.tar.gz
  7. License: GPLv3
  8. Group: System Environment/Libraries
  9. URL: https://launchpad.net/dockmanager
  10. BuildRequires: glib2 >= 2.18.0
  11. BuildRequires: libdesktop-agnostic-devel >= 0.3.9
  12. BuildRequires: libdesktop-agnostic-bin >= 0.3.9
  13. BuildRequires: dbus-glib-devel
  14. Requires(pre): GConf2
  15. Requires(post): GConf2
  16. Requires(preun):GConf2
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Packager: kazutaka
  19. %description
  20. This package contains dock-independent helper scripts, which add functionality
  21. to any dock implementing the DockManager DBus interface specification.
  22. %description -l ja
  23. このパッケージには、DockManager DBus インターフェーススペックに準拠した
  24. ドックで利用できるヘルパースクリプトが含まれます。
  25. %prep
  26. %setup -q
  27. %build
  28. %configure --enable-shared \
  29. --disable-static \
  30. --disable-debug
  31. %{__make} %{?_smp_mflags}
  32. %install
  33. %{__rm} -rf $RPM_BUILD_ROOT
  34. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  35. # remove unnecessary files
  36. ##find $RPM_BUILD_ROOT/%{_libdir} -name "*.la" -exec %{__rm} -f "{}" \;
  37. ##find $RPM_BUILD_ROOT/%{_libdir} -name "*.a" -exec %{__rm} -f "{}" \;
  38. find $RPM_BUILD_ROOT/%{_prefix}/lib -name "*.la" -exec %{__rm} -f "{}" \;
  39. find $RPM_BUILD_ROOT/%{_prefix}/lib -name "*.a" -exec %{__rm} -f "{}" \;
  40. %clean
  41. %{__rm} -rf $RPM_BUILD_ROOT
  42. %pre
  43. # uninstall old schemas before update
  44. if [ "$1" -gt 1 ]; then
  45. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  46. gconftool-2 --makefile-uninstall-rule \
  47. %{_sysconfdir}/gconf/schemas/%{name}-daemon.schemas > /dev/null ||:
  48. fi
  49. %post
  50. # install schemas after install/update
  51. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  52. gconftool-2 --makefile-install-rule \
  53. %{_sysconfdir}/gconf/schemas/%{name}-daemon.schemas > /dev/null ||:
  54. %preun
  55. # uninstall schemas before clean remove
  56. if [ "$1" -eq 0 ]; then
  57. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  58. gconftool-2 --makefile-uninstall-rule \
  59. %{_sysconfdir}/gconf/schemas/%{name}-daemon.schemas > /dev/null;
  60. fi
  61. %files
  62. %defattr(-,root,root)
  63. %doc AUTHORS COPYING
  64. %{_sysconfdir}/gconf/schemas/%{name}-daemon.schemas
  65. %{_bindir}/%{name}-settings
  66. %{_libexecdir}/%{name}-daemon
  67. %{python_sitelib}/%{name}
  68. %{_datadir}/dbus-1/services/%{name}.service
  69. %{_datadir}/%{name}
  70. %changelog
  71. * Wed Apr 13 2011 Shu KONNO <owa@bg.wakwak.com> 0.1.0-2
  72. - fixed remove files path
  73. - fixed changelog typo
  74. * Sun Jan 23 2005 Kazutaka HARADA <kazutaka@vinelinux.org> 0.1.0-1
  75. - initial build for Vine Linux