1 Summary: autoq3d - complete 3D modeling application for computing aided drafting in three dimensions
8 Source0: http://dl.sourceforge.net/autoq3d/%{name}-v%{version}sourceLinux.zip
9 # Source0-md5: cccd22e1c068651c8ad7c0831acd2aba
10 #Patch0: %{name}-DESTDIR.patch
11 URL: http://autoq3d.ecuadra.com/
12 BuildRequires: QtGui-devel
13 BuildRequires: Mesa-libGL-devel
14 BuildRequires: QtOpenGL-devel
15 BuildRequires: qt4-build
16 #BuildRequires: libtool
19 autoq3d - complete 3D modeling application for computing aided
20 drafting in three dimensions.
28 QTDIR=/usr; export QTDIR
29 /usr/bin/qmake -o Makefile AutoQ3D.pro
32 CFLAGS="%{rpmcflags}" \
33 LDFLAGS="%{rpmldflags}"
36 rm -rf $RPM_BUILD_ROOT
37 # create directories if necessary
38 #install -d $RPM_BUILD_ROOT
39 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
42 DESTDIR=$RPM_BUILD_ROOT
45 rm -rf $RPM_BUILD_ROOT
48 %post -p /sbin/ldconfig
49 %postun -p /sbin/ldconfig
52 %if %{with initscript}
54 /sbin/chkconfig --add %{name}
55 %service %{name} restart
58 if [ "$1" = "0" ]; then
59 %service -q %{name} stop
60 /sbin/chkconfig --del %{name}
65 %defattr(644,root,root,755)
66 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
69 # if _sysconfdir != /etc:
71 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
72 %attr(755,root,root) %{_bindir}/*
76 # initscript and its config
77 %if %{with initscript}
78 %attr(754,root,root) /etc/rc.d/init.d/%{name}
79 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
82 #%{_examplesdir}/%{name}-%{version}