source: projects/specs/trunk/lib/libm/libmate/libmate-vl.spec @ 6679

Revision 6679, 7.3 KB checked in by Takemikaduchi, 10 years ago (diff)

MATE-1.4.0

Line 
1Summary:        Common libraries for MATE
2Name:           libmate
3Version:        1.4.0
4Release:        1%{?_dist_release}
5Source0:        http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz
6License:        GPLv2
7Group:          System Environment/Libraries
8URL:            http://mate-desktop.org/
9
10BuildRequires:  mate-common
11BuildRequires:  libmatecomponent-devel
12BuildRequires:  mate-conf-devel
13BuildRequires:  mate-vfs-devel
14BuildRequires:  glib2-devel
15BuildRequires:  libcanberra-devel
16BuildRequires:  popt-devel
17BuildRequires:  gtk-doc
18BuildRequires:  autoconf
19BuildRequires:  automake
20
21Requires(post,pre,preun):       mate-conf
22
23BuildRoot:      %{_tmppath}/%{name}-%{version}-root
24
25# defualt settings
26Patch100:       libmate-1.4.0-default-settings-vine.patch
27
28Vendor:         Project Vine
29Distribution:   Vine Linux
30Packager:       Takemikaduchi
31
32
33%description
34This is the non-gui part of the library formerly known as
35mate-libs.
36
37
38%package        devel
39Summary:        Development tools for libmate
40Summary(ja):    libmate の開発環境
41Group:          Development/Libraries
42Requires:       %{name} = %{version}-%{release}
43Requires:       pkgconfig
44Requires:       mate-corba-devel
45Requires:       mate-conf-devel
46Requires:       mate-vfs-devel
47Requires:       libcanberra-devel
48
49%description    devel
50Header files and libraries for building a extension library for the
51libmate.
52
53
54%package        doc
55Summary:        Documentation for libmate
56Summary(ja):    libmate 用のドキュメント
57Group:          Documentation
58Requires:       %{name} = %{version}-%{release}
59BuildArch:      noarch
60
61%description    doc
62This package contains documentation for libmate.
63
64
65%prep
66%setup -q
67%patch100 -p1 -b .vine
68
69
70%build
71(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
72%configure \
73        --disable-static \
74       
75%{__make} %{?_smp_mflags}
76
77
78%install
79%{__rm} -rf ${RPM_BUILD_ROOT}
80
81export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
82%{__make} install DESTDIR=${RPM_BUILD_ROOT}
83unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
84
85find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
86find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
87
88%find_lang %{name}
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  desktop_mate_accessibility_keyboard.schemas \
100  desktop_mate_accessibility_startup.schemas \
101  desktop_mate_applications_at_mobility.schemas \
102  desktop_mate_applications_at_visual.schemas \
103  desktop_mate_applications_browser.schemas \
104  desktop_mate_applications_office.schemas \
105  desktop_mate_applications_terminal.schemas \
106  desktop_mate_applications_window_manager.schemas \
107  desktop_mate_background.schemas \
108  desktop_mate_file_views.schemas \
109  desktop_mate_interface.schemas \
110  desktop_mate_lockdown.schemas \
111  desktop_mate_peripherals_keyboard.schemas \
112  desktop_mate_peripherals_mouse.schemas \
113  desktop_mate_sound.schemas \
114  desktop_mate_thumbnail_cache.schemas \
115  desktop_mate_thumbnailers.schemas \
116  desktop_mate_typing_break.schemas"
117for S in $SCHEMAS; do
118  echo %{_sysconfdir}/mateconf/schemas/$S; done \
119  | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
120
121%pre
122if [ "$1" -gt 1 ]; then
123  export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
124
125  SCHEMAS=" \
126    desktop_mate_accessibility_keyboard.schemas \
127    desktop_mate_accessibility_startup.schemas \
128    desktop_mate_applications_at_mobility.schemas \
129    desktop_mate_applications_at_visual.schemas \
130    desktop_mate_applications_browser.schemas \
131    desktop_mate_applications_office.schemas \
132    desktop_mate_applications_terminal.schemas \
133    desktop_mate_applications_window_manager.schemas \
134    desktop_mate_background.schemas \
135    desktop_mate_file_views.schemas \
136    desktop_mate_interface.schemas \
137    desktop_mate_lockdown.schemas \
138    desktop_mate_peripherals_keyboard.schemas \
139    desktop_mate_peripherals_mouse.schemas \
140    desktop_mate_sound.schemas \
141    desktop_mate_thumbnail_cache.schemas \
142    desktop_mate_thumbnailers.schemas \
143    desktop_mate_typing_break.schemas"
144  for S in $SCHEMAS; do
145    echo %{_sysconfdir}/mateconf/schemas/$S; done \
146    | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
147fi
148
149%preun
150if [ "$1" -eq 0 ]; then
151  export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
152
153  SCHEMAS=" \
154    desktop_mate_accessibility_keyboard.schemas \
155    desktop_mate_accessibility_startup.schemas \
156    desktop_mate_applications_at_mobility.schemas \
157    desktop_mate_applications_at_visual.schemas \
158    desktop_mate_applications_browser.schemas \
159    desktop_mate_applications_office.schemas \
160    desktop_mate_applications_terminal.schemas \
161    desktop_mate_applications_window_manager.schemas \
162    desktop_mate_background.schemas \
163    desktop_mate_file_views.schemas \
164    desktop_mate_interface.schemas \
165    desktop_mate_lockdown.schemas \
166    desktop_mate_peripherals_keyboard.schemas \
167    desktop_mate_peripherals_mouse.schemas \
168    desktop_mate_sound.schemas \
169    desktop_mate_thumbnail_cache.schemas \
170    desktop_mate_thumbnailers.schemas \
171    desktop_mate_typing_break.schemas"
172  for S in $SCHEMAS; do
173    echo %{_sysconfdir}/mateconf/schemas/$S; done \
174    | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
175fi
176
177%postun -p /sbin/ldconfig
178
179%files -f %{name}.lang
180%defattr(-,root,root,-)
181%doc COPYING.LIB ChangeLog NEWS README
182%{_sysconfdir}/mateconf/schemas/desktop_mate_accessibility_keyboard.schemas
183%{_sysconfdir}/mateconf/schemas/desktop_mate_accessibility_startup.schemas
184%{_sysconfdir}/mateconf/schemas/desktop_mate_applications_at_mobility.schemas
185%{_sysconfdir}/mateconf/schemas/desktop_mate_applications_at_visual.schemas
186%{_sysconfdir}/mateconf/schemas/desktop_mate_applications_browser.schemas
187%{_sysconfdir}/mateconf/schemas/desktop_mate_applications_office.schemas
188%{_sysconfdir}/mateconf/schemas/desktop_mate_applications_terminal.schemas
189%{_sysconfdir}/mateconf/schemas/desktop_mate_applications_window_manager.schemas
190%{_sysconfdir}/mateconf/schemas/desktop_mate_background.schemas
191%{_sysconfdir}/mateconf/schemas/desktop_mate_file_views.schemas
192%{_sysconfdir}/mateconf/schemas/desktop_mate_interface.schemas
193%{_sysconfdir}/mateconf/schemas/desktop_mate_lockdown.schemas
194%{_sysconfdir}/mateconf/schemas/desktop_mate_peripherals_keyboard.schemas
195%{_sysconfdir}/mateconf/schemas/desktop_mate_peripherals_mouse.schemas
196%{_sysconfdir}/mateconf/schemas/desktop_mate_sound.schemas
197%{_sysconfdir}/mateconf/schemas/desktop_mate_thumbnail_cache.schemas
198%{_sysconfdir}/mateconf/schemas/desktop_mate_thumbnailers.schemas
199%{_sysconfdir}/mateconf/schemas/desktop_mate_typing_break.schemas
200%{_sysconfdir}/sound/events/gtk2-mate-events.soundlist
201%{_sysconfdir}/sound/events/mate.soundlist
202%{_bindir}/mate-open
203%{_libdir}/libmate-2.so.*
204%{_libdir}/matecomponent/monikers/libmoniker_extra_2.so
205%{_libdir}/matecomponent/servers/MATE_Moniker_std.server
206%{_datadir}/mate-background-properties/mate-default.xml
207%{_mandir}/man7/mate-options.7.gz
208
209%files devel
210%defattr(-,root,root,-)
211%{_includedir}/libmate-2.0
212%{_libdir}/libmate-2.so
213%{_libdir}/pkgconfig/libmate-2.0.pc
214
215
216%files doc
217%defattr(-,root,root,-)
218%{_datadir}/gtk-doc/html/libmate
219
220
221%changelog
222* Wed Aug 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
223- new upstream release
224- update Patch100 (libmate-1.4.0-default-settings-vine.patch)
225
226* Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
227- new upstream release
228
229* Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.2-1
230- initial build for Vine Linux
231
Note: See TracBrowser for help on using the repository browser.