2011-06-05 00:57:23 +02:00
|
|
|
#
|
2012-01-03 17:34:05 +01:00
|
|
|
# spec file for package fritzing
|
|
|
|
#
|
2013-01-13 19:34:04 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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
|
2013-07-27 09:05:48 +02:00
|
|
|
Version: 0.8.2b
|
2011-07-23 10:56:32 +02:00
|
|
|
Release: 0
|
2011-06-05 00:57:23 +02:00
|
|
|
Summary: Intuitive EDA platform featuring from 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/
|
2012-04-10 17:22:16 +02:00
|
|
|
Source0: http://fritzing.org/download/%{version}/source-tarball/%{name}-%{version}.source.tar.bz2
|
2013-01-13 19:34:04 +01:00
|
|
|
Requires: libqt4-sql-sqlite
|
|
|
|
Requires: libqt4-x11
|
2013-02-28 09:55:48 +01:00
|
|
|
BuildRequires: boost-devel
|
2011-06-05 00:57:23 +02:00
|
|
|
BuildRequires: desktop-file-utils
|
2013-01-13 19:34:04 +01:00
|
|
|
BuildRequires: libqt4-devel >= 4.7
|
2012-02-08 12:41:48 +01:00
|
|
|
%if 0%{?suse_version} || 0%{?sles_version}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
2011-08-03 13:50:55 +02:00
|
|
|
%if 0%{?centos_version} || 0%{?rhel_version}
|
2013-01-13 19:34:04 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: qt4-devel
|
2011-08-03 13:50:55 +02:00
|
|
|
%endif
|
2011-07-28 16:42:13 +02:00
|
|
|
%if 0%{?fedora}
|
2013-01-13 19:34:04 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: qt
|
2011-07-28 16:42:13 +02:00
|
|
|
%endif
|
|
|
|
|
2011-06-05 00:57:23 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Fritzing is an open-source initiative to support designers, artists,
|
|
|
|
researchers and hobbyists to take the step from physical prototyping
|
|
|
|
to actual product. It is in the spirit of Processing and Arduino which
|
|
|
|
allows users to document their Arduino and other electronic-based
|
|
|
|
prototypes, and to create a PCB layout for manufacturing.
|
|
|
|
|
|
|
|
%prep
|
2011-12-17 00:39:59 +01:00
|
|
|
%setup -q -n %{name}-%{version}.source
|
|
|
|
sed -i 's/\r$//' README.txt
|
|
|
|
sed -i 's/\r$//' LICENSE.CC-BY-SA
|
2011-06-05 00:57:23 +02:00
|
|
|
|
|
|
|
%build
|
2011-08-03 13:50:55 +02:00
|
|
|
%if 0%{?mandriva_version} || 0%{?centos_version}
|
|
|
|
export PATH=/usr/lib/qt4/bin:/usr/lib64/qt4/bin:$PATH
|
2011-07-28 16:42:13 +02:00
|
|
|
export QTDIR=%{_prefix}/lib/qt4/
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora} || 0%{?rhel_version}
|
|
|
|
qmake-qt4
|
|
|
|
%else
|
2011-06-05 00:57:23 +02:00
|
|
|
qmake
|
2011-07-28 16:42:13 +02:00
|
|
|
%endif
|
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/
|
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications fritzing.desktop
|
|
|
|
find %{buildroot}%{_datadir}/%{name}/parts -name *.svg -exec chmod -x {} \;
|
|
|
|
find %{buildroot}%{_datadir}/%{name}/parts -name *.fzp -exec chmod -x {} \;
|
2012-02-08 12:41:48 +01:00
|
|
|
%if 0%{?suse_version} || 0%{?sles_version}
|
|
|
|
%fdupes %{buildroot}%{_datadir}/%{name}/parts
|
|
|
|
%endif
|
2011-06-05 00:57:23 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2011-08-03 13:50:55 +02:00
|
|
|
%doc README.txt 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.*
|
2011-06-05 00:57:23 +02:00
|
|
|
|
2012-01-03 17:34:05 +01:00
|
|
|
%changelog
|