slic3r/slic3r.spec

169 lines
5.5 KiB
RPMSpec
Raw Normal View History

2013-03-21 16:52:33 +00:00
Name: slic3r
2013-06-24 14:36:39 +00:00
Version: 0.9.10b
Release: 2%{?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-06-25 17:10:52 +00:00
%global commit d0eac88ff9586b17dcc1766874f69dbd7e8c534f
2013-03-21 16:52:33 +00:00
%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
Source1: %{name}.desktop
BuildArch: noarch
2013-06-24 14:36:39 +00:00
BuildRequires: perl(Boost::Geometry::Utils) >= 0.12
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-04-03 14:53:27 +00:00
BuildRequires: perl(File::Spec)
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
BuildRequires: perl(Math::Geometry::Voronoi)
2013-03-21 16:52:33 +00:00
BuildRequires: perl(Math::PlanePath)
2013-04-03 14:53:27 +00:00
BuildRequires: perl(Module::Build)
BuildRequires: perl(Moo) >= 0.091009
BuildRequires: perl(parent)
2013-03-21 16:52:33 +00:00
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(SVG)
2013-04-03 14:53:27 +00:00
BuildRequires: perl(Test::More)
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-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))
%if 0%{?fedora} < 18
# This is provided by XML::SAX (but not stated there)
%filter_from_requires /perl(XML::SAX::PurePerl)/d
%endif
# Not actually needed
%filter_from_requires /perl(Wx::GLCanvas)/d
%filter_setup
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
%setup -qn Slic3r-%{commit}
%patch0 -p1
%patch1 -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 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)
* 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
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