]> git.pld-linux.org Git - packages/Togl.git/blobdiff - Togl.spec
- removed two lines with define
[packages/Togl.git] / Togl.spec
index 230b2a95376d1442925b8acef50ec97e65b32f07..95187945ce6fe93a2d1d5ddb166006eddcf17f63 100644 (file)
--- a/Togl.spec
+++ b/Togl.spec
@@ -2,63 +2,73 @@ Summary:      Togl - Tk OpenGL Widget
 Summary(pl):   Togl - Biblioteka widgetów dla Tk
 Name:          Togl
 Version:       1.6
-Release:       1
-Copyright:     Other
+Release:       2
+License:       Open Source (see LICENSE file for details)
 Group:         Libraries
-Group(pl):     Biblioteki
+#Source0:      http://prdownloads.sf.net/Togl/%{name}-%{version}.tar.gz
+#...but there is only 1.5
 Source0:       %{name}-%{version}beta2.tar.gz
 Source1:       %{name}-Makefile.PLD
 Patch0:                %{name}-tkInit.patch
-URL:           http://www.ssec.wisc.edu/~brianp/Togl.html
+URL:           http://togl.sf.net/
+Requires:      OpenGL
 BuildRequires: tk >= 8.0
-#Requires:     
+BuildRequires: tcl >= 8.0
+BuildRequires: XFree86-OpenGL-devel >= 4.0.1
 Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        _prefix /usr/X11R6
+%define        _noautoreqdep   libGL.so.1 libGLU.so.1
 
 %description
+Togl is a Tk widget for OpenGL rendering.
 
 %description -l pl
+Togl jest widgetem Tk do renderowania OpenGL.
 
 %package devel
 Summary:       Togl devel
-Summary(pl):   Togl devel
+Summary(pl):   Togl - czê¶æ dla programistów
 Group:         Development/Libraries
-Group(pl):     Programowanie/Biblioteki
+
 %description devel
+Header files and examples for Togl.
+
 %description devel -l pl
+Pliki nag³ówkowe i przyk³ady do Togl.
 
 %prep
 %setup -q
-
 %patch -p0
 
 %build
 install %{SOURCE1} .
-mv %{name}-Makefile.PLD Makefile
-%{__make} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+mv -f %{name}-Makefile.PLD Makefile
+%{__make} RPM_OPT_FLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
 #%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
 
-install -s libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
-cp double gears index overlay texture $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}
 
+gzip -9nf LICENSE README
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE
+%doc LICENSE.gz README.gz
 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
+%attr(644,root,root) %{_libdir}/togl.o
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.155248 seconds and 4 git commands to generate.