diff --git a/.gitignore b/.gitignore index e69de29..31771e8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gnome-search-tool-3.3.1.tar.xz diff --git a/gnome-search-tool.spec b/gnome-search-tool.spec new file mode 100644 index 0000000..59d5626 --- /dev/null +++ b/gnome-search-tool.spec @@ -0,0 +1,85 @@ +Name: gnome-search-tool +Version: 3.3.1 +Release: 2%{?dist} +Summary: Utility for finding files for GNOME + +License: GPLv2+ and GFDL +#No URL for the package specifically, as of now +URL: http://www.gnome.org/gnome-3/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-search-tool/3.3/%{name}-%{version}.tar.xz + +BuildRequires: gtk3-devel +BuildRequires: GConf2-devel +BuildRequires: intltool +BuildRequires: gnome-doc-utils +BuildRequires: rarian-compat +BuildRequires: docbook-dtds +BuildRequires: libSM-devel +BuildRequires: desktop-file-utils + +Requires(pre): GConf2 +Requires(post): GConf2 +Requires(preun): GConf2 + + +%description +GNOME Search Tool is a utility for finding files on your system. To perform a +basic search, you can type a filename or a partial filename, with or without +wildcards. To refine your search, you can apply additional search options. + +GNOME Search Tool uses the find, grep, and locate UNIX commands. Since the +find, grep, and locate commands support the -i option, all searches are +case-insensitive. + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 + +make install DESTDIR=$RPM_BUILD_ROOT + +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop + +%find_lang %{name} --with-gnome + + +%pre +if [ "$1" -gt 1 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : +fi + +%post +export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` +gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : + +%preun +if [ "$1" -eq 0 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : +fi + + +%files -f %{name}.lang +%doc AUTHORS COPYING COPYING.docs NEWS +%{_sysconfdir}/gconf/schemas/%{name}.schemas +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/pixmaps/gsearchtool +%{_mandir}/man1/%{name}.1.gz + + +%changelog +* Mon Mar 5 2012 Rui Matos - 3.3.1-2 +- spec file cleanup + +* Tue Nov 15 2011 Anuj More - 3.3.1-1 +- rebuilt + diff --git a/sources b/sources index e69de29..eac3558 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6dc2f4deefcc1fc5650dc256a43b72c4 gnome-search-tool-3.3.1.tar.xz