dockmanager-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Summary: dock-independent helper scripts
  2. Summary(ja): ドック用ヘルパースクリプト
  3. Name: dockmanager
  4. Version: 0.1.0
  5. Release: 3%{?_dist_release}
  6. License: GPLv3
  7. Group: System Environment/Daemons
  8. URL: https://launchpad.net/dockmanager
  9. Source0: %{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: dbus-glib-devel
  12. BuildRequires: glib2 >= 2.18.0
  13. BuildRequires: libdesktop-agnostic-devel >= 0.3.9
  14. BuildRequires: libdesktop-agnostic-bin >= 0.3.9
  15. Requires(pre): GConf2
  16. Requires(post): GConf2
  17. Requires(preun):GConf2
  18. Distribution: Vine Linux
  19. Vendor: Project Vine
  20. Packager: kazutaka
  21. %description
  22. This package contains dock-independent helper scripts, which add functionality
  23. to any dock implementing the DockManager DBus interface specification.
  24. %description -l ja
  25. このパッケージには、DockManager DBus インターフェーススペックに準拠した
  26. ドックで利用できるヘルパースクリプトが含まれます。
  27. %prep
  28. %setup -q
  29. %build
  30. %configure --enable-shared \
  31. --disable-static \
  32. --disable-debug
  33. %{__make} %{?_smp_mflags}
  34. %install
  35. %{__rm} -rf $RPM_BUILD_ROOT
  36. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  37. # remove unnecessary files
  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. * Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.1.0-3
  72. - rebuilt on current VineSeed
  73. * Wed Apr 13 2011 Shu KONNO <owa@bg.wakwak.com> 0.1.0-2
  74. - fixed remove files path
  75. - fixed changelog typo
  76. * Sun Jan 23 2005 Kazutaka HARADA <kazutaka@vinelinux.org> 0.1.0-1
  77. - initial build for Vine Linux