3 %bcond_with tests # build with tests
4 %bcond_without tests # build without tests
13 Source0: http://dl.sourceforge.net/autoq3d/%{name}-v%{version}sourceLinux.zip
14 # Source0-md5: cccd22e1c068651c8ad7c0831acd2aba
17 #Patch0: %{name}-DESTDIR.patch
19 %if %{with initscript}
20 BuildRequires: rpmbuild(macros) >= 1.228
21 Requires(post,preun): /sbin/chkconfig
24 #BuildRequires: autoconf
25 #BuildRequires: automake
26 #BuildRequires: intltool
27 #BuildRequires: libtool
29 #Requires(pre,post): -
38 #ExclusiveArch: %{ix86}
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 %description subpackage
52 %description subpackage -l pl
61 %description libs -l pl
65 Summary: Header files for ... library
66 Summary(pl): Pliki nag³ówkowe biblioteki ...
67 Group: Development/Libraries
68 #Requires: %{name} = %{version}-%{release}
71 This is the package containing the header files for ... library.
73 %description devel -l pl
74 Ten pakiet zawiera pliki nag³ówkowe biblioteki ....
77 Summary: Static ... library
78 Summary(pl): Statyczna biblioteka ...
79 Group: Development/Libraries
80 Requires: %{name}-devel = %{version}-%{release}
85 %description static -l pl
86 Statyczna biblioteka ....
92 #%%setup -q -n %{name}-%{version}.orig -a 1
96 #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
98 # remove CVS control files
99 #find -name CVS -print0 | xargs -0 rm -rf
102 # if ac/am/* rebuilding is necessary, do it in this order and add
103 # appropriate BuildRequires
111 #cp -f /usr/share/automake/config.sub .
116 # CFLAGS="%{rpmcflags}" \
117 # LDFLAGS="%{rpmldflags}"
120 rm -rf $RPM_BUILD_ROOT
121 # create directories if necessary
122 #install -d $RPM_BUILD_ROOT
123 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
126 DESTDIR=$RPM_BUILD_ROOT
129 rm -rf $RPM_BUILD_ROOT
140 %post -p /sbin/ldconfig
141 %postun -p /sbin/ldconfig
144 %if %{with initscript}
146 /sbin/chkconfig --add %{name}
147 %service %{name} restart
150 if [ "$1" = "0" ]; then
151 %service -q %{name} stop
152 /sbin/chkconfig --del %{name}
157 %defattr(644,root,root,755)
158 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
161 # if _sysconfdir != /etc:
162 #%%dir %{_sysconfdir}
163 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
164 %attr(755,root,root) %{_bindir}/*
168 # initscript and its config
169 %if %{with initscript}
170 %attr(754,root,root) /etc/rc.d/init.d/%{name}
171 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
174 #%{_examplesdir}/%{name}-%{version}
176 %if %{with subpackage}
178 %defattr(644,root,root,755)
180 #%{_datadir}/%{name}-ext