166 lines
5.3 KiB
RPMSpec
166 lines
5.3 KiB
RPMSpec
Name: slic3r
|
|
Version: 0.9.9
|
|
Release: 4%{?dist}
|
|
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/
|
|
%global commit 01e86c26159c5ff0570613831b82f638daf74450
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
Source0: https://github.com/alexrj/Slic3r/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
|
|
|
# Use /usr/share to store icons
|
|
Patch0: %{name}-datadir.patch
|
|
|
|
# Use English decimal separator for numbers
|
|
# Reasons are a bit complicated and are described in the patch
|
|
Patch1: %{name}-english-locale.patch
|
|
|
|
# https://github.com/alexrj/Slic3r/issues/1077
|
|
Patch2: %{name}-config-wizard-crash-fix.patch
|
|
Patch3: %{name}-config-wizard-crash-fix2.patch
|
|
|
|
# Removed (optional) Net::DBus usage, that causes crashes
|
|
Patch4: %{name}-remove-net-dbus.patch
|
|
|
|
Source1: %{name}.desktop
|
|
BuildArch: noarch
|
|
BuildRequires: perl(Boost::Geometry::Utils) >= 0.06
|
|
BuildRequires: perl(Class::XSAccessor)
|
|
BuildRequires: perl(Encode::Locale)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(Growl::GNTP)
|
|
BuildRequires: perl(IO::Scalar)
|
|
BuildRequires: perl(List::Util)
|
|
BuildRequires: perl(Math::Clipper) >= 1.17
|
|
BuildRequires: perl(Math::ConvexHull::MonotoneChain)
|
|
BuildRequires: perl(Math::ConvexHull) >= 1.0.4
|
|
BuildRequires: perl(Math::Geometry::Voronoi)
|
|
BuildRequires: perl(Math::PlanePath)
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Moo) >= 0.091009
|
|
BuildRequires: perl(parent)
|
|
BuildRequires: perl(Scalar::Util)
|
|
BuildRequires: perl(SVG)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(Wx)
|
|
BuildRequires: perl(XML::SAX)
|
|
BuildRequires: perl(XML::SAX::ExpatXS)
|
|
BuildRequires: desktop-file-utils
|
|
Requires: perl(Class::XSAccessor)
|
|
Requires: perl(Growl::GNTP)
|
|
Requires: perl(XML::SAX)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
%if 0%{?fedora} < 18
|
|
# This is provided by XML::SAX (but not stated there)
|
|
%filter_from_requires /perl(XML::SAX::PurePerl)/d
|
|
%filter_setup
|
|
%endif
|
|
|
|
%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
|
|
%setup -qn Slic3r-%{commit}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
|
|
%build
|
|
perl Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
|
|
./Build
|
|
|
|
%install
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
mv -f %{buildroot}%{_bindir}/%{name}.pl %{buildroot}%{_bindir}/%{name}
|
|
cp -a var/* %{buildroot}%{_datadir}/%{name}
|
|
ln -s ../%{name}/Slic3r.ico %{buildroot}%{_datadir}/pixmaps/%{name}.ico
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%files
|
|
%doc MANIFEST README.markdown
|
|
%{_bindir}/%{name}
|
|
%{perl_vendorlib}/Slic3r*
|
|
%{_datadir}/pixmaps/%{name}.ico
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/%{name}
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Tue Apr 23 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-4
|
|
- Removed (optional) Net::DBus usage, that causes crashes
|
|
|
|
* Tue Apr 23 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-3
|
|
- Added second patch to fix upstream issue 1077
|
|
|
|
* Tue Apr 23 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-2
|
|
- Added patch to fix upstream issue 1077
|
|
|
|
* 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)
|
|
|
|
* 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
|