]>
Commit | Line | Data |
---|---|---|
a1f5c078 AM |
1 | Summary: Diagnose and/or repair problems with STereo Lithography files |
2 | Name: admesh | |
3 | Version: 0.98.2 | |
4 | Release: 1 | |
5 | License: GPL v2+ | |
6 | Group: Applications/Engineering | |
7 | URL: http://github.com/admesh/admesh/ | |
8 | Source0: http://github.com/admesh/admesh/releases/download/v%{version}/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: a90692eb6dc5289e95949bbbca3e37e9 | |
10 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} | |
11 | ||
12 | %description | |
13 | ADMesh is a program for diagnosing and/or repairing commonly | |
14 | encountered problems with STL (STereo Lithography) data files. It can | |
15 | remove degenerate and unconnected facets, connect nearby facets, fill | |
16 | holes by adding facets, and repair facet normals. Simple | |
17 | transformations such as scaling, translation and rotation are also | |
18 | supported. ADMesh can read both ASCII and binary format STL files, | |
19 | while the output can be in AutoCAD DXF, Geomview OFF, STL, or VRML | |
20 | format. | |
21 | ||
22 | %package devel | |
23 | Summary: Development files for the %{name} library | |
24 | Group: Development/Libraries | |
25 | Requires: %{name}-libs = %{version}-%{release} | |
26 | ||
27 | %description devel | |
28 | ADMesh is a program for diagnosing and/or repairing commonly | |
29 | encountered problems with STL (STereo Lithography) data files. | |
30 | ||
31 | This package contains the development files needed for building new | |
32 | applications that utilize the %{name} library. | |
33 | ||
34 | %package libs | |
35 | Summary: Runtime library for the %{name} application | |
36 | Group: Development/Libraries | |
37 | ||
38 | %description libs | |
39 | This package contains the %{name} runtime library. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | ||
44 | %build | |
45 | %configure \ | |
46 | --disable-silent-rules | |
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} | |
56 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib%{name}.la | |
57 | ||
58 | %post libs -p /sbin/ldconfig | |
59 | %postun libs -p /sbin/ldconfig | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc ChangeLog ChangeLog.old README.md AUTHORS | |
67 | %doc %{name}-doc.txt block.stl | |
68 | %attr(755,root,root) %{_bindir}/%{name} | |
69 | %{_mandir}/man1/admesh.1* | |
70 | ||
71 | %files devel | |
72 | %defattr(644,root,root,755) | |
73 | %{_includedir}/admesh | |
74 | %{_pkgconfigdir}/libadmesh.pc | |
75 | %attr(755,root,root) %{_libdir}/lib%{name}.so | |
76 | ||
77 | %files libs | |
78 | %defattr(644,root,root,755) | |
79 | %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.1 | |
80 | %attr(755,root,root) %{_libdir}/lib%{name}.so.*.* |