%if 0%{?fedora} >= 17 %global _gnomesearchdir %{_datadir}/gnome-shell/open-search-providers %else %global _gnomesearchdir %{_datadir}/gnome-shell/search_providers %endif Name: gnome-shell-search-fedora-packages Version: 0.1 Release: 4%{?dist} Summary: Search the fedora-packages webapp from the gnome-shell Group: User Interface/Desktops License: GPLv3 URL: http://threebean.org/%{name}-%{version}.tar.gz Source0: http://threebean.org/%{name}-%{version}.tar.gz BuildArch: noarch Requires: gnome-shell %description Search the fedora-packages webapp from the gnome-shell %prep %setup -q -n %{name} %build # nothing to build %install mkdir -p $RPM_BUILD_ROOT/%{_gnomesearchdir} cp fedora-packages.xml $RPM_BUILD_ROOT/%{_gnomesearchdir}/. %files %{_gnomesearchdir}/fedora-packages.xml %changelog * Thu May 24 2012 Ralph Bean - 0.1-4 - Re-added mkdir -p in %%install - Removed BuildRequires for gnome-shell * Thu May 24 2012 Ralph Bean - 0.1-3 - Change providers_dir macro to full path _gnomesearchdir - Removed mkdir -p in %%install * Thu May 24 2012 Ralph Bean - 0.1-2 Support F16 with providers_dir global * Thu May 24 2012 Ralph Bean - 0.1-1 Initial packaging for Fedora