"Fossies" - the Fresh Open Source Software Archive

Member "fslint-2.46/fslint.spec" (2 Feb 2017, 4159 Bytes) of package /linux/privat/fslint-2.46.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "fslint.spec": 2.44_vs_2.46.

    1 %define mandriva %([ -f /etc/mandrake-release ] && echo 1 || echo 0)
    2 %define suse %([ -f /etc/SuSE-release ] && echo 1 || echo 0)
    3 
    4 Name:           fslint
    5 Version:        2.46
    6 %if %{mandriva}
    7 Release:        1.mdv
    8 %endif
    9 %if %{suse}
   10 Release:        1.suse
   11 %endif
   12 %if !%{mandriva} && !%{suse}
   13 Release:        1
   14 %endif
   15 Summary:        File System "lint" discovery and cleaning utility
   16 
   17 Group:          Applications/File
   18 License:        GPL
   19 URL:            http://www.pixelbeat.org/fslint/
   20 Source0:        http://www.pixelbeat.org/fslint/%{name}-%{version}.tar.gz
   21 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
   22 
   23 BuildArch:      noarch
   24 BuildRequires:  gettext >= 0.13, desktop-file-utils
   25 
   26 Requires:       python >= 2.3, cpio, findutils
   27 %if %{mandriva}
   28 Requires:       pygtk2.0 >= 2.4, pygtk2.0-libglade
   29 %endif
   30 %if %{suse}
   31 Requires:       python-gtk >= 2.4
   32 %endif
   33 %if !%{mandriva} && !%{suse}
   34 Requires:       pygtk2 >= 2.4, pygtk2-libglade
   35 %endif
   36 
   37 %description
   38 FSlint is a utility to find redundant disk usage like duplicate files
   39 for example. It can be used to reclaim disk space and fix other problems
   40 like file naming issues and bad symlinks etc.
   41 It includes a GTK+ GUI as well as a command line interface.
   42 
   43 
   44 %prep
   45 %setup -q -n %{name}-%{version}
   46 %{__perl} -pi -e 's|^liblocation=.*$|liblocation="%{_datadir}/%{name}" #RPM edit|' fslint-gui
   47 %{__perl} -pi -e 's|^locale_base=.*$|locale_base=None #RPM edit|' fslint-gui
   48 
   49 
   50 %build
   51 # Not.
   52 
   53 
   54 %install
   55 rm -rf $RPM_BUILD_ROOT
   56 install -Dpm 755 fslint-gui $RPM_BUILD_ROOT%{_bindir}/fslint-gui
   57 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}/{fstool,supprt}
   58 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}/supprt/rmlint
   59 install -dm 755 $RPM_BUILD_ROOT%{_mandir}/man1
   60 install -pm 644 fslint.glade fslint_icon.png \
   61   $RPM_BUILD_ROOT%{_datadir}/%{name}
   62 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/pixmaps
   63 ln -s ../%{name}/fslint_icon.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
   64 install -pm 755 fslint/{find*,fslint,zipdir} \
   65   $RPM_BUILD_ROOT%{_datadir}/%{name}/fslint
   66 install -pm 755 fslint/fstool/* \
   67   $RPM_BUILD_ROOT%{_datadir}/%{name}/fslint/fstool
   68 install -pm 644 fslint/supprt/fslver \
   69   $RPM_BUILD_ROOT%{_datadir}/%{name}/fslint/supprt
   70 install -pm 755 fslint/supprt/get* \
   71   $RPM_BUILD_ROOT%{_datadir}/%{name}/fslint/supprt
   72 install -pm 755 fslint/supprt/md5sum_approx \
   73   $RPM_BUILD_ROOT%{_datadir}/%{name}/fslint/supprt
   74 install -pm 755 fslint/supprt/rmlint/* \
   75   $RPM_BUILD_ROOT%{_datadir}/%{name}/fslint/supprt/rmlint
   76 
   77 cp -a man/* \
   78   $RPM_BUILD_ROOT%{_mandir}/man1/
   79 
   80 make -C po DESTDIR=$RPM_BUILD_ROOT LOCALEDIR=%{_datadir}/locale install
   81 
   82 desktop-file-install \
   83   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
   84   --mode 644 \
   85   --vendor "pixelbeat" \
   86   %{name}.desktop
   87 
   88 %find_lang %{name}
   89 
   90 
   91 %clean
   92 rm -rf $RPM_BUILD_ROOT
   93 
   94 
   95 %files -f %{name}.lang
   96 %defattr(-,root,root,-)
   97 %doc doc/*
   98 %{_mandir}/man1/fslint*
   99 %{_bindir}/fslint-gui
  100 %{_datadir}/%{name}
  101 %{_datadir}/applications/*%{name}.desktop
  102 %{_datadir}/pixmaps/fslint_icon.png
  103 
  104 
  105 %changelog
  106 * Tue Jul 21 2009 Pádraig Brady
  107 - Update GTK+ and Python deps to 2.4 and 2.3 respectively
  108 
  109 * Fri Mar 09 2007 Pádraig Brady
  110 - Put more info in description so the package is
  111   easier to find in repositories
  112 
  113 * Wed Nov 01 2006 Pádraig Brady
  114 - Support SuSE
  115 - Removed 0 Epoch to align with fedora policies
  116 
  117 * Thu Jun 22 2006 Pádraig Brady
  118 - Added man pages for fslint and fslint-gui
  119 - Support Mandriva
  120 - Other minor cleanups to align with debian package
  121   (suggested by lintian)
  122 
  123 * Mon Jan 02 2006 Pádraig Brady
  124 - /usr/bin/{fs,FS}lint -> /usr/bin/fslint-gui
  125 - Tidy up /usr/bin/fslint/fslint directory
  126 
  127 * Mon Aug 16 2004 Pádraig Brady
  128 - Incorporated more packaging changes from fedora
  129 
  130 * Mon Sep 01 2003 Pádraig Brady
  131 - Incorporated some packaging changes from fedora
  132 
  133 * Tue Jul 08 2003 Pádraig Brady
  134 - Added translation files
  135 
  136 * Thu Jan 16 2003 Pádraig Brady
  137 - Changes for gnome2 (redhat 8.x)
  138 - Make install really independent of python version, previously it
  139   (even though I thought I handled it correctly) assumed the same python
  140   version as the rpm build machine
  141 
  142 * Thu Dec 16 2002 Pádraig Brady
  143 - First incarnation