Permalink
Browse files

* The resulting RPM can't be noarch as _libdir is used. The _libdir m…

…acro expands to /usr/lib in 32-bit systems and to /usr/lib64 in 64-bit systems.

 * Replace the macro _datarootdir by the macro _datadir. The _datadir
   macro expands by default to the same value as the macro _datarootdir
   and is more universal (the macro _datarootdir is not defined in
   RHEL 5 and clones).
  • Loading branch information...
1 parent 0e01df7 commit f5e6c90765485aadbcf1c5cbe7784b553492c489 Jose Pedro Oliveira committed with nniclausse May 18, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 tsung.spec.in
View
@@ -15,7 +15,6 @@ Vendor: Process-one
Packager: Nicolas Niclausse <nicolas@niclux.org>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch: noarch
BuildRequires: erlang
@@ -47,20 +46,20 @@ rm -rf $RPM_BUILD_ROOT
export DESTDIR=$RPM_BUILD_ROOT %makeinstall
install -p -m 644 CHANGES CONTRIBUTORS COPYING README TODO \
- $RPM_BUILD_ROOT%{_datarootdir}/doc/%{name}/
+ $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc %{_datarootdir}/doc/tsung/*
+%doc %{_datadir}/doc/tsung/*
%{_bindir}/tsung
%{_bindir}/tsung-recorder
%{_bindir}/tsplot
%{_libdir}/erlang/lib
%{_libdir}/tsung
-%{_datarootdir}/tsung
+%{_datadir}/tsung
%{_mandir}/man1/tsung.1*
%{_mandir}/man1/tsplot.1*
%{_mandir}/man1/tsung-recorder.1*

0 comments on commit f5e6c90

Please sign in to comment.