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