]>
Commit | Line | Data |
---|---|---|
2107c340 | 1 | Summary: autoq3d - complete 3D modeling application for computing aided drafting in three dimensions |
d96e2b0f | 2 | Summary(pl): autoq3d |
3 | Name: AutoQ3D | |
4 | Version: 1.20 | |
5 | Release: 0.1 | |
6 | License: GPL | |
7 | Group: Applications | |
8 | Source0: http://dl.sourceforge.net/autoq3d/%{name}-v%{version}sourceLinux.zip | |
9 | # Source0-md5: cccd22e1c068651c8ad7c0831acd2aba | |
2107c340 | 10 | #Patch0: %{name}-DESTDIR.patch |
2f6f6883 | 11 | URL: http://autoq3d.ecuadra.com/ |
12 | BuildRequires: QtGui-devel | |
13 | BuildRequires: Mesa-libGL-devel | |
005d941d | 14 | BuildRequires: QtOpenGL-devel |
15 | BuildRequires: qt4-build | |
d96e2b0f | 16 | #BuildRequires: libtool |
d96e2b0f | 17 | |
18 | %description | |
2107c340 | 19 | autoq3d - complete 3D modeling application for computing aided |
20 | drafting in three dimensions. | |
d96e2b0f | 21 | |
22 | %description -l pl | |
23 | ||
d96e2b0f | 24 | %prep |
25 | %setup -q -n %{name} | |
d96e2b0f | 26 | |
27 | %build | |
60e53529 | 28 | QTDIR=/usr; export QTDIR |
2f6f6883 | 29 | /usr/bin/qmake -o Makefile AutoQ3D.pro |
30 | ||
31 | %{__make} \ | |
32 | CFLAGS="%{rpmcflags}" \ | |
33 | LDFLAGS="%{rpmldflags}" | |
d96e2b0f | 34 | |
35 | %install | |
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} | |
40 | ||
41 | %{__make} install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
d96e2b0f | 47 | %if %{with ldconfig} |
48 | %post -p /sbin/ldconfig | |
49 | %postun -p /sbin/ldconfig | |
50 | %endif | |
51 | ||
52 | %if %{with initscript} | |
53 | %post init | |
54 | /sbin/chkconfig --add %{name} | |
55 | %service %{name} restart | |
56 | ||
57 | %preun init | |
58 | if [ "$1" = "0" ]; then | |
59 | %service -q %{name} stop | |
60 | /sbin/chkconfig --del %{name} | |
61 | fi | |
62 | %endif | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
67 | ||
68 | %if 0 | |
69 | # if _sysconfdir != /etc: | |
70 | #%%dir %{_sysconfdir} | |
71 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
72 | %attr(755,root,root) %{_bindir}/* | |
73 | %{_datadir}/%{name} | |
74 | %endif | |
75 | ||
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} | |
80 | %endif | |
81 | ||
82 | #%{_examplesdir}/%{name}-%{version} |