Make rpmlint happy (#1294568)

This commit is contained in:
Robert Scheck 2015-12-29 04:25:29 +01:00
parent 6c37568813
commit ff84c3efd2

View File

@ -17,6 +17,7 @@ Requires: udev
BuildRequires: libusb1-devel BuildRequires: libusb1-devel
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: libgcrypt-devel BuildRequires: libgcrypt-devel
BuildRequires: chrpath
Obsoletes: libmtp-hal Obsoletes: libmtp-hal
%description %description
@ -71,6 +72,9 @@ ln -sf mtp-connect mtp-newfolder
ln -sf mtp-connect mtp-sendfile ln -sf mtp-connect mtp-sendfile
ln -sf mtp-connect mtp-sendtr ln -sf mtp-connect mtp-sendtr
popd popd
# Convert COPYING file to UTF-8
iconv -f iso-8859-1 -t utf-8 -o COPYING.utf8 COPYING
touch -r COPYING COPYING.utf8; mv -f COPYING.utf8 COPYING
# Copy documentation to a good place # Copy documentation to a good place
mkdir -p -m 755 $RPM_BUILD_ROOT%{_pkgdocdir} mkdir -p -m 755 $RPM_BUILD_ROOT%{_pkgdocdir}
install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \ install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \
@ -81,7 +85,9 @@ mv $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html \
# Touch generated files to make them always have the same time stamp. # Touch generated files to make them always have the same time stamp.
touch -r configure.ac \ touch -r configure.ac \
$RPM_BUILD_ROOT%{_includedir}/*.h \ $RPM_BUILD_ROOT%{_includedir}/*.h \
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc \ $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc
# Get rid of -rpath
chrpath --delete $RPM_BUILD_ROOT{%{_bindir},/lib/udev}/mtp*
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT