5 %bcond_with tests # build with tests
6 %bcond_without tests # build without tests
9 Summary: High-level, retained-mode toolkit for effective 3D graphics development
10 Summary(pl.UTF-8): Zbiór narzędzi wysokiego poziomu do efektywnego rozwijania grafiki 3D.
15 Group: Productivity/Other
16 # http://ftp.coin3d.org/coin/src/all/Coin-3.1.3.tar.gz
17 Source0: http://ftp.coin3d.org/coin/src/all/%{name}-%{version}.tar.gz
18 # Source0-md5: 1538682f8d92cdf03e845c786879fbea
21 URL: http://www.coin3d.org/
22 #Patch0: %{name}-DESTDIR.patch
23 %if %{with initscript}
24 BuildRequires: rpmbuild(macros) >= 1.228
25 Requires(post,preun): /sbin/chkconfig
29 #BuildRequires: autoconf
30 #BuildRequires: automake
31 #BuildRequires: intltool
32 #BuildRequires: libtool
34 #Requires(pre,post): -
43 #ExclusiveArch: %{ix86}
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 %description -l pl.UTF-8
56 %description subpackage
58 %description subpackage -l pl.UTF-8
67 %description libs -l pl.UTF-8
70 Summary: Header files for ... library
71 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ...
72 Group: Development/Libraries
73 # if base package contains shared library for which these headers are
74 #Requires: %{name} = %{version}-%{release}
75 # if -libs package contains shared library for which these headers are
76 #Requires: %{name}-libs = %{version}-%{release}
79 Header files for ... library.
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe biblioteki ....
85 Summary: Static ... library
86 Summary(pl.UTF-8): Statyczna biblioteka ...
87 Group: Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
93 %description static -l pl.UTF-8
94 Statyczna biblioteka ....
100 #%setup -q -n %{name}-%{version}.orig -a 1
104 #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
106 # remove CVS control files
107 #find -name CVS -print0 | xargs -0 rm -rf
109 # you'll need this if you cp -a complete dir in source
110 # cleanup backups after patching
111 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
114 # if ac/am/* rebuilding is necessary, do it in this order and add
115 # appropriate BuildRequires
123 # if not running libtool or automake, but config.sub is too old:
124 # cp -f /usr/share/automake/config.sub .
126 --enable-system-expat
131 # CFLAGS="%{rpmcflags}" \
132 # LDFLAGS="%{rpmldflags}"
135 rm -rf $RPM_BUILD_ROOT
136 # create directories if necessary
137 #install -d $RPM_BUILD_ROOT
138 %if %{with initscript}
139 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
141 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
144 DESTDIR=$RPM_BUILD_ROOT
147 rm -rf $RPM_BUILD_ROOT
150 %groupadd -g xxx %{name}
151 %useradd -u xxx -d /var/lib/%{name} -g %{name} -c "XXX User" %{name}
158 if [ "$1" = "0" ]; then
164 %post -p /sbin/ldconfig
165 %postun -p /sbin/ldconfig
168 %if %{with initscript}
170 /sbin/chkconfig --add %{name}
171 %service %{name} restart
174 if [ "$1" = "0" ]; then
175 %service -q %{name} stop
176 /sbin/chkconfig --del %{name}
181 %defattr(644,root,root,755)
182 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
185 # if _sysconfdir != %{_sysconfdir}:
186 #%%dir %{_sysconfdir}
187 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
188 %attr(755,root,root) %{_bindir}/*
192 # initscript and its config
193 %if %{with initscript}
194 %attr(754,root,root) /etc/rc.d/init.d/%{name}
195 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
198 #%{_examplesdir}/%{name}-%{version}
200 %if %{with subpackage}
202 %defattr(644,root,root,755)
204 #%{_datadir}/%{name}-ext