%global majorver 1.2 %define mainver 1.2.2 %undefine betaver %define fedoraver 1 Name: catfish Version: %{mainver} Release: %{?betaver:0.}%{fedoraver}%{?betaver:.%betaver}%{?dist} Summary: A handy file search tool Group: Applications/File License: GPLv2+ URL: https://launchpad.net/catfish-search Source0: https://launchpad.net/catfish-search/%{majorver}/%{mainver}/+download/%{name}-%{mainver}%{?betaver}.tar.bz2 BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: intltool # python related Requires: pygobject3 Requires: python-pexpect Requires: xdg-utils # search engine Requires: %{_bindir}/locate # icon # Requires: redhat-artwork # Upstream rename Obsoletes: search4files <= 0.2a Provides: search4files = %{version}-%{release} # Obsolete old search engine subpackage Obsoletes: catfish-engines <= 0.6 %description Catfish is a handy file searching tool. The interface is intentionally lightweight and simple, using only GTK+3. You can configure it to your needs by using several command line options. %prep %setup -q -n %{name}-%{mainver}%{?betaver} # Fix up permissions... find . -type f -print0 | xargs --null chmod 0644 chmod 0755 \ configure \ build.py %build # Some configulation changes # # msgfmt is fixed. %{__sed} -i.misc \ -e '\@catfish/@s|install|install -p -m 644|' \ -e '\@catfish_lib/@s|install|install -p -m 644|' \ -e '\@data/@s|install|install -p -m 644|' \ -e '\@install .*-d@s|644|755|' \ -e 's|cp -rf|cp -prf|' \ Makefile.in.in %{__sed} -i.byte \ -e 's|pyc|py|' \ bin/%{name}.in.in # This configure accepts only the option --prefix # and does not accept --libdir= option ./configure \ --prefix=%{_prefix} \ --python=python2 %install %{__make} install DESTDIR=$RPM_BUILD_ROOT desktop-file-install \ --delete-original \ %if 0%{?fedora} < 19 --vendor fedora \ %endif --dir $RPM_BUILD_ROOT%{_datadir}/applications \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop # Install man page manually %{__mkdir_p} $RPM_BUILD_ROOT%{_mandir}/man1 %{__install} -cpm 0644 ./%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/ # Remove all unnecessary documentation %{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/doc/ %{find_lang} %{name} %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README TODO %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_datadir}/applications/*%{name}.desktop %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/%{name}/ %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %changelog * Wed Oct 1 2014 Mamoru TASAKA - 1.2.2-1 - 1.2.2 * Mon Sep 8 2014 Mamoru TASAKA - 1.2.1-1 - 1.2.1 * Wed Aug 13 2014 Mamoru TASAKA - 1.0.3-1 - 1.0.3 * Sat Jun 07 2014 Fedora Release Engineering - 1.0.2-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Mar 14 2014 Mamoru TASAKA - 1.0.2-1 - 1.0.2 * Sun Mar 02 2014 Mamoru TASAKA - 1.0.1-1 - 1.0.1 - Fix insecure loading of script at startup (CVE-2014-2093 through CVE-2014-2096, bug 1069398) * Sat Feb 15 2014 Mamoru TASAKA - 1.0.0-1 - 1.0.0 * Thu Oct 3 2013 Mamoru TASAKA - 0.8.2-1 - 0.8.2 * Fri Aug 16 2013 Mamoru TASAKA - 0.6.4-1 - 0.6.4 * Sat Aug 03 2013 Fedora Release Engineering - 0.4.0.2-3.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 1 2013 Mamoru TASAKA - 0.4.0.2-3 - Fix GError module error on launch (bug 964356) - Fix infinite loop when searching words with asterisk (bug 964356) * Sat Feb 23 2013 Toshio Kuratomi - 0.4.0.2-2.1 - Update stock_info patch so that build completes * Wed Feb 13 2013 Fedora Release Engineering - 0.4.0.2-2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Feb 9 2013 Mamoru TASAKA - 0.4.0.2-2 - F-19: kill vendorization of desktop file (fpc#247) * Fri Oct 05 2012 Christoph Wickert - 0.4.0.2-1 - Update to 0.4.02 (GTK3 port) - Require pygobject3 instead of pygtk2-libglade * Wed Jul 18 2012 Fedora Release Engineering - 0.3.2-5.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Apr 4 2012 Mamoru Tasaka - 0.3.2-5 - Remove pinot dependency, seems no longer available * Thu Jan 12 2012 Fedora Release Engineering - 0.3.2-4.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Dec 14 2011 Mamoru Tasaka - 0.3.2-4 - Don't use missing gtk.STOCK_INFO (bug 753512) * Tue Feb 08 2011 Fedora Release Engineering - 0.3.2-3.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 23 2010 Mamoru Tasaka - F-14: rebuild against python 2.7 * Sat Jul 25 2009 Mamoru Tasaka - 0.3.2-3 - F-12: Mass rebuild * Tue Feb 24 2009 Mamoru Tasaka - 0.3.2-2 - GTK icon cache updating script update * Mon Dec 01 2008 Ignacio Vazquez-Abrams - Rebuild for Python 2.6 * Tue Oct 28 2008 Mamoru Tasaka 0.3.2-1 - 0.3.2 * Thu Oct 18 2007 Mamoru Tasaka 0.3-1 - 0.3 * Fri Oct 5 2007 Mamoru Tasaka 0.3-0.3.c - Remove beagle dependency for now because beagle is not available on ppc64 (although catfish itself is noarch :( ) * Wed Oct 3 2007 Mamoru Tasaka 0.3-0.2.c - License update - Create sub-metapackage to install all supported search engines - Remove redhat-artwork dependency * Fri Aug 3 2007 Mamoru Tasaka 0.3-0.1.c - 0.3c * Tue May 15 2007 Mamoru Tasaka 0.3-0.1.b - 0.3b * Wed Apr 4 2007 Mamoru Tasaka 0.3-0.1.a - 0.3a * Wed Feb 28 2007 Mamoru Tasaka 0.2.2-1 - 0.2.2 * Sun Feb 18 2007 Mamoru Tasaka 0.2.1-1 - 0.2.1 * Wed Feb 14 2007 Mamoru Tasaka 0.2stable-1 - 0.2 * Wed Jan 30 2007 Mamoru Tasaka 0.2d-1 - 0.2d * Mon Jan 22 2007 Mamoru Tasaka 0.2c-1 - 0.2c * Sun Jan 14 2007 Mamoru Tasaka 0.2b-1 - Upstream rename: search4files -> catfish - Remove the dependencies for beagle, nautilus, replace with redhat-artwork * Mon Jan 1 2007 Mamoru Tasaka 0.2a-1 - 0.2a * Sat Dec 23 2006 Mamoru Tasaka - Require pyxdg again (fc7) * Wed Dec 20 2006 Mamoru Tasaka 0.1e-1 - 0.1e * Thu Dec 14 2006 Mamoru Tasaka 0.1d-1 - 0.1d - Disable pyxdg support on devel for now. * Sat Dec 8 2006 Mamoru Tasaka 0.1c-2 - Fix type typo * Fri Dec 8 2006 Mamoru Tasaka 0.1c-1 - Initial packaging to import to Fedora Extras.