source: projects/specs/trunk/m/mate-notification-daemon/mate-notification-daemon-vl.spec @ 5311

Revision 5311, 4.0 KB checked in by Takemikaduchi, 12 years ago (diff)

NEW: MATE Desktop Environment
vala: new upstream release

Line 
1Summary:        Notification daemon for MATE
2Name:           mate-notification-daemon
3Version:        1.1.0
4Release:        1%{?_dist_release}
5Source0:        %{name}-%{version}.tar.xz
6License:        GPLv2
7Group:          System Environment/Libraries
8URL:            https://matsusoft.com.ar/projects/mate/
9
10BuildRequires:  mate-common
11BuildRequires:  mate-conf-devel
12BuildRequires:  libmatenotify-devel
13BuildRequires:  gtk2-devel
14BuildRequires:  dbus-devel
15BuildRequires:  dbus-glib-devel
16BuildRequires:  libcanberra-devel
17BuildRequires:  libwnck-devel
18BuildRequires:  gtk-doc
19BuildRequires:  autoconf
20BuildRequires:  automake
21
22Requires(post,pre,preun):       mate-conf
23Requires(post,postun):  desktop-file-utils
24
25BuildRoot:      %{_tmppath}/%{name}-%{version}-root
26
27Vendor:         Project Vine
28Distribution:   Vine Linux
29Packager:       Takemikaduchi
30
31
32%description
33
34
35%package        devel
36Summary:        Development tools for mate-notification-daemon
37Summary(ja):    mate-notification-daemon の開発環境
38Group:          Development/Libraries
39Requires:       %{name} = %{version}-%{release}
40Requires:       pkgconfig
41
42%description    devel
43Header files and libraries for building a extension library for the
44mate-notification-daemon.
45
46
47%package        doc
48Summary:        Documentation for mate-notification-daemon
49Summary(ja):    mate-notification-daemon 用のドキュメント
50Group:          Documentation
51Requires:       %{name} = %{version}-%{release}
52BuildArch:      noarch
53
54%description    doc
55This package contains documentation for mate-notification-daemon.
56
57
58%prep
59%setup -q
60
61
62%build
63(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
64%configure \
65        --libexecdir=%{_libexecdir}/mate \
66        --disable-static \
67        --disable-scrollkeeper
68
69%{__make} %{?_smp_mflags}
70
71
72%install
73%{__rm} -rf ${RPM_BUILD_ROOT}
74
75export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
76%{__make} install DESTDIR=${RPM_BUILD_ROOT}
77unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
78
79find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
80find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
81
82%find_lang %{name}
83
84
85%clean
86%{__rm} -rf ${RPM_BUILD_ROOT}
87
88%post
89/sbin/ldconfig
90
91export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
92
93SCHEMAS=" \
94  mate-notification-daemon.schemas"
95for S in $SCHEMAS; do
96  echo %{_sysconfdir}/mateconf/schemas/$S; done \
97  | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
98
99update-desktop-database %{_datadir}/applications >& /dev/null ||:
100touch --no-create %{_datadir}/icons/hicolor
101if [ -x /usr/bin/gtk-update-icon-cache ]; then
102  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
103fi
104
105%pre
106if [ "$1" -gt 1 ]; then
107  export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
108
109  SCHEMAS=" \
110    mate-notification-daemon.schemas"
111  for S in $SCHEMAS; do
112    echo %{_sysconfdir}/mateconf/schemas/$S; done \
113    | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
114fi
115
116%preun
117if [ "$1" -eq 0 ]; then
118  export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
119
120  SCHEMAS=" \
121    mate-notification-daemon.schemas"
122  for S in $SCHEMAS; do
123    echo %{_sysconfdir}/mateconf/schemas/$S; done \
124    | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
125fi
126
127%postun
128/sbin/ldconfig
129update-desktop-database %{_datadir}/applications >& /dev/null ||:
130touch --no-create %{_datadir}/icons/hicolor
131if [ -x /usr/bin/gtk-update-icon-cache ]; then
132  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
133fi
134
135
136%files -f %{name}.lang
137%defattr(-,root,root,-)
138%doc COPYING ChangeLog NEWS README
139%{_sysconfdir}/mateconf/schemas/mate-notification-daemon.schemas
140%{_bindir}/mate-notification-properties
141%{_libdir}/mate-notification-daemon/engines/libslider.so
142%{_libdir}/mate-notification-daemon/engines/libstandard.so
143%{_libexecdir}/mate/mate-notification-daemon
144%{_datadir}/applications/mate-notification-properties.desktop
145%{_datadir}/dbus-1/services/org.freedesktop.mate.Notifications.service
146%{_datadir}/icons/hicolor/*/*/*
147%{_datadir}/mate-notification-daemon/mate-notification-properties.ui
148
149
150%changelog
151* Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
152- initial build for Vine Linux
153
Note: See TracBrowser for help on using the repository browser.