Hello i got a probleme when i use this command : rpmbuild -ba name.spec
it say :
+ cd syncthing-0.11
/home/rpmbuild/rpm/tmp/rpm-tmp.YE15PD: line 40: cd: syncthing-0.11: No such file or directory
erreur: Mauvais status de sortie pour /home/rpmbuild/rpm/tmp/rpm-tmp.YE15PD (%prep)
Erreur de construction de RPM:
Mauvais status de sortie pour /home/rpmbuild/rpm/tmp/rpm-tmp.YE15PD (%prep)
(sorry it's in french, but it say : bad status of exit (?) for ....) it's about the %prep i think, but it's my first rpm package, so i don't know what is wrong with it.
here it is the source file i use for my package :
https://github.com/syncthing/syncthing/releases/download/v0.11.5/syncthing-source-v0.11.5.tar.gzand the spec file i use :
Name: syncthing
Version: 0.11
Release: 5
Summary: syncthing on SMEServer
Group: Applications
License: MIT
URL: https://github.com/syncthing/syncthing/releases
Source0: https://github.com/syncthing/syncthing/releases/download/v0.11.5/syncthing-source-v0.11.5.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Syncthing replaces Dropbox and BitTorrent Sync with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
%changelog