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
18 URL: http://autoq3d.ecuadra.com/
19 BuildRequires: QtGui-devel
20 BuildRequires: Mesa-libGL-devel
21 BuildRequires: QtOpenGL-devel
22 BuildRequires: qt4-build
23 #BuildRequires: libtool
25 #Requires(pre,post): -
34 #ExclusiveArch: %{ix86}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %description subpackage
48 %description subpackage -l pl
57 %description libs -l pl
61 Summary: Header files for ... library
62 Summary(pl): Pliki nag³ówkowe biblioteki ...
63 Group: Development/Libraries
64 #Requires: %{name} = %{version}-%{release}
67 This is the package containing the header files for ... library.
69 %description devel -l pl
70 Ten pakiet zawiera pliki nag³ówkowe biblioteki ....
73 Summary: Static ... library
74 Summary(pl): Statyczna biblioteka ...
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{version}-%{release}
81 %description static -l pl
82 Statyczna biblioteka ....
88 /usr/bin/qmake -o Makefile AutoQ3D.pro
91 CFLAGS="%{rpmcflags}" \
92 LDFLAGS="%{rpmldflags}"
95 rm -rf $RPM_BUILD_ROOT
96 # create directories if necessary
97 #install -d $RPM_BUILD_ROOT
98 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
101 DESTDIR=$RPM_BUILD_ROOT
104 rm -rf $RPM_BUILD_ROOT
115 %post -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
119 %if %{with initscript}
121 /sbin/chkconfig --add %{name}
122 %service %{name} restart
125 if [ "$1" = "0" ]; then
126 %service -q %{name} stop
127 /sbin/chkconfig --del %{name}
132 %defattr(644,root,root,755)
133 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
136 # if _sysconfdir != /etc:
137 #%%dir %{_sysconfdir}
138 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
139 %attr(755,root,root) %{_bindir}/*
143 # initscript and its config
144 %if %{with initscript}
145 %attr(754,root,root) /etc/rc.d/init.d/%{name}
146 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
149 #%{_examplesdir}/%{name}-%{version}
151 %if %{with subpackage}
153 %defattr(644,root,root,755)
155 #%{_datadir}/%{name}-ext