3 %bcond_with tests # build with tests
4 %bcond_without tests # build without tests
12 Group: Applications/CAD
13 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
14 # Source0-md5: bb4c5fd83ae1dd1b5dd84384f7894fc8
17 #Patch0: %{name}-DESTDIR.patch
18 URL: htp://brlcad.sourceforge.net/
20 #BuildRequires: autoconf
21 #BuildRequires: automake
22 #BuildRequires: intltool
23 #BuildRequires: libtool
24 BuildRequires: tcl-devel
25 BuildRequires: tk-devel
26 Buildrequires: itcl-devel
27 BuildRequires: itk-devel
29 BuildRequires: SDL-devel
31 #Requires(pre,post): -
40 #ExclusiveArch: %{ix86}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 The BRL-CAD package is a powerful Constructive Solid Geometry (CSG) solid modeling system with over 20 years development and production use by the U.S. military. BRL-CAD includes an interactive geometry editor, parallel ray-tracing support for rendering and geometric analysis, path-tracing for realistic image synthesis, network distributed framebuffer support, image-processing and signal-processing tools. The entire package is distributed in source code form.
53 %description subpackage
55 %description subpackage -l pl
64 %description libs -l pl
68 Summary: Header files for ... library
69 Summary(pl): Pliki nag³ówkowe biblioteki ...
70 Group: Development/Libraries
71 #Requires: %{name} = %{version}-%{release}
74 This is the package containing the header files for ... library.
76 %description devel -l pl
77 Ten pakiet zawiera pliki nag³ówkowe biblioteki ....
80 Summary: Static ... library
81 Summary(pl): Statyczna biblioteka ...
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{version}-%{release}
88 %description static -l pl
89 Statyczna biblioteka ....
95 #%%setup -q -n %{name}-%{version}.orig -a 1
99 #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
101 # remove CVS control files
102 #find -name CVS -print0 | xargs -0 rm -rf
105 # if ac/am/* rebuilding is necessary, do it in this order and add
106 # appropriate BuildRequires
114 #cp -f /usr/share/automake/config.sub .
119 # CFLAGS="%{rpmcflags}" \
120 # LDFLAGS="%{rpmldflags}"
123 rm -rf $RPM_BUILD_ROOT
124 # create directories if necessary
125 #install -d $RPM_BUILD_ROOT
126 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
129 DESTDIR=$RPM_BUILD_ROOT
132 rm -rf $RPM_BUILD_ROOT
143 %post -p /sbin/ldconfig
144 %postun -p /sbin/ldconfig
147 %if %{with initscript}
149 /sbin/chkconfig --add %{name}
150 %service %{name} restart
153 if [ "$1" = "0" ]; then
154 %service -q %{name} stop
155 /sbin/chkconfig --del %{name}
160 %defattr(644,root,root,755)
161 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
164 # if _sysconfdir != /etc:
165 #%%dir %{_sysconfdir}
166 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
167 %attr(755,root,root) %{_bindir}/*
171 # initscript and its config
172 %if %{with initscript}
173 %attr(754,root,root) /etc/rc.d/init.d/%{name}
174 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
177 #%{_examplesdir}/%{name}-%{version}
179 %if %{with subpackage}
181 %defattr(644,root,root,755)
183 #%{_datadir}/%{name}-ext