[12277] | 1 | %{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)} |
---|
| 2 | %{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}} |
---|
| 3 | %{!?tcl_sitelib: %global tcl_sitelib %{_datadir}/tcl%{tcl_version}} |
---|
| 4 | |
---|
[12236] | 5 | %define tcl_major 8.6 |
---|
| 6 | %define tk_major 8.6 |
---|
| 7 | %define thread_major 2.8 |
---|
[521] | 8 | %define tix_major 8.4 |
---|
[2747] | 9 | %define tixversion %{tix_major}.3 |
---|
| 10 | ## can't find all provides |
---|
| 11 | #define _use_internal_dependency_generator 0 |
---|
| 12 | |
---|
[521] | 13 | Summary: A Tcl/Tk development environment: tix |
---|
| 14 | Summary(ja): Tcl/Tk 開発環境: tix |
---|
| 15 | Name: tix |
---|
| 16 | Version: %{tixversion} |
---|
[12277] | 17 | Release: 5%{?_dist_release} |
---|
[521] | 18 | Group: Development/Languages |
---|
| 19 | License: BSD |
---|
[12236] | 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | |
---|
[521] | 23 | URL: http://tix.sourceforge.net/ |
---|
| 24 | Source0: Tix%{tixversion}-src.tar.gz |
---|
[12236] | 25 | # 0: Fixes BZ#81297 (soname of libraries) |
---|
| 26 | Patch0: tix-8.4.2-link.patch |
---|
| 27 | Patch1: tix-8.4.3-tcl86.patch |
---|
| 28 | Patch2: tix-8.4.3-covscan-fixes.patch |
---|
[9210] | 29 | |
---|
[12277] | 30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[12236] | 31 | BuildRequires: tcl-devel >= %{tcl_major} |
---|
| 32 | BuildRequires: tk-devel >= %{tk_major} |
---|
| 33 | BuildRequires: tcl-thread |
---|
[2764] | 34 | BuildRequires: libX11-devel |
---|
[521] | 35 | Requires: tcl >= %{tcl_major} |
---|
| 36 | Requires: tk >= %{tk_major} |
---|
[12236] | 37 | Requires: tcl-thread |
---|
[521] | 38 | |
---|
[2747] | 39 | %description |
---|
[521] | 40 | Tix (Tk Interface Extension), an add-on for the Tk widget set, is an |
---|
| 41 | extensive set of over 40 widgets. In general, Tix widgets are more |
---|
| 42 | complex and more capable than the widgets provided in Tk. Tix widgets |
---|
| 43 | include a ComboBox, a Motif-style FileSelectBox, an MS Windows-style |
---|
| 44 | FileSelectBox, a PanedWindow, a NoteBook, a hierarchical list, a |
---|
| 45 | directory tree and a file manager. |
---|
| 46 | |
---|
| 47 | Install the tix package if you want to try out more complicated widgets |
---|
| 48 | for Tk. You'll also need to have the tcl and tk packages installed. |
---|
| 49 | |
---|
[2747] | 50 | %description -l ja |
---|
[521] | 51 | Tk ウィジェットセットのためのアドオンである、Tix (Tk Interface Extension) |
---|
| 52 | は 40 ウィジェットを超える拡張セットです。Tix ウィジェットの多くが、 |
---|
| 53 | Tk から供給されるウィジェットよりも高機能です。Tix ウィジェットは |
---|
| 54 | コンボボックス、Motif スタイルのファイルボックス、MS Windows スタイルの |
---|
| 55 | ファイルボックス、パネルウィンドウ、ノートブック、階層リスト、 |
---|
| 56 | ディレクトリツリー、ファイルマネージャを含んでいます。 |
---|
| 57 | |
---|
| 58 | Tk で、より複雑ななウィジェットを試したい時には、tix パッケージをインストール |
---|
| 59 | してください。tcl と tk のパッケージもインストールする必要があります。 |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | %prep |
---|
| 63 | %setup -q -n Tix%{tixversion} |
---|
[12236] | 64 | %patch0 -p1 -b .link |
---|
| 65 | %patch1 -p1 -b .tcl86 |
---|
| 66 | %patch2 -p1 -b .covscan-fixes |
---|
[521] | 67 | |
---|
[12277] | 68 | # Remove executable permission of images in html documentation |
---|
| 69 | chmod ugo-x docs/html/gif/tix/*.png docs/html/gif/tix/*.gif \ |
---|
| 70 | docs/html/gif/tix/*/*.gif |
---|
| 71 | |
---|
| 72 | # Fix end-of-line encoding |
---|
| 73 | sed -i 's/\r//' docs/Release-8.4.0.txt |
---|
| 74 | |
---|
[521] | 75 | %build |
---|
| 76 | # make the libraries reentrant |
---|
| 77 | RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_REENTRANT" |
---|
| 78 | %configure \ |
---|
[12277] | 79 | --libdir=%{tcl_sitearch} \ |
---|
[521] | 80 | --with-tcl=%{_libdir} \ |
---|
| 81 | --with-tk=%{_libdir} \ |
---|
| 82 | --enable-shared \ |
---|
[2747] | 83 | --disable-threads \ |
---|
| 84 | ; |
---|
[521] | 85 | |
---|
[12277] | 86 | make %{?_smp_mflags} all PKG_LIB_FILE=libTix.so |
---|
[521] | 87 | |
---|
| 88 | %install |
---|
| 89 | rm -rf ${RPM_BUILD_ROOT} |
---|
[12277] | 90 | make install DESTDIR=$RPM_BUILD_ROOT PKG_LIB_FILE=libTix.so |
---|
[521] | 91 | |
---|
[12277] | 92 | # move shared lib to tcl sitearch |
---|
| 93 | mv $RPM_BUILD_ROOT%{tcl_sitearch}/Tix%{version}/libTix.so \ |
---|
| 94 | $RPM_BUILD_ROOT%{tcl_sitearch}/ |
---|
[521] | 95 | |
---|
[12277] | 96 | # make links |
---|
| 97 | ln -sf ../libTix.so \ |
---|
| 98 | $RPM_BUILD_ROOT%{tcl_sitearch}/Tix%{version}/libTix.so |
---|
| 99 | ln -sf tcl%{tcl_version}/Tix%{version}/libTix.so $RPM_BUILD_ROOT%{_libdir}/libTix.so |
---|
| 100 | ln -sf tcl%{tcl_version}/Tix%{version}/libTix.so $RPM_BUILD_ROOT%{_libdir}/libtix.so |
---|
| 101 | |
---|
[521] | 102 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
| 103 | install -d $RPM_BUILD_ROOT%{_mandir}/mann |
---|
| 104 | install -m 644 man/tixwish.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
| 105 | install -m 644 man/*.n $RPM_BUILD_ROOT%{_mandir}/mann |
---|
| 106 | |
---|
| 107 | install -d $RPM_BUILD_ROOT%{_includedir} |
---|
| 108 | install -m 0644 generic/tix.h $RPM_BUILD_ROOT%{_includedir}/tix.h |
---|
| 109 | |
---|
| 110 | ## others |
---|
| 111 | SHAREDDIR=$RPM_BUILD_ROOT%{_datadir}/tix-%{version} |
---|
| 112 | install -d $SHAREDDIR/demos/bitmaps |
---|
| 113 | install -d $SHAREDDIR/demos/samples |
---|
| 114 | install -m 755 demos/widget $SHAREDDIR/demos |
---|
| 115 | install -m 644 demos/{*.tcl,tclIndex} $SHAREDDIR/demos |
---|
| 116 | install -m 644 demos/bitmaps/* $SHAREDDIR/demos/bitmaps |
---|
| 117 | install -m 644 demos/samples/* $SHAREDDIR/demos/samples |
---|
| 118 | cp -a tests $SHAREDDIR |
---|
| 119 | |
---|
| 120 | |
---|
[2747] | 121 | %post -p /sbin/ldconfig |
---|
| 122 | %postun -p /sbin/ldconfig |
---|
[521] | 123 | %clean |
---|
| 124 | rm -rf $RPM_BUILD_ROOT |
---|
| 125 | |
---|
[2747] | 126 | %files |
---|
[521] | 127 | %defattr(-,root,root,-) |
---|
[12277] | 128 | %{tcl_sitearch}/libTix.so |
---|
| 129 | %{tcl_sitearch}/Tix%{version} |
---|
[2747] | 130 | %{_datadir}/tix-%{tixversion} |
---|
[521] | 131 | %{_mandir}/man1/tixwish.1.gz |
---|
[12277] | 132 | %{_libdir}/libtix.so |
---|
| 133 | %{_libdir}/libTix.so |
---|
[521] | 134 | %{_includedir}/*.h |
---|
[12277] | 135 | %{_mandir}/mann/*.n.gz |
---|
[2747] | 136 | %doc ChangeLog README.txt man/html man/index.html |
---|
[521] | 137 | |
---|
| 138 | |
---|
| 139 | %changelog |
---|
[12277] | 140 | * Tue Oct 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.4.3-5 |
---|
| 141 | - moved .so to fix warnings of ldconfig. |
---|
| 142 | |
---|
[12236] | 143 | * Fri Oct 04 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.4.3-4 |
---|
| 144 | - rebuilt with tcl/tk-8.6.9. |
---|
| 145 | - dropped all patches. |
---|
| 146 | - imported Patch0-2 from rawhide. |
---|
| 147 | |
---|
[9210] | 148 | * Wed Dec 31 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 8.4.3-3 |
---|
| 149 | - rebuilt with tcl/tk 8.5.15 and thread 2.7.1 |
---|
| 150 | |
---|
[2764] | 151 | * Thu Feb 24 2011 Shu KONNO <owa@bg.wakwak.com> 8.4.3-2 |
---|
| 152 | - added BR: libX11-devel |
---|
| 153 | |
---|
[2747] | 154 | * Tue Feb 22 2011 Shu KONNO <owa@bg.wakwak.com> 8.4.3-1 |
---|
| 155 | - updated tix to 8.4.3 |
---|
| 156 | - dropt tix-8.1.4-perf.patch |
---|
| 157 | - dropt tix-8.2.0b1-dirtree.patch |
---|
| 158 | - added "cp -p libTix8.4.3.so libtix8.4.so" |
---|
| 159 | - rebuilt with file-5.05-2 |
---|
| 160 | |
---|
[1262] | 161 | * Tue Jun 29 2010 Shu KONNO <owa@bg.wakwak.com> 8.4.2-2 |
---|
| 162 | - rebuilt with tcl/tk-8.4.19-2 |
---|
| 163 | |
---|
[521] | 164 | * Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 8.4.2-1vl5 |
---|
| 165 | - applied new versioning policy |
---|
| 166 | |
---|
| 167 | * Sun Feb 17 2008 Shu KONNO <owa@bg.wakwak.com> 8.4.2-0vl3 |
---|
| 168 | - rebuild with tcl/tk-8.4.18 |
---|
| 169 | |
---|
| 170 | * Tue Oct 09 2007 Shu KONNO <owa@bg.wakwak.com> 8.4.2-0vl2 |
---|
| 171 | - rebuild with tcl/tk-8.4.16 |
---|
| 172 | |
---|
| 173 | * Wed Jun 13 2007 Shu KONNO <owa@bg.wakwak.com> 8.4.2-0vl1 |
---|
| 174 | - updated tix to 8.4.2 |
---|
| 175 | - rebuilt with new toolchain |
---|
| 176 | |
---|
| 177 | * Sat Jan 28 2006 Shu KONNO <owa@bg.wakwak.com> 8.2.0-0vl5 |
---|
| 178 | - rebuild for tcl/tk-8.4.12, and x86_64 architecture support |
---|
| 179 | |
---|
| 180 | * Fri Sep 09 2005 Shu KONNO <owa@bg.wakwak.com> 8.2.0-0vl4 |
---|
| 181 | - changed url to http://tix.sourceforge.net/download.shtml |
---|
| 182 | - rebuild for tcl/tk-8.4.11 |
---|
| 183 | |
---|
| 184 | * Wed Jun 30 2004 Shu KONNO <owa@bg.wakwak.com> 8.2.0-0vl3 |
---|
| 185 | - rebuild for tcl/tk-8.4.6 |
---|
| 186 | |
---|
| 187 | * Mon Jan 12 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 8.2.0-0vl2 |
---|
| 188 | - rebuild for tcl/tk-8.4.5 |
---|
| 189 | |
---|
| 190 | * Mon Mar 31 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 8.2.0-0vl1 |
---|
| 191 | - update based on BitWalk's tcltk-8.4.2-83bw |
---|
| 192 | |
---|
| 193 | * Thu Nov 15 2001 Kazuhusa TAKEI <takei@linux.or.jp> 8.0.5_jp-10vl3 |
---|
| 194 | - splite source package |
---|
| 195 | |
---|
| 196 | * Sun Jul 15 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.5_jp-10vl2 |
---|
| 197 | - expand some macros.. (FIXME) |
---|
| 198 | |
---|
| 199 | * Sat Jul 14 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 8.0.5_jp-10vl1 |
---|
| 200 | - use %configure macros |
---|
| 201 | - add Patch 47,50 |
---|
| 202 | |
---|
| 203 | * Thu May 31 2001 <sagami@vinelinux.org> |
---|
| 204 | - 8.0.5_jp-10 |
---|
| 205 | - unexpand old %%{configure}, new one causes build failure |
---|
| 206 | - fixed missing libtkx.so libtclx.so symlink in /usr/lib |
---|
| 207 | - install manpages into %%{_mandir} and mode 644 |
---|
| 208 | |
---|
| 209 | * Wed Jul 19 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 210 | - 8.0.5_jp-9 |
---|
| 211 | - modified %install section to handle compressed man pages |
---|
| 212 | - fixed /usr/lib/tk8.0jp/demos.jp/images symlink |
---|
| 213 | |
---|
| 214 | * Sun Jul 2 2000 Daisuke SUZUKI <daisuke@linux.or.jp> |
---|
| 215 | - changed default fonts |
---|
| 216 | |
---|
| 217 | * Tue Jan 25 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 218 | - added defattr |
---|
| 219 | |
---|
| 220 | * Mon Jan 24 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 221 | - added some symlinks, such as libtcl8.0.so. |
---|
| 222 | - obsoletes version number using _jp, now 8.0.5-31vl1 |
---|
| 223 | |
---|
| 224 | * Wed Jan 5 2000 Norihito Ohmori <nono@vinelinux.org> |
---|
| 225 | - Apply Tcl/Tk 8.0 Japanese Patch 1.7 |
---|
| 226 | |
---|
| 227 | * Tue Nov 30 1999 Jakub Jelinek <jakub@redhat.com> |
---|
| 228 | - fix tclX symlinks. |
---|
| 229 | - compile on systems where SIGPWR == SIGLOST. |
---|
| 230 | |
---|
| 231 | * Sat May 1 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 232 | - update tcl/tk to 8.0.5. |
---|
| 233 | - avoid "containing" in Tix (#2332). |
---|
| 234 | |
---|
| 235 | * Thu Apr 8 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 236 | - use /usr/bin/write in kibitz (#1320). |
---|
| 237 | - use cirrus.sprl.umich.edu in weather (#1926). |
---|
| 238 | |
---|
| 239 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 240 | - auto rebuild in the new build environment (release 28) |
---|
| 241 | |
---|
| 242 | * Mon Mar 08 1999 Preston Brown <pbrown@redhat.com> |
---|
| 243 | - whoops, exec-prefix for itcl was set to '/foo', changed to '/usr'. |
---|
| 244 | |
---|
| 245 | * Tue Feb 16 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 246 | - expect does unaligned access on alpha (#989) |
---|
| 247 | - upgrade tcl/tk/tclX to 8.0.4 |
---|
| 248 | - upgrade expect to 5.28. |
---|
| 249 | - add itcl 3.0.1 |
---|
| 250 | |
---|
| 251 | * Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 252 | - call libtoolize to allow building on the arm |
---|
| 253 | - build for glibc 2.1 |
---|
| 254 | - strip binaries |
---|
| 255 | |
---|
| 256 | * Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 257 | - update tcl/tk/tclX to 8.0.3, expect is updated also. |
---|
| 258 | |
---|
| 259 | * Mon Jun 29 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 260 | - expect: mkpasswd needs delay before sending password (problem #576) |
---|
| 261 | |
---|
| 262 | * Thu May 07 1998 Prospector System <bugs@redhat.com> |
---|
| 263 | - translations modified for de, fr, tr |
---|
| 264 | |
---|
| 265 | * Sat May 02 1998 Cristian Gafton <gafton@redhat.com> |
---|
| 266 | - fixed expect binaries exec permissions |
---|
| 267 | |
---|
| 268 | * Thu Apr 09 1998 Erik Troan <ewt@redhat.com> |
---|
| 269 | - updated to Tix 4.1.0.006 |
---|
| 270 | - updated version numbers of tcl/tk to relflect includsion of p2 |
---|
| 271 | |
---|
| 272 | * Wed Mar 25 1998 Cristian Gafton <gafton@redhat.com> |
---|
| 273 | - updated tcl/tk to patch level 2 |
---|
| 274 | - updated tclX to 8.0.2 |
---|
| 275 | |
---|
| 276 | * Thu Oct 30 1997 Otto Hammersmith <otto@redhat.com> |
---|
| 277 | - fixed filelist for tix... replacing path to the expect binary in scripts |
---|
| 278 | was leaving junk files around. |
---|
| 279 | |
---|
| 280 | * Wed Oct 22 1997 Otto Hammersmith <otto@redhat.com> |
---|
| 281 | - added patch to remove libieee test in configure.in for tcl and tk. |
---|
| 282 | Shoudln't be needed anymore for glibc systems, but this isn't the "proper" |
---|
| 283 | solution for all systems |
---|
| 284 | - fixed src urls |
---|
| 285 | |
---|
| 286 | * Mon Oct 06 1997 Erik Troan <ewt@redhat.com> |
---|
| 287 | - removed version numbers from descriptions |
---|
| 288 | |
---|
| 289 | * Mon Sep 22 1997 Erik Troan <ewt@redhat.com> |
---|
| 290 | - updated to tcl/tk 8.0 and related versions of packages |
---|
| 291 | |
---|
| 292 | * Tue Jun 17 1997 Erik Troan <ewt@redhat.com> |
---|
| 293 | - built against glibc |
---|
| 294 | - fixed dangling tclx/tkx symlinks |
---|