3 %bcond_with tests # build with tests
4 %bcond_without tests # build without tests
16 Source0: http://dl.sourceforge.net/%{name}/%{name}%{version}.src.tar.gz
20 Patch0: %{name}-Makefile.shared.patch
22 BuildRequires: OpenGL-devel
23 BuildRequires: tcl-devel
24 BuildRequires: tk-devel
25 BuildRequires: OpenGL-devel
27 #Requires(pre,post): -
35 #ExclusiveArch: %{ix86}
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 #%description subpackage
49 #%description subpackage -l pl
57 make -f Makefile.shared
60 rm -rf $RPM_BUILD_ROOT
61 # create directories if necessary
62 #install -d $RPM_BUILD_ROOT
65 # DESTDIR=$RPM_BUILD_ROOT
68 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
82 # if _sysconfdir != /etc:
84 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
86 %attr(755,root,root) %{_bindir}/*
90 # initscript and its config
91 %attr(754,root,root) /etc/rc.d/init.d/%{name}
92 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
95 #%defattr(644,root,root,755)
97 #%{_datadir}/%{name}-ext