Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > bcedf0029c3660b1de506b2f4a5ddf1e > files > 3

btsync-1.4.110-1.mga5.nonfree.src.rpm

%global __requires_exclude  libc.so.6\\\(GLIBC_PRIVATE\\\)

Name:		btsync
Version:	1.4.110
Release:	%mkrel 1
Summary:	BTSync is a pesonal bitTorrent client to sync your devices
License:	BitTorrent License
Group:		Networking/File transfer
URL:		http://www.bittorrent.com/intl/en/bittorrent-free
Source0:	%{name}.service
Source1:	%{name}-tmpfiles.conf
BuildRequires:	wget
BuildRequires:	tar
Requires(pre):	rpm-helper >= %{rpmhelper_required_version}
Requires(post):	rpm-helper >= %{rpmhelper_required_version}
Requires(post):	systemd >= %{systemd_required_version}
Requires(preun):rpm-helper >= %{rpmhelper_required_version}
Requires(postun):rpm-helper >= %{rpmhelper_required_version}

%description
BTSync is a bittorrent peer-to-peer program that lets you to sync
your information among all your devices.

%prep
%ifarch %ix86
#wget http://download.getsyncapp.com/endpoint/btsync/os/linux-glibc23-i386/track/stable -O btsync-stable.tar.gz
wget  http://syncapp.bittorrent.com/%{version}/%{name}_i386-%{version}.tar.gz -O btsync-stable.tar.gz
%endif
%ifarch x86_64 amd64 ia32e
#wget  http://download.getsyncapp.com/endpoint/btsync/os/linux-glibc23-x64/track/stable -O btsync-stable.tar.gz
wget  http://syncapp.bittorrent.com/%{version}/%{name}_x64-%{version}.tar.gz -O btsync-stable.tar.gz
%endif

tar -zxf btsync-stable.tar.gz

%install
%{__install} -d %{buildroot}%{_sbindir}
%{__install} -m 0755 btsync  %{buildroot}%{_sbindir}
%{__install} -D -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
%{__install} -D -p -m 0644 %{SOURCE0} %{buildroot}%{_unitdir}/%{name}.service


%preun
%_preun_service %{name}

%post
%_tmpfilescreate %{name}
%_post_service %{name}

%files
%{_sbindir}/btsync
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf


%changelog
* Thu Feb 19 2015 tarakbumba <tarakbumba> 1.4.110-1.mga5
+ Revision: 816010
- Update to 1.4.110 version

* Wed Oct 15 2014 umeabot <umeabot> 1.3.105-3.mga5.nonfree
+ Revision: 750965
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.3.105-2.mga5.nonfree
+ Revision: 678238
- Mageia 5 Mass Rebuild

  + tv <tv>
    - use %%global for req/prov exclude
    - autoconvert to new prov/req excludes

* Tue May 27 2014 dlucio <dlucio> 1.3.105-1.mga5.nonfree
+ Revision: 627008
- new release

* Mon Feb 24 2014 dlucio <dlucio> 1.2.82-2.mga5.nonfree
+ Revision: 596203
- more systemctl things
- requires exception

* Mon Feb 24 2014 dlucio <dlucio> 1.2.82-1.mga5.nonfree
+ Revision: 596197
- S0 & S1 for Mageia policies complain
- imported package btsync