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/
21 BuildRequires: xorg-lib-libICE-devel
22 BuildRequires: xorg-lib-libX11-devel
23 BuildRequires: xorg-lib-libXext-devel
24 BuildRequires: xorg-lib-libXi-devel
25 BuildRequires: xorg-lib-libXmu-devel
26 BuildRequires: xorg-lib-libXt-devel
27 BuildRequires: xorg-lib-libSM-devel
29 BuildRequires: tcl-devel
30 BuildRequires: tk-devel
31 Buildrequires: itcl-devel
32 BuildRequires: itk-devel
34 BuildRequires: SDL-devel
35 BuildRequires: tk-Img-devel
37 #Requires(pre,post): -
46 #ExclusiveArch: %{ix86}
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 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.
59 %description subpackage
61 %description subpackage -l pl
70 %description libs -l pl
74 Summary: Header files for ... library
75 Summary(pl): Pliki nag³ówkowe biblioteki ...
76 Group: Development/Libraries
77 #Requires: %{name} = %{version}-%{release}
80 This is the package containing the header files for ... library.
82 %description devel -l pl
83 Ten pakiet zawiera pliki nag³ówkowe biblioteki ....
86 Summary: Static ... library
87 Summary(pl): Statyczna biblioteka ...
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
94 %description static -l pl
95 Statyczna biblioteka ....
100 #%setup -q -n %{name}
101 #%%setup -q -n %{name}-%{version}.orig -a 1
105 #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
107 # remove CVS control files
108 #find -name CVS -print0 | xargs -0 rm -rf
113 --disable-zlib-build \
114 --disable-png-build \
115 --disable-tcl-build \
116 --disable-itcl-build \
117 --disable-itk-build \
118 --disable-tkimg-build
122 # CFLAGS="%{rpmcflags}" \
123 # LDFLAGS="%{rpmldflags}"
126 rm -rf $RPM_BUILD_ROOT
127 # create directories if necessary
128 #install -d $RPM_BUILD_ROOT
129 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
132 DESTDIR=$RPM_BUILD_ROOT
135 rm -rf $RPM_BUILD_ROOT
146 %post -p /sbin/ldconfig
147 %postun -p /sbin/ldconfig
150 %if %{with initscript}
152 /sbin/chkconfig --add %{name}
153 %service %{name} restart
156 if [ "$1" = "0" ]; then
157 %service -q %{name} stop
158 /sbin/chkconfig --del %{name}
163 %defattr(644,root,root,755)
164 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
167 # if _sysconfdir != /etc:
168 #%%dir %{_sysconfdir}
169 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
170 %attr(755,root,root) %{_bindir}/*
174 # initscript and its config
175 %if %{with initscript}
176 %attr(754,root,root) /etc/rc.d/init.d/%{name}
177 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
180 #%{_examplesdir}/%{name}-%{version}
182 %if %{with subpackage}
184 %defattr(644,root,root,755)
186 #%{_datadir}/%{name}-ext