1 | Summary: An powerfull text editor for MATE |
---|
2 | Name: mate-text-editor |
---|
3 | Version: 1.2.0 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | Source0: %{name}-%{version}.tar.xz |
---|
6 | License: GPLv2 |
---|
7 | Group: Applications/Editors |
---|
8 | URL: https://matsusoft.com.ar/projects/mate/ |
---|
9 | |
---|
10 | BuildRequires: mate-common |
---|
11 | BuildRequires: mate-doc-utils |
---|
12 | BuildRequires: mate-conf-devel |
---|
13 | BuildRequires: gtk2-devel |
---|
14 | BuildRequires: gtksourceview2-devel |
---|
15 | BuildRequires: libsoup-devel |
---|
16 | BuildRequires: enchant-devel |
---|
17 | BuildRequires: libSM-devel |
---|
18 | BuildRequires: iso-codes |
---|
19 | BuildRequires: gtk-doc |
---|
20 | BuildRequires: autoconf |
---|
21 | BuildRequires: automake |
---|
22 | |
---|
23 | Requires(post,pre,preun): mate-conf |
---|
24 | Requires(post,postun): desktop-file-utils |
---|
25 | |
---|
26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
27 | |
---|
28 | Patch0: mate-text-editor-1.2.0-configure.patch |
---|
29 | |
---|
30 | Vendor: Project Vine |
---|
31 | Distribution: Vine Linux |
---|
32 | Packager: Takemikaduchi |
---|
33 | |
---|
34 | |
---|
35 | %description |
---|
36 | pluma is part of MATE and uses the latest GTK+ and MATE libraries. |
---|
37 | Complete MATE integration is featured, with support for Drag and Drop (DnD) |
---|
38 | from Caja (the MATE file manager), the use of the MATE help system, |
---|
39 | the MATE Virtual File System and the MATE print framework. |
---|
40 | |
---|
41 | |
---|
42 | %package devel |
---|
43 | Summary: Development tools for mate-text-editor |
---|
44 | Summary(ja): mate-text-editor の開発環境 |
---|
45 | Group: Development/Libraries |
---|
46 | Requires: %{name} = %{version}-%{release} |
---|
47 | Requires: pkgconfig |
---|
48 | Requires: mate-corba-devel |
---|
49 | |
---|
50 | %description devel |
---|
51 | Header files and libraries for building a extension library for the |
---|
52 | mate-text-editor. |
---|
53 | |
---|
54 | |
---|
55 | %prep |
---|
56 | %setup -q |
---|
57 | %patch0 -p1 |
---|
58 | |
---|
59 | |
---|
60 | %build |
---|
61 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
62 | %configure \ |
---|
63 | --libexecdir=%{_libexecdir}/mate \ |
---|
64 | --disable-static \ |
---|
65 | --disable-scrollkeeper |
---|
66 | |
---|
67 | %{__make} %{?_smp_mflags} |
---|
68 | |
---|
69 | |
---|
70 | %install |
---|
71 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
72 | |
---|
73 | export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
74 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
75 | unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
76 | |
---|
77 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
78 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
79 | |
---|
80 | %find_lang pluma |
---|
81 | |
---|
82 | |
---|
83 | %clean |
---|
84 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
85 | |
---|
86 | %post |
---|
87 | /sbin/ldconfig |
---|
88 | |
---|
89 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
90 | |
---|
91 | SCHEMAS=" \ |
---|
92 | pluma-file-browser.schemas \ |
---|
93 | pluma.schemas" |
---|
94 | for S in $SCHEMAS; do |
---|
95 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
96 | | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: |
---|
97 | |
---|
98 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
99 | |
---|
100 | %pre |
---|
101 | if [ "$1" -gt 1 ]; then |
---|
102 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
103 | |
---|
104 | SCHEMAS=" \ |
---|
105 | pluma-file-browser.schemas \ |
---|
106 | pluma.schemas" |
---|
107 | for S in $SCHEMAS; do |
---|
108 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
109 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
110 | fi |
---|
111 | |
---|
112 | %preun |
---|
113 | if [ "$1" -eq 0 ]; then |
---|
114 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
115 | |
---|
116 | SCHEMAS=" \ |
---|
117 | pluma-file-browser.schemas \ |
---|
118 | pluma.schemas" |
---|
119 | for S in $SCHEMAS; do |
---|
120 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
121 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
122 | fi |
---|
123 | |
---|
124 | %postun |
---|
125 | /sbin/ldconfig |
---|
126 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
127 | |
---|
128 | |
---|
129 | %files -f pluma.lang |
---|
130 | %defattr(-,root,root,-) |
---|
131 | %doc COPYING ChangeLog NEWS README |
---|
132 | %{_sysconfdir}/mateconf/schemas/pluma-file-browser.schemas |
---|
133 | %{_sysconfdir}/mateconf/schemas/pluma.schemas |
---|
134 | %{_bindir}/mate-text-editor |
---|
135 | %{_bindir}/pluma |
---|
136 | %{_libdir}/pluma/plugin-loaders/libcloader.so |
---|
137 | %{_libdir}/pluma/plugins |
---|
138 | %{_libexecdir}/mate/pluma/pluma-bugreport.sh |
---|
139 | %{_datadir}/applications/pluma.desktop |
---|
140 | %{_datadir}/mate/help/pluma |
---|
141 | %{_datadir}/omf/pluma |
---|
142 | %{_datadir}/pluma |
---|
143 | %{_mandir}/man1/pluma.1.gz |
---|
144 | |
---|
145 | %files devel |
---|
146 | %defattr(-,root,root,-) |
---|
147 | %{_includedir}/pluma |
---|
148 | %{_libdir}/pkgconfig/pluma.pc |
---|
149 | |
---|
150 | |
---|
151 | %changelog |
---|
152 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1 |
---|
153 | - new upstream release |
---|
154 | - add Patch0 (mate-text-editor-1.2.0-configure.patch) |
---|
155 | |
---|
156 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
157 | - change category |
---|
158 | |
---|
159 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
160 | - initial build for Vine Linux |
---|
161 | |
---|