Name: openclipart Version: 0.18 Release: 1 Summary: Open Clip Art Library Group: Applications/Publishing License: Public Domain URL: http://www.openclipart.org/ Source0: http://www.openclipart.org/downloads/%{version}/%{name}-%{version}-svgonly.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: dos2unix BuildArch: noarch %description Open Clip Art Gallery contains thousand of SVG vector images that can be freely used. SVG files can be opened in various tools including Inkscape vector graphics editor, OpenOffice.org and Firefox web browser. %prep %setup -q -n %{name}-%{version}-svgonly find . -name '*.svg' -exec dos2unix -k -q '{}' \; %build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} export PATH=/opt/freeware/bin:$PATH # Bundled makefile messes things up horribly, # (copies unnecessary files including vim backups and doesn't # handle spaces in names though they are actually present in-tree) cd clipart find . -name '*.svg' -exec sh -c ' DIR="${RPM_BUILD_ROOT}%{_datadir}/clipart/%{name}/$(dirname "{}")"; install -d "${DIR}"; install -m 644 "{}" "${DIR}"' \; %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc AUTHORS LICENSE ChangeLog NEWS README VERSION %{_datadir}/clipart %changelog * Thu May 27 2010 Michael Perzl - 0.18-1 - first version for AIX V5.1 and higher