Add needed bits for el5

Fix `mixed use of spaces-and tabs`
Minor cleanup and improved readability
epel9
Björn Esser 11 years ago
parent 0cc2c54dd0
commit f4dd072b50

@ -2,11 +2,12 @@
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
Name: fdupes
Summary: Finds duplicate files in a given set of directories
Version: 1.51
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Finds duplicate files in a given set of directories
%{?el5:Group: Applications/File}
License: MIT
Group: Applications/File
URL: https://code.google.com/p/fdupes/
Source0: https://fdupes.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: macros.fdupes
@ -19,6 +20,7 @@ Patch2: fdupes-1.51-check-permissions.patch
# Apply proper LDFLAGS
Patch3: fdupes-1.51-obey-ldflags.patch
%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)}
%description
FDUPES is a program for identifying duplicate files residing within specified
@ -47,6 +49,7 @@ make %{?_smp_mflags} \
%install
%{?el5:rm -rf %{buildroot}}
make install INSTALL="%{__install} -p" \
BIN_DIR=%{_bindir} \
MAN_BASE_DIR=%{_mandir} \
@ -56,6 +59,10 @@ mkdir -p %{buildroot}%{macrosdir}/macros.d
install -m 0644 %{SOURCE1} %{buildroot}%{macrosdir}/macros.d/
%clean
%{?el5:rm -rf %{buildroot}}
%files
%doc CHANGES CONTRIBUTORS README TODO
%doc %{_mandir}/man1/%{name}.1*
@ -64,6 +71,11 @@ install -m 0644 %{SOURCE1} %{buildroot}%{macrosdir}/macros.d/
%changelog
* Tue Mar 18 2014 Björn Esser <bjoern.esser@gmail.com> - 1.51-5
- Add needed bits for el5
- Fix `mixed use of spaces-and tabs`
- Minor cleanup and improved readability
* Tue Mar 18 2014 Björn Esser <bjoern.esser@gmail.com> - 1.51-4
- Place rpm-macros into proper location using %%global macrosdir
- Apply proper LDFLAGS

Loading…
Cancel
Save