John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
Name:           admesh
ef7064c
Version:        0.97.5
John C. Peterson dd2d1a6
Release:        1%{?dist}
John C. Peterson dd2d1a6
Summary:        Diagnose and/or repair problems with STereo Lithography files
John C. Peterson dd2d1a6
License:        GPLv2+
John C. Peterson dd2d1a6
Group:          Applications/Engineering
ef7064c
URL:            http://github.com/admesh/admesh/
ef7064c
Source0:        http://github.com/admesh/admesh/releases/download/v%{version}/admesh-%{version}.tar.gz
John C. Peterson dd2d1a6
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%description
John C. Peterson dd2d1a6
ADMesh is a program for diagnosing and/or repairing commonly encountered
John C. Peterson dd2d1a6
problems with STL (STereo Lithography) data files. It can remove degenerate
John C. Peterson dd2d1a6
and unconnected facets, connect nearby facets, fill holes by adding facets,
John C. Peterson dd2d1a6
and repair facet normals. Simple transformations such as scaling,
John C. Peterson dd2d1a6
translation and rotation are also supported. ADMesh can read both
John C. Peterson dd2d1a6
ASCII and binary format STL files, while the output can be in
John C. Peterson dd2d1a6
AutoCAD DXF, Geomview OFF, STL, or VRML format.
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%package devel
John C. Peterson dd2d1a6
Summary:        Development files for the %{name} library
John C. Peterson dd2d1a6
Group:          Development/Libraries
John C. Peterson dd2d1a6
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%description devel
John C. Peterson dd2d1a6
ADMesh is a program for diagnosing and/or repairing commonly encountered
John C. Peterson dd2d1a6
problems with STL (STereo Lithography) data files.
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
This package contains the development files needed for building new
John C. Peterson dd2d1a6
applications that utilize the %{name} library.
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%package libs
John C. Peterson dd2d1a6
Summary:        Runtime library for the %{name} application
John C. Peterson dd2d1a6
Group:          Development/Libraries
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%description libs
John C. Peterson dd2d1a6
This package contains the %{name} runtime library.
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%prep
John C. Peterson dd2d1a6
%setup -q
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%build
John C. Peterson dd2d1a6
%configure
John C. Peterson dd2d1a6
# Pass the -v option to libtool so we can better see what's going on
John C. Peterson dd2d1a6
make %{?_smp_mflags} CFLAGS="%{optflags}" LIBTOOLFLAGS="-v"
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%install
John C. Peterson dd2d1a6
%{make_install}
John C. Peterson dd2d1a6
# Remove the documentation installed by "make install" (rpm will handle that)
John C. Peterson dd2d1a6
rm -rf %{buildroot}%{_defaultdocdir}/%{name}
John C. Peterson dd2d1a6
# Remove the libtool archive installed by "make install"
John C. Peterson dd2d1a6
rm -f %{buildroot}%{_libdir}/lib%{name}.la
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%post libs -p /sbin/ldconfig
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%postun libs -p /sbin/ldconfig
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%files
ef7064c
%doc ChangeLog ChangeLog.old COPYING README.md
ef7064c
%doc %{name}-doc.txt block.stl AUTHORS
John C. Peterson dd2d1a6
%{_bindir}/%{name}
John C. Peterson dd2d1a6
%{_mandir}/man1/*
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%files devel
John C. Peterson dd2d1a6
%{_includedir}/*
John C. Peterson dd2d1a6
%{_libdir}/lib%{name}.so
John C. Peterson dd2d1a6
%{_libdir}/pkgconfig/*
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%files libs
John C. Peterson dd2d1a6
%doc COPYING
John C. Peterson dd2d1a6
%{_libdir}/lib%{name}.so.*
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
%changelog
ef7064c
* Tue Sep 23 2014 Miro HronĨok <mhroncok@redhat.com> - 0.97.5-1
ef7064c
- Updated to bugfix release 0.97.5
ef7064c
- Removed no longer needed Fedora doc and added AUTHORS
ef7064c
- Updated URL
ef7064c
John C. Peterson dd2d1a6
* Wed Oct 23 2013 John C. Peterson <jcp[at]eskimo.com> - 0.97.2-1
John C. Peterson dd2d1a6
- Fixed the post and postun scriptlets (needed only for the libs subpackage)
John C. Peterson dd2d1a6
- Fixed the requires for the devel package (namely the libs subpackage)
John C. Peterson dd2d1a6
- Added the license file to the docs of the libs package
John C. Peterson dd2d1a6
- Fixed the inconsistent use of spaces vs. tabs
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
* Tue Oct 22 2013 John C. Peterson <jcp[at]eskimo.com> - 0.97.2-1
John C. Peterson dd2d1a6
- Added a README.Fedora file. It references the Masters Thesis associated with
John C. Peterson dd2d1a6
  the source code (because it can't be packaged due to an ambiguous copyright)
John C. Peterson dd2d1a6
- Moved the versioned runtime libraries to a libs subpackage
John C. Peterson dd2d1a6
- Modified the install section to use the make_install macro
John C. Peterson dd2d1a6
- Some minor additions to the package descriptions
John C. Peterson dd2d1a6
- Removed some extraneous info from the changelog
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
* Mon Oct 21 2013 John C. Peterson <jcp[at]eskimo.com> - 0.97.2-1
John C. Peterson dd2d1a6
- Switched over to a fork of admesh that is being actively maintained.
John C. Peterson dd2d1a6
John C. Peterson dd2d1a6
* Sun Sep 15 2013 John C. Peterson <jcp[at]eskimo.com> - 0.97.2-1
John C. Peterson dd2d1a6
- Initial spec file (for code from http://www.varlog.com/admesh-htm).
John C. Peterson dd2d1a6