[521] | 1 | %define helpdir glade3 |
---|
| 2 | |
---|
[5038] | 3 | Version: 3.10.2 |
---|
[4616] | 4 | Release: 1%{?_dist_release} |
---|
[521] | 5 | |
---|
| 6 | Summary: A user interface builder for the GTK+ toolkit and GNOME |
---|
| 7 | Summary(ja): GTK+ツールキット及びGNOME向けのユーザインターフェースビルダー |
---|
| 8 | Name: glade3 |
---|
| 9 | License: GPL |
---|
| 10 | Group: Applications/Development |
---|
| 11 | URL: http://glade.gnome.org/ |
---|
[5038] | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glade/3.10/glade-%{version}.tar.xz |
---|
[521] | 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[4616] | 15 | BuildRequires: gtk3-devel >= 3.0.2 |
---|
[521] | 16 | BuildRequires: libxml2-devel >= 2.4.0 |
---|
[4616] | 17 | #BuildRequires: libbonoboui-devel |
---|
| 18 | #BuildRequires: libgnomeui-devel |
---|
[1897] | 19 | BuildRequires: libSM-devel |
---|
[521] | 20 | BuildRequires: gnome-doc-utils |
---|
| 21 | |
---|
[4616] | 22 | Requires: gtk3 >= 3.0.2 |
---|
[521] | 23 | Requires: libxml2 >= 2.4.0 |
---|
[4616] | 24 | #Requires: libbonoboui |
---|
| 25 | #Requires: libgnomeui |
---|
[521] | 26 | Requires: devhelp |
---|
[4616] | 27 | Requires(pre): scrollkeeper |
---|
[521] | 28 | |
---|
| 29 | Vendor: Project Vine |
---|
| 30 | Distribution: Vine Linux |
---|
| 31 | |
---|
| 32 | %description |
---|
| 33 | Glade is a RAD tool to enable quick & easy development of user interfaces |
---|
| 34 | for the Gtk+ toolkit and the GNOME desktop environment. |
---|
| 35 | The user interfaces designed in Glade are stored in XML format, |
---|
| 36 | enabling easy integration with external tools. |
---|
| 37 | In particular libglade can load the XML files and create the interfaces |
---|
| 38 | at runtime. The DTD for the XML files is included with libglade, and is |
---|
| 39 | also at http://glade.gnome.org/glade-2.0.dtd. |
---|
| 40 | Other tools are available which can turn the XML files into source code |
---|
| 41 | in languages such as C++, Perl and Python. |
---|
| 42 | |
---|
| 43 | %description -l ja |
---|
| 44 | Gladeは、GTK+ツールキットやGNOME向けのユーザインターフェースを素早く簡単に開 |
---|
| 45 | 発する事が可能なRADツールです。 |
---|
| 46 | Gladeでデザインされたユーザインターフェースは外部ツールに用意に統合可能なXML |
---|
| 47 | フォーマットで保存されます。 |
---|
| 48 | 特にlibgladeは、XMLファイルを読み込み、ランタイムにインターフェースを生成す |
---|
| 49 | ることが出来ます。このXMLファイルのDTDは、libgladeに含まれており、 |
---|
| 50 | http://glade.gnome.org/glade-2.0.dtdにもあります。 |
---|
| 51 | このXMLファイルをC++、PerlやPythonといった言語のソースコードに変換する他のツー |
---|
| 52 | ルも利用可能です。 |
---|
| 53 | |
---|
| 54 | %package devel |
---|
| 55 | Summary: the Glade UI Builder core library |
---|
| 56 | Group: Development/Libraries |
---|
| 57 | Requires: %{name} = %{version}-%{release} |
---|
| 58 | Requires: gtk2-devel >= 2.12.0 |
---|
| 59 | Requires: libxml2-devel >= 2.4.0 |
---|
| 60 | Requires: libbonoboui-devel |
---|
| 61 | Requires: libgnomeui-devel |
---|
| 62 | |
---|
| 63 | %description devel |
---|
| 64 | the Glade UI Builder core library to integrate Glade into your application |
---|
| 65 | and integrate your custom (GTK+ based) widget toolkit into the Glade |
---|
| 66 | UI Builder. |
---|
| 67 | |
---|
| 68 | %prep |
---|
[4616] | 69 | %setup -q -n glade-%{version} |
---|
[521] | 70 | pushd src |
---|
| 71 | ## change gnome help directory |
---|
| 72 | mv glade-window.c glade-window.c.orig |
---|
| 73 | sed "s|GLADE_GNOMEHELPDIR, \"glade\"|GLADE_GNOMEHELPDIR, \"%{helpdir}\"|" \ |
---|
| 74 | glade-window.c.orig > glade-window.c |
---|
| 75 | popd |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | %build |
---|
| 79 | %configure --disable-scrollkeeper --disable-static |
---|
| 80 | %__make %{_smp_mflags} |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %install |
---|
| 84 | rm -rf $RPM_BUILD_ROOT |
---|
| 85 | %makeinstall |
---|
| 86 | |
---|
| 87 | #desktop-file-install \ |
---|
| 88 | # --vendor gnome \ |
---|
| 89 | # --delete-original \ |
---|
| 90 | # --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 91 | # $RPM_BUILD_ROOT%{_datadir}/applications/* |
---|
| 92 | |
---|
| 93 | rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache |
---|
[4616] | 94 | rm -f $RPM_BUILD_ROOT%{_libdir}/glade/modules/*.la |
---|
| 95 | rm -f $RPM_BUILD_ROOT%{_libdir}/libgladeui-2.la |
---|
[521] | 96 | |
---|
| 97 | ## change gnome help directory |
---|
| 98 | mv $RPM_BUILD_ROOT%{_datadir}/gnome/help/glade $RPM_BUILD_ROOT%{_datadir}/gnome/help/%{helpdir} |
---|
| 99 | mv $RPM_BUILD_ROOT%{_datadir}/omf/glade $RPM_BUILD_ROOT%{_datadir}/omf/%{helpdir} |
---|
| 100 | pushd $RPM_BUILD_ROOT%{_datadir}/omf/%{helpdir} |
---|
| 101 | files=`ls *.omf` |
---|
| 102 | for omf in $files; do |
---|
| 103 | mv $omf $omf.orig |
---|
| 104 | sed "s|help/glade/|help/%{helpdir}/|g" $omf.orig > $omf |
---|
| 105 | rm $omf.orig |
---|
| 106 | done |
---|
| 107 | popd |
---|
| 108 | |
---|
[4616] | 109 | %find_lang glade |
---|
[521] | 110 | |
---|
| 111 | %clean |
---|
| 112 | rm -rf $RPM_BUILD_ROOT |
---|
| 113 | |
---|
| 114 | %post |
---|
| 115 | /sbin/ldconfig |
---|
| 116 | scrollkeeper-update -p /var/lib/scrollkeeper -o %{_datadir}/omf/%{helpdir} |
---|
| 117 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 118 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 119 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
| 120 | fi |
---|
| 121 | |
---|
| 122 | %postun |
---|
| 123 | /sbin/ldconfig |
---|
| 124 | scrollkeeper-update > /dev/null 2>&1 || : |
---|
| 125 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 126 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 127 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
| 128 | fi |
---|
| 129 | |
---|
[4616] | 130 | %files -f glade.lang |
---|
[521] | 131 | %defattr(-,root,root) |
---|
[4616] | 132 | %{_bindir}/glade |
---|
| 133 | %{_bindir}/glade-previewer |
---|
| 134 | %{_libdir}/libgladeui-2.so.* |
---|
| 135 | %{_libdir}/glade/modules/*.so |
---|
| 136 | %{_libdir}/girepository-1.0/Gladeui-2.0.typelib |
---|
| 137 | %{_datadir}/applications/glade.desktop |
---|
| 138 | %{_datadir}/glade |
---|
[521] | 139 | %{_datadir}/gnome/help/%{helpdir} |
---|
[4616] | 140 | %{_datadir}/icons/hicolor/*/apps/glade.png |
---|
[521] | 141 | %{_datadir}/omf/%{helpdir} |
---|
| 142 | |
---|
| 143 | %files devel |
---|
| 144 | %defattr(-,root,root) |
---|
[4616] | 145 | %{_includedir}/libgladeui-2.0/gladeui/* |
---|
[521] | 146 | %{_libdir}/pkgconfig/*.pc |
---|
[4616] | 147 | %{_libdir}/libgladeui-2.so |
---|
| 148 | %{_datadir}/gir-1.0/Gladeui-2.0.gir |
---|
[5038] | 149 | %{_datadir}/gtk-doc/html/gladeui-2 |
---|
[521] | 150 | |
---|
| 151 | %changelog |
---|
[5038] | 152 | * Sat Oct 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1 |
---|
| 153 | - new upstream release |
---|
| 154 | |
---|
[4616] | 155 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.0-1 |
---|
| 156 | - new upstream release |
---|
| 157 | - change BuildRequires: gtk3-devel instead of gtk2-devel |
---|
| 158 | - delete BuildRequires: libgnomeui-devel, libbonoboui-devel |
---|
| 159 | |
---|
[1897] | 160 | * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.6.7-4 |
---|
| 161 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 162 | - add BuildRequires: libSM-devel |
---|
| 163 | |
---|
[521] | 164 | * Fri Nov 06 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.6.7-3 |
---|
| 165 | - add gnome-doc-utils to BR |
---|
| 166 | - comment out desktop-file-install |
---|
| 167 | |
---|
| 168 | * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.6.7-2 |
---|
| 169 | - rebuild with gtk2-2.18.2 |
---|
| 170 | |
---|
| 171 | * Sat Aug 01 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.6.7-1 |
---|
| 172 | - new upstream release |
---|
| 173 | - care ld and icon cache |
---|
| 174 | - define helpdir |
---|
| 175 | |
---|
| 176 | * Sun May 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.6.3-1 |
---|
| 177 | - new upstream release |
---|
| 178 | - spec in utf-8 (fixed) |
---|
| 179 | |
---|
| 180 | * Fri May 01 2009 Shu KONNO <owa@bg.wakwak.com> 3.6.2-2 |
---|
| 181 | - spec in utf-8 |
---|
| 182 | |
---|
| 183 | * Sun Apr 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.6.2-1 |
---|
| 184 | - new upstream release |
---|
| 185 | |
---|
| 186 | * Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 3.5.2-1 |
---|
| 187 | - new upstream version. |
---|
| 188 | |
---|
| 189 | * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.4.5-1 |
---|
| 190 | - new upstream version. |
---|
| 191 | - update Requires. |
---|
| 192 | - update description. |
---|
| 193 | |
---|
| 194 | * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.4.1-2vl5 |
---|
| 195 | - use macro for release |
---|
| 196 | |
---|
| 197 | * Fri May 09 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.4.1-1vl5 |
---|
| 198 | - apply new virsioning policy. |
---|
| 199 | - remove *.la |
---|
| 200 | |
---|
| 201 | * Fri Jan 04 2008 Shu KONNO <owa@bg.wakwak.com> 3.4.1-0vl |
---|
| 202 | - new upstream version |
---|
| 203 | - added Requires: devhelp |
---|
| 204 | - added Prereq: scrollkeeper |
---|
| 205 | - added disable-scrollkeeper to configure |
---|
| 206 | - added scrollkeeper-update in %%post and %%postun sections |
---|
| 207 | - changed gnome help directory temporarily |
---|
| 208 | |
---|
| 209 | * Sun Dec 17 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.0.3-0vl |
---|
| 210 | - build for VineSeed |
---|
| 211 | |
---|