From dd2d1a6d4e9d828a5a22aced891c4984f3ace418 Mon Sep 17 00:00:00 2001 From: John C. Peterson Date: Oct 25 2013 20:21:16 +0000 Subject: Initial import (#1008284) --- diff --git a/.gitignore b/.gitignore index e69de29..8087583 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/admesh-0.97.2.tar.gz diff --git a/README.Fedora b/README.Fedora new file mode 100644 index 0000000..395f390 --- /dev/null +++ b/README.Fedora @@ -0,0 +1,8 @@ + +Additional information regarding the underlying algorithms of admesh +can be found in Anthony Martin's Masters Thesis available from here: + + http://www.varlog.com/admesh-htm/ADMeshThesis.zip + +The document could not be included in Fedora because of it's ambiguous +copyright and license. diff --git a/admesh.spec b/admesh.spec new file mode 100644 index 0000000..72be75a --- /dev/null +++ b/admesh.spec @@ -0,0 +1,98 @@ + +Name: admesh +Version: 0.97.2 +Release: 1%{?dist} +Summary: Diagnose and/or repair problems with STereo Lithography files +License: GPLv2+ +Group: Applications/Engineering +URL: http://github.com/hroncok/admesh/ +Source0: http://github.com/hroncok/admesh/releases/download/v%{version}/admesh-%{version}.tar.gz +# This is a pointer to a document that could not be packaged due to copyrights +Source1: README.Fedora +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description +ADMesh is a program for diagnosing and/or repairing commonly encountered +problems with STL (STereo Lithography) data files. It can remove degenerate +and unconnected facets, connect nearby facets, fill holes by adding facets, +and repair facet normals. Simple transformations such as scaling, +translation and rotation are also supported. ADMesh can read both +ASCII and binary format STL files, while the output can be in +AutoCAD DXF, Geomview OFF, STL, or VRML format. + +%package devel +Summary: Development files for the %{name} library +Group: Development/Libraries +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +ADMesh is a program for diagnosing and/or repairing commonly encountered +problems with STL (STereo Lithography) data files. + +This package contains the development files needed for building new +applications that utilize the %{name} library. + +%package libs +Summary: Runtime library for the %{name} application +Group: Development/Libraries + +%description libs +This package contains the %{name} runtime library. + +%prep +%setup -q +# Copy the Fedora specific README document +cp -p %{SOURCE1} . + +%build +%configure +# Pass the -v option to libtool so we can better see what's going on +make %{?_smp_mflags} CFLAGS="%{optflags}" LIBTOOLFLAGS="-v" + +%install +%{make_install} +# Remove the documentation installed by "make install" (rpm will handle that) +rm -rf %{buildroot}%{_defaultdocdir}/%{name} +# Remove the libtool archive installed by "make install" +rm -f %{buildroot}%{_libdir}/lib%{name}.la + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + +%files +%doc ChangeLog ChangeLog.old COPYING README +%doc README.Fedora %{name}-doc.txt block.stl +%{_bindir}/%{name} +%{_mandir}/man1/* + +%files devel +%{_includedir}/* +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/* + +%files libs +%doc COPYING +%{_libdir}/lib%{name}.so.* + +%changelog +* Wed Oct 23 2013 John C. Peterson - 0.97.2-1 +- Fixed the post and postun scriptlets (needed only for the libs subpackage) +- Fixed the requires for the devel package (namely the libs subpackage) +- Added the license file to the docs of the libs package +- Fixed the inconsistent use of spaces vs. tabs + +* Tue Oct 22 2013 John C. Peterson - 0.97.2-1 +- Added a README.Fedora file. It references the Masters Thesis associated with + the source code (because it can't be packaged due to an ambiguous copyright) +- Moved the versioned runtime libraries to a libs subpackage +- Modified the install section to use the make_install macro +- Some minor additions to the package descriptions +- Removed some extraneous info from the changelog + +* Mon Oct 21 2013 John C. Peterson - 0.97.2-1 +- Switched over to a fork of admesh that is being actively maintained. + +* Sun Sep 15 2013 John C. Peterson - 0.97.2-1 +- Initial spec file (for code from http://www.varlog.com/admesh-htm). + diff --git a/sources b/sources index e69de29..32656da 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b81400c77083abbc3d661759f96aeeaf admesh-0.97.2.tar.gz