3 %bcond_with tests # build with tests
4 %bcond_without tests # build without tests
9 Summary(pl.UTF-8): Bullet
15 Source0: http://bullet.googlecode.com/files/%{name}-%{version}%{patch}.tgz
16 # Source0-md5: 7c3daad95d1a07be0fea35aaa9c67db7
19 #Patch0: %{name}-DESTDIR.patch
21 %if %{with initscript}
22 BuildRequires: rpmbuild(macros) >= 1.228
23 Requires(post,preun): /sbin/chkconfig
26 #BuildRequires: autoconf
27 #BuildRequires: automake
28 #BuildRequires: intltool
29 #BuildRequires: libtool
31 #Requires(pre,post): -
40 #ExclusiveArch: %{ix86}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %description -l pl.UTF-8
52 %description subpackage
54 %description subpackage -l pl.UTF-8
63 %description libs -l pl.UTF-8
66 Summary: Header files for ... library
67 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ...
68 Group: Development/Libraries
69 # if base package contains shared library for which these headers are
70 #Requires: %{name} = %{version}-%{release}
71 # if -libs package contains shared library for which these headers are
72 #Requires: %{name}-libs = %{version}-%{release}
75 Header files for ... library.
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe biblioteki ....
81 Summary: Static ... library
82 Summary(pl.UTF-8): Statyczna biblioteka ...
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
89 %description static -l pl.UTF-8
90 Statyczna biblioteka ....
101 # CFLAGS="%{rpmcflags}" \
102 # LDFLAGS="%{rpmldflags}"
105 rm -rf $RPM_BUILD_ROOT
106 # create directories if necessary
107 #install -d $RPM_BUILD_ROOT
108 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
111 DESTDIR=$RPM_BUILD_ROOT
114 rm -rf $RPM_BUILD_ROOT
117 %groupadd -g xxx %{name}
118 %useradd -u xxx -d /var/lib/%{name} -g %{name} -c "XXX User" %{name}
125 if [ "$1" = "0" ]; then
131 %post -p /sbin/ldconfig
132 %postun -p /sbin/ldconfig
135 %if %{with initscript}
137 /sbin/chkconfig --add %{name}
138 %service %{name} restart
141 if [ "$1" = "0" ]; then
142 %service -q %{name} stop
143 /sbin/chkconfig --del %{name}
148 %defattr(644,root,root,755)
149 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
152 # if _sysconfdir != /etc:
153 #%%dir %{_sysconfdir}
154 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
155 %attr(755,root,root) %{_bindir}/*
159 # initscript and its config
160 %if %{with initscript}
161 %attr(754,root,root) /etc/rc.d/init.d/%{name}
162 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
165 #%{_examplesdir}/%{name}-%{version}
167 %if %{with subpackage}
169 %defattr(644,root,root,755)
171 #%{_datadir}/%{name}-ext