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

@ -1,24 +1,26 @@
# Place rpm-macros into proper location. # Place rpm-macros into proper location.
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
Name: fdupes Name: fdupes
Summary: Finds duplicate files in a given set of directories Version: 1.51
Version: 1.51 Release: 5%{?dist}
Release: 4%{?dist} Summary: Finds duplicate files in a given set of directories
License: MIT %{?el5:Group: Applications/File}
Group: Applications/File
URL: https://code.google.com/p/fdupes/ License: MIT
Source0: https://fdupes.googlecode.com/files/%{name}-%{version}.tar.gz URL: https://code.google.com/p/fdupes/
Source1: macros.fdupes Source0: https://fdupes.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: macros.fdupes
Patch0: fdupes-1.51-destdir.patch
Patch0: fdupes-1.51-destdir.patch
# http://bugs.debian.org/353789 # http://bugs.debian.org/353789
Patch1: fdupes-1.51-typo.patch Patch1: fdupes-1.51-typo.patch
# Fix CVE # Fix CVE
Patch2: fdupes-1.51-check-permissions.patch Patch2: fdupes-1.51-check-permissions.patch
# Apply proper LDFLAGS # Apply proper LDFLAGS
Patch3: fdupes-1.51-obey-ldflags.patch Patch3: fdupes-1.51-obey-ldflags.patch
%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)}
%description %description
FDUPES is a program for identifying duplicate files residing within specified FDUPES is a program for identifying duplicate files residing within specified
@ -34,9 +36,9 @@ directories.
%build %build
make %{?_smp_mflags} \ make %{?_smp_mflags} \
COMPILER_OPTIONS="%{?optflags}" \ COMPILER_OPTIONS="%{?optflags}" \
LDFLAGS="%{?__global_ldflags}" LDFLAGS="%{?__global_ldflags}"
%check %check
@ -47,15 +49,20 @@ make %{?_smp_mflags} \
%install %install
make install INSTALL="%{__install} -p" \ %{?el5:rm -rf %{buildroot}}
BIN_DIR=%{_bindir} \ make install INSTALL="%{__install} -p" \
MAN_BASE_DIR=%{_mandir} \ BIN_DIR=%{_bindir} \
DESTDIR=%{buildroot} MAN_BASE_DIR=%{_mandir} \
DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{macrosdir}/macros.d mkdir -p %{buildroot}%{macrosdir}/macros.d
install -m 0644 %{SOURCE1} %{buildroot}%{macrosdir}/macros.d/ install -m 0644 %{SOURCE1} %{buildroot}%{macrosdir}/macros.d/
%clean
%{?el5:rm -rf %{buildroot}}
%files %files
%doc CHANGES CONTRIBUTORS README TODO %doc CHANGES CONTRIBUTORS README TODO
%doc %{_mandir}/man1/%{name}.1* %doc %{_mandir}/man1/%{name}.1*
@ -64,6 +71,11 @@ install -m 0644 %{SOURCE1} %{buildroot}%{macrosdir}/macros.d/
%changelog %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 * Tue Mar 18 2014 Björn Esser <bjoern.esser@gmail.com> - 1.51-4
- Place rpm-macros into proper location using %%global macrosdir - Place rpm-macros into proper location using %%global macrosdir
- Apply proper LDFLAGS - Apply proper LDFLAGS

Loading…
Cancel
Save