]> git.pld-linux.org Git - packages/onedrive.git/blame - onedrive.spec
ldc rebuild
[packages/onedrive.git] / onedrive.spec
CommitLineData
479cb9e6
ER
1Summary: OneDrive Free Client written in D
2Name: onedrive
3Version: 2.4.13
4f1a322f 4Release: 2
479cb9e6
ER
5License: GPL v3
6Source0: https://github.com/abraunegg/onedrive/archive/v%{version}/%{name}-v%{version}.tar.gz
7# Source0-md5: 18d5f1af56f7e3118e2dd00ad75bc8fa
8URL: https://github.com/abraunegg/onedrive
770859b7
ER
9BuildRequires: autoconf
10BuildRequires: automake
479cb9e6
ER
11BuildRequires: curl-devel
12BuildRequires: ldc
13BuildRequires: libnotify-devel
14BuildRequires: sqlite-devel
15BuildRequires: systemd-devel
16ExclusiveArch: %{x8664}
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Free CLI client for Microsoft OneDrive written in D.
21
22%prep
23%setup -q
24sed -i 's/-o root -g users//g' Makefile.in
25sed -i 's/-o root -g root//g' Makefile.in
26# sed -i '/git/d' Makefile
27sed -i "s|std\.c\.|core\.stdc\.|" src/sqlite.d
28echo %{version} > version
29
30%build
770859b7
ER
31%{__aclocal}
32%{__autoconf}
479cb9e6
ER
33bash %configure
34export DFLAGS="%{_d_optflags}"
35export PREFIX="%{_prefix}"
36%{__make} DC=ldmd2
37
38%install
39rm -rf $RPM_BUILD_ROOT
40%{__make} install \
41 PREFIX="%{_prefix}" \
42 DESTDIR=$RPM_BUILD_ROOT
43
44chmod a-x $RPM_BUILD_ROOT%{_mandir}/man1/%{name}*
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%files
50%defattr(644,root,root,755)
51%doc README.md LICENSE CHANGELOG.md
52%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/onedrive
53%attr(755,root,root) %{_bindir}/%{name}
54%{systemduserunitdir}/%{name}.service
55%{systemdunitdir}/%{name}@.service
56%{_mandir}/man1/%{name}.1*
57%{_docdir}/%{name}
This page took 0.117966 seconds and 4 git commands to generate.