2011-06-05 00:57:23 +02:00
|
|
|
#
|
2012-01-03 17:34:05 +01:00
|
|
|
# spec file for package fritzing
|
|
|
|
#
|
2017-02-01 12:23:03 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-01-03 17:34:05 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2011-06-05 00:57:23 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2012-01-03 17:34:05 +01:00
|
|
|
|
|
|
|
|
2011-06-05 00:57:23 +02:00
|
|
|
Name: fritzing
|
2017-02-04 13:14:11 +01:00
|
|
|
Version: 0.9.3b
|
2011-07-23 10:56:32 +02:00
|
|
|
Release: 0
|
2017-02-06 19:05:41 +01:00
|
|
|
Summary: Electronic Design Automation platform featuring prototype to product
|
2013-01-13 19:34:04 +01:00
|
|
|
License: GPL-3.0+
|
2011-12-17 00:39:59 +01:00
|
|
|
Group: Productivity/Scientific/Electronics
|
2013-01-13 19:34:04 +01:00
|
|
|
Url: http://fritzing.org/
|
2015-08-21 15:05:16 +02:00
|
|
|
Source0: https://github.com/fritzing/fritzing-app/archive/%{version}.tar.gz
|
|
|
|
#PATCH-FIX-UPSTREAM fritzing-restore-qt5.1-compatibility.patch -- this patch restores compatibility with Qt5.1
|
|
|
|
Patch0: fritzing-restore-qt5.1-compatibility.patch
|
2017-02-04 13:14:11 +01:00
|
|
|
#PATCH-FIX-UPSTREAM fritzing-libgit-0.24.patch -- make fritzing compatible with libgit2 > 0.23
|
|
|
|
Patch1: fritzing-libgit-0.24.patch
|
|
|
|
#PATCH-FIX-UPSTREAM fritzing-cleanup-build-files.patch -- use system boost, libgit and clean up build files
|
|
|
|
Patch2: fritzing-cleanup-build-files.patch
|
|
|
|
#PATCH-FIX-UPSTREAM fritzing-folderutils-fix.patch -- fix folderutils to properly return parts folder
|
|
|
|
Patch3: fritzing-folderutils-fix.patch
|
2017-02-01 12:23:03 +01:00
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
%else
|
2017-02-04 13:14:11 +01:00
|
|
|
BuildRequires: boost_1_58_0-devel
|
2017-02-01 12:23:03 +01:00
|
|
|
%endif
|
2012-02-08 12:41:48 +01:00
|
|
|
BuildRequires: fdupes
|
2017-02-04 13:14:11 +01:00
|
|
|
BuildRequires: libgit2-devel >= 0.23
|
2015-08-21 15:05:16 +02:00
|
|
|
BuildRequires: libqt5-qtbase-devel
|
2017-02-04 13:14:11 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2017-02-01 12:23:03 +01:00
|
|
|
BuildRequires: zlib-devel
|
2015-08-21 15:05:16 +02:00
|
|
|
%if 0%{?suse_version} < 1320
|
|
|
|
BuildRequires: libQt5SerialPort-devel
|
|
|
|
BuildRequires: libQt5Svg-devel
|
|
|
|
Requires: libqt5-sql-sqlite
|
|
|
|
%else
|
|
|
|
BuildRequires: libqt5-qtserialport-devel
|
|
|
|
BuildRequires: libqt5-qtsvg-devel
|
|
|
|
Requires: libQt5Sql5-sqlite
|
2012-02-08 12:41:48 +01:00
|
|
|
%endif
|
2015-08-21 15:05:16 +02:00
|
|
|
Requires: fritzing-parts = %{version}
|
2017-02-04 13:14:11 +01:00
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(postun): shared-mime-info
|
|
|
|
Requires(post): desktop-file-utils
|
|
|
|
Requires(postun): desktop-file-utils
|
2011-07-28 16:42:13 +02:00
|
|
|
|
2011-06-05 00:57:23 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2017-02-06 19:05:41 +01:00
|
|
|
Fritzing is an initiative to support designers, artists,
|
2011-06-05 00:57:23 +02:00
|
|
|
researchers and hobbyists to take the step from physical prototyping
|
2017-02-06 19:05:41 +01:00
|
|
|
to an actual product. It is in the spirit of Processing and Arduino which
|
|
|
|
allow users to document their Arduino and other electronic-based
|
2011-06-05 00:57:23 +02:00
|
|
|
prototypes, and to create a PCB layout for manufacturing.
|
|
|
|
|
|
|
|
%prep
|
2015-08-21 15:05:16 +02:00
|
|
|
%setup -q -n %{name}-app-%{version}
|
|
|
|
%patch0 -p2
|
2017-02-04 13:14:11 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2011-12-17 00:39:59 +01:00
|
|
|
sed -i 's/\r$//' LICENSE.CC-BY-SA
|
2015-08-21 15:05:16 +02:00
|
|
|
chmod -x LICENSE* readme.md Fritzing.1
|
2011-06-05 00:57:23 +02:00
|
|
|
|
|
|
|
%build
|
2017-02-04 13:14:11 +01:00
|
|
|
# QMAKE_CFLAGS_ISYSTEM= added to work around gcc6 build problems
|
|
|
|
qmake-qt5 QMAKE_CFLAGS_ISYSTEM=
|
2011-06-05 00:57:23 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2011-12-17 00:39:59 +01:00
|
|
|
make INSTALL_ROOT=%{buildroot} install
|
|
|
|
install -d %{buildroot}%{_datadir}/pixmaps/
|
|
|
|
mv %{buildroot}%{_datadir}/icons/fritzing.png %{buildroot}%{_datadir}/pixmaps/
|
2017-02-04 13:14:11 +01:00
|
|
|
sed -i '/X-SuSE-translate=false/d' fritzing.desktop
|
|
|
|
sed -i '/Version=/d' fritzing.desktop
|
|
|
|
sed -i '/Categories=/d' fritzing.desktop
|
|
|
|
sed -i 's/icons\/fritzing_icon.png/fritzing/g' fritzing.desktop
|
|
|
|
%suse_update_desktop_file --install --reset %name Development IDE
|
2015-08-21 15:05:16 +02:00
|
|
|
find %{buildroot}%{_datadir}/%{name}/ -type f -exec chmod -x {} \;
|
|
|
|
rm -rf %{buildroot}%{_datadir}/%{name}/parts
|
2014-07-15 10:37:35 +02:00
|
|
|
%fdupes %{buildroot}%{_datadir}/%{name}/sketches
|
2011-06-05 00:57:23 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2015-08-21 15:05:16 +02:00
|
|
|
%doc readme.md LICENSE.GPL2 LICENSE.GPL3 LICENSE.CC-BY-SA
|
2011-12-17 00:39:59 +01:00
|
|
|
%{_bindir}/Fritzing
|
2011-06-05 00:57:23 +02:00
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
2011-12-17 00:39:59 +01:00
|
|
|
%{_datadir}/applications/fritzing.desktop
|
|
|
|
%{_mandir}/man1/Fritzing.*
|
2017-02-04 13:14:11 +01:00
|
|
|
%{_datadir}/mime/packages/*.xml
|
|
|
|
|
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%mime_database_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%mime_database_postun
|
2011-06-05 00:57:23 +02:00
|
|
|
|
2012-01-03 17:34:05 +01:00
|
|
|
%changelog
|