2013-03-21 16:52:33 +00:00
|
|
|
Name: slic3r
|
2013-11-24 16:32:54 +00:00
|
|
|
Version: 1.0.0
|
|
|
|
%global rcrc RC1
|
|
|
|
%global verrc %{version}%{rcrc}
|
2013-12-13 16:48:27 +00:00
|
|
|
Release: 0.2.%{rcrc}%{?dist}
|
2013-03-21 16:52:33 +00:00
|
|
|
Summary: G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
|
|
|
|
License: AGPLv3 and CC-BY
|
|
|
|
# Images are CC-BY, code is AGPLv3
|
|
|
|
Group: Applications/Engineering
|
|
|
|
URL: http://slic3r.org/
|
2013-11-24 16:32:54 +00:00
|
|
|
Source0: https://github.com/alexrj/Slic3r/archive/%{verrc}.tar.gz
|
2013-03-21 16:52:33 +00:00
|
|
|
|
2013-11-24 16:32:54 +00:00
|
|
|
# Modify Build.PL so we are able to build this on Fedora
|
|
|
|
Patch0: %{name}-buildpl.patch
|
2013-03-21 16:52:33 +00:00
|
|
|
|
2013-11-24 16:32:54 +00:00
|
|
|
# Don't warn for Perl >= 5.16
|
|
|
|
# Use /usr/share/slic3r as datadir
|
|
|
|
# Those two are located at the same place at the code, so the patch is merged
|
|
|
|
Patch1: %{name}-nowarn-datadir.patch
|
2013-10-18 11:41:24 +00:00
|
|
|
|
2013-12-13 16:48:27 +00:00
|
|
|
Patch11: %{name}-1543.patch
|
|
|
|
Patch12: %{name}-1545.patch
|
|
|
|
Patch13: %{name}-1547.patch
|
|
|
|
Patch14: %{name}-1552.patch
|
|
|
|
Patch15: %{name}-1582-1541.patch
|
|
|
|
|
2013-03-21 16:52:33 +00:00
|
|
|
Source1: %{name}.desktop
|
2013-11-24 16:32:54 +00:00
|
|
|
BuildRequires: perl(Boost::Geometry::Utils) >= 0.15
|
2013-04-03 14:53:27 +00:00
|
|
|
BuildRequires: perl(Class::XSAccessor)
|
2013-04-23 20:58:43 +00:00
|
|
|
BuildRequires: perl(Encode::Locale)
|
2013-11-24 16:32:54 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(ExtUtils::Typemaps::Default) >= 1.03
|
|
|
|
BuildRequires: perl(ExtUtils::Typemap)
|
|
|
|
BuildRequires: perl(File::Basename)
|
2013-04-03 14:53:27 +00:00
|
|
|
BuildRequires: perl(File::Spec)
|
2013-11-24 16:32:54 +00:00
|
|
|
BuildRequires: perl(Getopt::Long)
|
2013-04-03 14:53:27 +00:00
|
|
|
BuildRequires: perl(Growl::GNTP)
|
|
|
|
BuildRequires: perl(IO::Scalar)
|
2013-03-21 16:52:33 +00:00
|
|
|
BuildRequires: perl(List::Util)
|
2013-06-24 14:36:39 +00:00
|
|
|
BuildRequires: perl(Math::Clipper) >= 1.22
|
2013-03-21 16:52:33 +00:00
|
|
|
BuildRequires: perl(Math::ConvexHull::MonotoneChain)
|
2013-04-03 14:53:27 +00:00
|
|
|
BuildRequires: perl(Math::ConvexHull) >= 1.0.4
|
2013-11-24 16:32:54 +00:00
|
|
|
BuildRequires: perl(Math::Geometry::Voronoi) >= 1.3
|
|
|
|
BuildRequires: perl(Math::PlanePath) >= 53
|
2013-04-03 14:53:27 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2013-11-24 16:32:54 +00:00
|
|
|
BuildRequires: perl(Module::Build::WithXSpp)
|
2013-10-18 15:32:05 +00:00
|
|
|
%if 0%{?fedora} > 19
|
|
|
|
BuildRequires: perl(Moo) >= 1.003001
|
|
|
|
%else
|
|
|
|
BuildRequires: perl(Moo)
|
|
|
|
%endif
|
2013-04-03 14:53:27 +00:00
|
|
|
BuildRequires: perl(parent)
|
2013-03-21 16:52:33 +00:00
|
|
|
BuildRequires: perl(Scalar::Util)
|
2013-11-24 16:32:54 +00:00
|
|
|
BuildRequires: perl(Storable)
|
2013-03-21 16:52:33 +00:00
|
|
|
BuildRequires: perl(SVG)
|
2013-11-24 16:32:54 +00:00
|
|
|
BuildRequires: perl(Test::Harness)
|
2013-04-03 14:53:27 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2013-11-24 16:32:54 +00:00
|
|
|
BuildRequires: perl(Time::HiRes)
|
2013-03-21 16:52:33 +00:00
|
|
|
BuildRequires: perl(Wx)
|
2013-04-03 14:53:27 +00:00
|
|
|
BuildRequires: perl(XML::SAX)
|
|
|
|
BuildRequires: perl(XML::SAX::ExpatXS)
|
2013-03-21 16:52:33 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
2013-04-03 14:53:27 +00:00
|
|
|
Requires: perl(Class::XSAccessor)
|
2013-03-21 16:52:33 +00:00
|
|
|
Requires: perl(Growl::GNTP)
|
2013-10-18 15:32:05 +00:00
|
|
|
%if 0%{?fedora} > 19
|
|
|
|
Requires: perl(Moo) >= 1.003001
|
|
|
|
%endif
|
2013-04-03 14:53:27 +00:00
|
|
|
Requires: perl(XML::SAX)
|
2013-03-21 16:52:33 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
2013-12-13 12:12:59 +00:00
|
|
|
# Temporary bundling exception https://fedorahosted.org/fpc/ticket/368
|
|
|
|
Provides: bundled(admesh) = 0.95
|
|
|
|
|
2013-03-21 16:52:33 +00:00
|
|
|
%description
|
|
|
|
Slic3r is a G-code generator for 3D printers. It's compatible with RepRaps,
|
|
|
|
Makerbots, Ultimakers and many more machines.
|
|
|
|
See the project homepage at slic3r.org and the documentation on the Slic3r wiki
|
|
|
|
for more information.
|
|
|
|
|
|
|
|
%prep
|
2013-11-24 16:32:54 +00:00
|
|
|
%setup -qn Slic3r-%{verrc}
|
2013-03-21 16:52:33 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
|
2013-12-13 16:48:27 +00:00
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
|
2013-03-21 16:52:33 +00:00
|
|
|
%build
|
2013-11-24 16:32:54 +00:00
|
|
|
cd xs
|
|
|
|
perl ./Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
|
2013-03-21 16:52:33 +00:00
|
|
|
./Build
|
2013-11-24 16:32:54 +00:00
|
|
|
cd -
|
|
|
|
# Building non XS part only runs test, so skip it and run it in tests
|
2013-03-21 16:52:33 +00:00
|
|
|
|
|
|
|
%install
|
2013-11-24 16:32:54 +00:00
|
|
|
cd xs
|
2013-03-21 16:52:33 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2013-11-24 16:32:54 +00:00
|
|
|
cd -
|
2013-03-21 16:52:33 +00:00
|
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
|
|
2013-11-24 16:32:54 +00:00
|
|
|
# I see no way of installing slic3r with it's build script
|
|
|
|
# So I copy the files around manually
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{perl_vendorlib}
|
2013-03-21 16:52:33 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
|
2013-11-24 16:32:54 +00:00
|
|
|
cp -a %{name}.pl %{buildroot}%{_bindir}/%{name}
|
|
|
|
cp -ar lib/* %{buildroot}%{perl_vendorlib}
|
|
|
|
|
2013-03-21 16:52:33 +00:00
|
|
|
cp -a var/* %{buildroot}%{_datadir}/%{name}
|
|
|
|
ln -s ../%{name}/Slic3r.ico %{buildroot}%{_datadir}/pixmaps/%{name}.ico
|
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
|
|
|
2013-11-24 16:32:54 +00:00
|
|
|
%{_fixperms} %{buildroot}*
|
2013-03-21 16:52:33 +00:00
|
|
|
|
|
|
|
%check
|
2013-11-24 16:32:54 +00:00
|
|
|
cd xs
|
2013-03-21 16:52:33 +00:00
|
|
|
./Build test
|
2013-11-24 16:32:54 +00:00
|
|
|
cd -
|
|
|
|
SLIC3R_NO_AUTO=1 perl Build.PL installdirs=vendor
|
|
|
|
# the --gui runs no tests, it only checks requires
|
2013-03-21 16:52:33 +00:00
|
|
|
|
|
|
|
%files
|
2013-11-24 16:32:54 +00:00
|
|
|
%doc README.md
|
2013-03-21 16:52:33 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{perl_vendorlib}/Slic3r*
|
2013-11-24 16:32:54 +00:00
|
|
|
%{perl_vendorarch}/Slic3r*
|
|
|
|
%{perl_vendorarch}/auto/Slic3r*
|
2013-03-21 16:52:33 +00:00
|
|
|
%{_datadir}/pixmaps/%{name}.ico
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|
2013-12-13 16:48:27 +00:00
|
|
|
* Fri Dec 13 2013 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-0.2.RC1
|
|
|
|
- Backported several bugfixes
|
|
|
|
|
2013-11-24 16:32:54 +00:00
|
|
|
* Wed Nov 20 2013 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-0.1.RC1
|
|
|
|
- 1.0.0RC1 version
|
2013-12-13 11:34:54 +00:00
|
|
|
- refactor build and install
|
2013-11-24 16:32:54 +00:00
|
|
|
- become arched
|
2013-12-13 12:12:59 +00:00
|
|
|
- bundle admesh
|
2013-11-24 16:32:54 +00:00
|
|
|
|
2013-10-18 15:32:05 +00:00
|
|
|
* Fri Oct 18 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.10b-5
|
|
|
|
- For F20+, require Moo >= 1.003001
|
|
|
|
|
2013-10-18 11:41:24 +00:00
|
|
|
* Fri Oct 18 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.10b-4
|
|
|
|
- Remove all filtering from provides, it is not needed anymore
|
|
|
|
- Don't add MANIFEST to %%doc
|
|
|
|
- Fix crash when loading config (#1020802)
|
|
|
|
|
2013-08-04 14:53:33 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10b-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-25 18:52:21 +00:00
|
|
|
* Tue Jun 25 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.10b-2
|
|
|
|
- Filter perl(Wx::GLCanvas) from requires, it's optional and not yet in Fedora
|
|
|
|
|
2013-06-24 14:36:39 +00:00
|
|
|
* Mon Jun 24 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.10b-1
|
|
|
|
- New upstream release
|
|
|
|
- Removed some already merged patches
|
|
|
|
|
2013-04-23 21:00:07 +00:00
|
|
|
* Tue Apr 23 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-5
|
|
|
|
- Added BR perl(Encode::Locale)
|
|
|
|
|
2013-04-23 20:27:09 +00:00
|
|
|
* Tue Apr 23 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-4
|
|
|
|
- Removed (optional) Net::DBus usage, that causes crashes
|
|
|
|
|
2013-04-23 13:19:31 +00:00
|
|
|
* Tue Apr 23 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-3
|
|
|
|
- Added second patch to fix upstream issue 1077
|
|
|
|
|
2013-04-23 12:29:10 +00:00
|
|
|
* Tue Apr 23 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-2
|
|
|
|
- Added patch to fix upstream issue 1077
|
|
|
|
|
2013-04-03 14:53:27 +00:00
|
|
|
* Wed Apr 03 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-1
|
|
|
|
- New upstream release
|
|
|
|
- Added version to perl(Boost::Geometry::Utils) BR
|
|
|
|
- Sort (B)Rs alphabetically
|
|
|
|
- Added (B)R perl(Class::XSAccessor)
|
|
|
|
|
2013-03-21 16:52:33 +00:00
|
|
|
* Wed Mar 20 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.8-4
|
|
|
|
- Comments added about patches
|
|
|
|
|
|
|
|
* Mon Mar 11 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.8-3
|
|
|
|
- In-file justification provided for patches
|
|
|
|
|
|
|
|
* Mon Jan 21 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.8-2
|
|
|
|
- Added patch to grab icons from %%{datadir}/%%{name}
|
|
|
|
- Added patch to avoid bad locales behavior
|
|
|
|
- Removed no longer needed filtering perl(Wx::Dialog) from Requires
|
|
|
|
- Filter perl(XML::SAX::PurePerl) only in F17
|
|
|
|
- Removed Perl default filter
|
|
|
|
- Removed bash launcher
|
|
|
|
- Renamed slic3r.pl to slic3r
|
|
|
|
|
|
|
|
* Thu Jan 17 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.8-1
|
|
|
|
- New version
|
|
|
|
- (Build)Requires Math::Clipper 1.17
|
|
|
|
|
|
|
|
* Thu Jan 17 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.7-3
|
|
|
|
- Updated source to respect GitHub rule
|
|
|
|
- Dropped mkdir, ln -s, cp, mv, perl macros
|
|
|
|
- Reorganized %%install section a bit
|
|
|
|
- Added version to Require perl(Math::Clipper)
|
|
|
|
|
|
|
|
* Sat Jan 05 2013 Miro Hrončok <miro@hroncok.cz> - 0.9.7-2
|
|
|
|
- Added Require perl(Math::Clipper)
|
|
|
|
|
|
|
|
* Sun Dec 30 2012 Miro Hrončok <miro@hroncok.cz> - 0.9.7-1
|
|
|
|
- New version
|
|
|
|
- Do not download additional sources from GitHub
|
|
|
|
- Removed deleting empty directories
|
|
|
|
|
|
|
|
* Fri Nov 16 2012 Miro Hrončok <miro@hroncok.cz> - 0.9.5-2
|
|
|
|
- Removed BRs provided by perl package
|
|
|
|
|
|
|
|
* Wed Nov 14 2012 Miro Hrončok <miro@hroncok.cz> 0.9.5-1
|
|
|
|
- New version
|
|
|
|
- Requires perl(Math::Clipper) >= 1.14
|
|
|
|
- Requires perl(Math::ConvexHull::MonotoneChain)
|
|
|
|
- Requires perl(XML::SAX::ExpatXS)
|
|
|
|
|
|
|
|
* Thu Oct 04 2012 Miro Hrončok <miro@hroncok.cz> 0.9.3-1
|
|
|
|
- New package
|