98be965bb9
Update to new upstream version 0.6.5b OBS-URL: https://build.opensuse.org/request/show/98620 OBS-URL: https://build.opensuse.org/package/show/Education/fritzing?expand=0&rev=8
68 lines
2.1 KiB
RPMSpec
68 lines
2.1 KiB
RPMSpec
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
Name: fritzing
|
|
Version: 0.6.5b
|
|
Release: 0
|
|
License: GPLv3+
|
|
Summary: Intuitive EDA platform featuring from prototype to product
|
|
Url: http://fritzing.org/
|
|
Group: Productivity/Scientific/Electronics
|
|
Source0: http://fritzing.org/download/%{version}/source-tarball/%{name}-%{version}.source.tar.bz2
|
|
Requires: libqt4-sql-sqlite libqt4-x11
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: libqt4-devel
|
|
%if 0%{?centos_version} || 0%{?rhel_version}
|
|
BuildRequires: qt4-devel gcc-c++
|
|
%endif
|
|
%if 0%{?fedora}
|
|
BuildRequires: qt gcc-c++ libstdc++-devel
|
|
%endif
|
|
|
|
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
|
|
%setup -q -n %{name}-%{version}.source
|
|
sed -i 's/\r$//' README.txt
|
|
sed -i 's/\r$//' LICENSE.CC-BY-SA
|
|
|
|
%build
|
|
%if 0%{?mandriva_version} || 0%{?centos_version}
|
|
export PATH=/usr/lib/qt4/bin:/usr/lib64/qt4/bin:$PATH
|
|
export QTDIR=%{_prefix}/lib/qt4/
|
|
%endif
|
|
%if 0%{?fedora} || 0%{?rhel_version}
|
|
qmake-qt4
|
|
%else
|
|
qmake
|
|
%endif
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
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 {} \;
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.txt LICENSE.GPL2 LICENSE.GPL3 LICENSE.CC-BY-SA
|
|
%{_bindir}/Fritzing
|
|
%{_datadir}/%{name}/
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%{_datadir}/applications/fritzing.desktop
|
|
%{_mandir}/man1/Fritzing.*
|
|
|
|
%changelog |