%define obspkgs gnome-blog, yourmom, mymom, otherpkg < 1.1 Summary: Obsoletes orphaned/dead packages Name: package-swift.spec Version: 13 Release: 1 License: GPLv2+ Group: System Environment/Base BuildRoot: %{_tmppath}/%{name}-%{version}root BuildArchitectures: noarch Obsoletes: %{obspkgs} %description Utility package for the distribution to obsoleted orphaned or dead packages. Particularly useful for people updating from one release to the next so that their orphaned packages get removed. %prep %build %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc echo "%{obspkgs}" > $RPM_BUILD_ROOT/etc/obsolete-packages %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %{_sysconfdir}/obsolete-packages %changelog * Fri Jan 15 2010 Seth Vidal - first build