-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting and Errors corrected
Eric Flumerfelt edited this page Jun 17, 2022
·
2 revisions
-
%setup -qDprevents removal of directory “TRACE-v3_13_09.” - “TRACE-v3_13_09” still could not be accessed with introduction of -D
option because the directory being built is simply called “TRACE.”
Renaming TRACE to the name expected by
%prep %setupby performing commandmv TRACE TRACE-v3_13_09in the BUILD directory allows successful execution of%prep stage, but I think this can be fixed within the appropriate file in the tar.bz2 archive. If the file is renamed this way it will always have to be renamed this way for everyone trying to build TRACE.
%prep
bunzip2 ~/rpmbuild/SOURCES/TRACE-3.13.09-slf7-x86_64.tar.bz2
tar -xf ~/rpmbuild/SOURCES/TRACE-3.13.09-slf7-x86_64.tar
mv ~/rpmbuild/BUILD/TRACE ~/rpmbuild/SOURCES/TRACE-v3_13_09
cd ~/rpmbuild/SOURCES
tar -cjf TRACE-3.13.09-slf7-x86_64.tar.bz2 TRACE-v3_13_09/
%setup -q
- Not sure if I need option “-D” for %setup here, which stops the
command
rm -rf TRACE-v3_13_09. Also, the following command after %setup:
“rm -r ~/rpmbuild/SOURCES/TRACE-3.13.09-slf7-x86_64.tar”
<code class="ruby">
Name: TRACE
Version: v3_13_09
Release: 1%{?dist}
Summary: Logging tool that allows fast and/or slow logging, dyamically
License: Fermilab
URL: https://github.com/art-daq/trace
Source0: http://scisoft.fnal.gov/scisoft/packages/TRACE/v3_13_09/TRACE-3.13.09-slf7-x86_64.tar.bz2
BuildRequires: gcc
BuildRequires: make
Requires: bash
%description
Control tracing via environment variables and dynamically from outside program
%prep
bunzip2 ~/rpmbuild/SOURCES/TRACE-3.13.09-slf7-x86_64.tar.bz2
tar -xf ~/rpmbuild/SOURCES/TRACE-3.13.09-slf7-x86_64.tar
mv ~/rpmbuild/BUILD/TRACE ~/rpmbuild/SOURCES/TRACE-v3_13_09
cd ~/rpmbuild/SOURCES
tar -cjf TRACE-3.13.09-slf7-x86_64.tar.bz2 TRACE-v3_13_09/
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}/%{_bindir}
install -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}
%files
/%{__bindir}/%{name}
%changelog
* Wed Jun 13 2018 Matthew Adas <madas@fnal.gov> v3_13_09-1
- TRACE package
</code>