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