fslint/fslint.spec

94 lines
3.2 KiB
RPMSpec
Raw Permalink Normal View History

Name: fslint
Version: 2.45
Release: 1mamba
Summary: A utility to find and clean various forms of unwanted extraneous files on a computer file system
Group: Graphical Desktop/Applications/Utilities
Vendor: openmamba
Distribution: openmamba
Packager: Fabio Giani <fabio.giani@gmail.com>
URL: http://www.pixelbeat.org/fslint/
# Source tarball created from:
# svn checkout http://fslint.googlecode.com/svn/trunk/ fslint
Source: http://www.pixelbeat.org/fslint/fslint-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: cpio
BuildRequires: findutils
BuildRequires: pygtk
BuildRequires: python
## AUTOBUILDREQ-END
BuildRequires: gettext
BuildRequires: desktop-file-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
FSlint is a utility to find and clean various forms of unwanted extraneous files on a computer file system. This excess of unnecessary files is referred to as lint. FSlint will help find unwanted or problematic lint in your files or file names. The most common forms of lint FSlint finds are duplicate files, empty directories, and improper names. FSlint has multiple tools to perform a multitude of tasks in both the graphical interface and command line modes.
%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
* Mon Mar 03 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.45-1mamba
- update to 2.45
* Sun Feb 27 2011 Fabio Giani <fabio.giani@gmail.com> 2.42-1mamba
- package created by autospec