Name: fritzing-parts Version: 0.9.3b Release: 1%{?dist} Summary: Parts library for the Fritzing electronic design application # The overall distribution is licensed as CC-BY-SA (see LICENSE.txt), but # many individual SVG parts in the svg/ directory are licensed as GPL+; # please see the fz:attr elements named "dist-license", "use-license", and # "license-url" under the rdf:RDF section of each SVG document for details. License: CC-BY-SA and GPL+ URL: http://fritzing.org/ Source0: https://github.com/fritzing/%{name}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: fritzing %description Fritzing is a free software tool to support designers, artists and hobbyists to work creatively with interactive electronics. The fritzing-parts package contains a library of part definitions, including both meta-data and related graphics. %prep %setup -q -b0 # Get rid of git-related files find . -name placeholder.txt -exec rm -vf {} \; rm -vf .gitignore # Get rid of duplicate LICENSE.txt files find svg -name LICENSE.txt -exec rm -vf {} \; %build # Nothing to do. %install mkdir -p %{buildroot}%{_datadir}/fritzing/parts cp -a bins %{buildroot}%{_datadir}/fritzing/parts cp -a contrib %{buildroot}%{_datadir}/fritzing/parts cp -a core %{buildroot}%{_datadir}/fritzing/parts cp -a obsolete %{buildroot}%{_datadir}/fritzing/parts cp -a svg %{buildroot}%{_datadir}/fritzing/parts cp -a user %{buildroot}%{_datadir}/fritzing/parts # This is necessary to avoid a crash in FApplication::runDatabaseService # where "pdb" is forcefully indexed (causing a crash if missing). mkdir %{buildroot}%{_datadir}/fritzing/pdb Fritzing -platform minimal \ -f %{buildroot}%{_datadir}/fritzing/parts \ -db %{buildroot}%{_datadir}/fritzing/parts/parts.db # Cleanup rmdir %{buildroot}%{_datadir}/fritzing/pdb %files %doc README.md CONTRIBUTING.md %license LICENSE.txt %{_datadir}/fritzing %changelog * Sun Aug 06 2017 Ed Marshall - 0.9.3b-1 - Initial separate packaging of Fritzing parts library.