1 |
shlomif |
808907 |
%define name admesh |
2 |
|
|
%define version 0.98.1 |
3 |
|
|
%define rel 2 |
4 |
|
|
|
5 |
|
|
# api is the part of the library name before the .so |
6 |
|
|
%define api 1.0.0 |
7 |
|
|
# major is the part of the library name after the .so |
8 |
|
|
%define major 1 |
9 |
|
|
|
10 |
|
|
%define libname %mklibname %{name} |
11 |
|
|
%define develname %mklibname %{name} -d |
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
Name: %{name} |
16 |
|
|
Version: %{version} |
17 |
|
|
Release: %mkrel %rel |
18 |
|
|
Summary: Diagnose and/or repair problems with STereo Lithography files |
19 |
|
|
License: GPLv2+ |
20 |
|
|
Group: Graphics/3D |
21 |
|
|
URL: http://github.com/%{name}/%{name}/ |
22 |
|
|
Source0: http://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz |
23 |
|
|
|
24 |
|
|
Patch0: admesh-0.98.1-mga-subdir_objects.patch |
25 |
|
|
|
26 |
|
|
Requires: %{libname} = %{version}-%{release} |
27 |
|
|
|
28 |
|
|
%description |
29 |
|
|
ADMesh is a program for diagnosing and/or repairing commonly encountered |
30 |
|
|
problems with STL (STereo Lithography) data files. It can remove degenerate |
31 |
|
|
and unconnected facets, connect nearby facets, fill holes by adding facets, |
32 |
|
|
and repair facet normals. Simple transformations such as scaling, |
33 |
|
|
translation and rotation are also supported. ADMesh can read both |
34 |
|
|
ASCII and binary format STL files, while the output can be in |
35 |
|
|
AutoCAD DXF, Geomview OFF, STL, or VRML format. |
36 |
|
|
|
37 |
|
|
|
38 |
|
|
%package -n %{develname} |
39 |
|
|
Summary: Development files for the %{name} library |
40 |
|
|
Group: Development/Libraries |
41 |
|
|
Requires: %{libname} = %{version}-%{release} |
42 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
43 |
|
|
|
44 |
|
|
%description -n %{develname} |
45 |
|
|
ADMesh is a program for diagnosing and/or repairing commonly encountered |
46 |
|
|
problems with STL (STereo Lithography) data files. |
47 |
|
|
|
48 |
|
|
This package contains the development files needed for building new |
49 |
|
|
applications that utilize the %{name} library. |
50 |
|
|
|
51 |
|
|
|
52 |
|
|
%package -n %{libname} |
53 |
|
|
Summary: Runtime library for the %{name} application |
54 |
|
|
Group: Development/Libraries |
55 |
|
|
Requires: %{name} = %{version}-%{release} |
56 |
|
|
|
57 |
|
|
%description -n %{libname} |
58 |
|
|
This package contains the %{name} runtime library. |
59 |
|
|
|
60 |
|
|
%prep |
61 |
|
|
%setup -q |
62 |
|
|
%patch0 -p1 -b .subdir_objects |
63 |
|
|
|
64 |
|
|
|
65 |
|
|
%build |
66 |
|
|
%__aclocal |
67 |
|
|
%__automake --add-missing |
68 |
|
|
%{_bindir}/autoreconf |
69 |
|
|
%configure |
70 |
|
|
%make |
71 |
|
|
|
72 |
|
|
%install |
73 |
|
|
%{make_install} |
74 |
|
|
# Remove the documentation installed by "make install" (rpm will handle that) |
75 |
|
|
%__rm -rf %{buildroot}%{_defaultdocdir}/%{name} |
76 |
|
|
# Remove the libtool archive installed by "make install" |
77 |
|
|
%__rm -f %{buildroot}%{_libdir}/lib%{name}.la |
78 |
|
|
|
79 |
|
|
%files |
80 |
|
|
%doc ChangeLog ChangeLog.old COPYING README.md AUTHORS |
81 |
|
|
%doc %{name}-doc.txt block.stl |
82 |
|
|
%{_bindir}/%{name} |
83 |
|
|
%{_mandir}/man1/* |
84 |
|
|
|
85 |
|
|
%files -n %{develname} |
86 |
|
|
%{_includedir}/* |
87 |
|
|
%{_libdir}/pkgconfig/* |
88 |
|
|
|
89 |
|
|
%files -n %{libname} |
90 |
|
|
%doc COPYING AUTHORS |
91 |
|
|
%{_libdir}/lib%{name}.so |
92 |
|
|
%{_libdir}/lib%{name}.so.* |
93 |
|
|
|