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

Revision 6679, 4.5 KB checked in by Takemikaduchi, 12 years ago (diff)

MATE-1.4.0

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