From 79bfff82690c9b3650f201410cf2f6c47aa94483 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 20 May 2003 14:47:16 +0000 Subject: [PATCH] - updated to 1.6 final, missing dir Changed files: Togl.spec -> 1.14 --- Togl.spec | 54 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/Togl.spec b/Togl.spec index 5ebc0dd..9fa180a 100644 --- a/Togl.spec +++ b/Togl.spec @@ -2,18 +2,15 @@ Summary: Togl - Tk OpenGL Widget Summary(pl): Togl - Biblioteka widgetów dla Tk Name: Togl Version: 1.6 -Release: 2 +Release: 3 License: Open Source (see LICENSE file for details) Group: Libraries -#Source0: http://dl.sourceforge.net/togl/%{name}-%{version}.tar.gz -Source0: %{name}-%{version}beta2.tar.gz -Source1: %{name}-Makefile.PLD -Patch0: %{name}-tkInit.patch +Source0: http://dl.sourceforge.net/togl/%{name}-%{version}.tar.gz URL: http://togl.sf.net/ +BuildRequires: OpenGL-devel +BuildRequires: tk >= 8.3 +BuildRequires: tcl >= 8.3 Requires: OpenGL -BuildRequires: tk >= 8.0 -BuildRequires: tcl >= 8.0 -BuildRequires: XFree86-OpenGL-devel >= 4.0.1 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreqdep libGL.so.1 libGLU.so.1 @@ -37,22 +34,27 @@ Pliki nag %prep %setup -q -%patch -p0 %build -install %{SOURCE1} . -mv -f %{name}-Makefile.PLD Makefile -%{__make} RPM_OPT_FLAGS="%{rpmcflags}" - +%{__make} \ + CC="%{__cc}" \ + COPTS="-c %{rpmcflags} -fPIC -DPC_LINUX %{?debug:-DDEBUG} -DUSE_TCL_STUBS -DUSE_TK_STUBS -DUSE_LOCAL_TK_H" \ + SHLINK="%{__cc} -shared" \ + LIBDIRS="\$(TCL_LIB) -L/usr/X11R6/lib" \ + TCL_VER="8.3" + %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}} -#%%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install +install -d $RPM_BUILD_ROOT{%{_libdir}/Togl-%{version},%{_includedir},%{_examplesdir}/%{name}-%{version}} + +install togl.so pkgIndex.tcl $RPM_BUILD_ROOT%{_libdir}/Togl-%{version} + +for f in double gears index overlay texture ; do + install ${f}.c ${f}.so ${f}.tcl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +done +# for texture +install ben.rgb tree2.rgba $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -install libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir} -install double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -install togl.o $RPM_BUILD_ROOT%{_libdir} install togl.h $RPM_BUILD_ROOT%{_includedir} %clean @@ -63,12 +65,16 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc LICENSE README -%attr(755,root,root) %{_libdir}/libtogl.so.1.3 -%attr(644,root,root) %{_libdir}/togl.o +%doc LICENSE Togl.html +%dir %{_libdir}/Togl-%{version} +%attr(755,root,root) %{_libdir}/Togl-%{version}/togl.so +%{_libdir}/Togl-%{version}/*.tcl %files devel %defattr(644,root,root,755) %attr(644,root,root) %{_includedir}/togl.h -%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c] -%attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c +%dir %{_examplesdir}/%{name}-%{version} +%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.so +%{_examplesdir}/%{name}-%{version}/*.c +%{_examplesdir}/%{name}-%{version}/*.tcl +%{_examplesdir}/%{name}-%{version}/*.rgb* -- 2.43.0