forked from opinkerfi/winexe-waf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
winexe.spec
74 lines (52 loc) · 2.12 KB
/
winexe.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Name: winexe
Version: 1.1
Release: 4%{?dist}
License: GPLv3+
URL: http://sourceforge.net/projects/winexe/
Summary: Remote Windows-command executor
Source0: %{name}.tar.bz2
BuildRequires: mingw32-gcc
BuildRequires: mingw64-gcc
BuildRequires: popt-devel
BuildRequires: python
BuildRequires: samba-devel
%description
Winexe remotely executes commands on Windows systems.
%prep
%setup -q -n %{name}
%build
cd source
CFLAGS='%{mingw32_cflags}' LINKFLAGS='%{mingw32_ldflags}' ./waf configure build --prefix=%{_usr} --targets=winexesvc32.exe
CFLAGS='%{mingw64_cflags}' LINKFLAGS='%{mingw64_ldflags}' ./waf configure build --prefix=%{_usr} --targets=winexesvc64.exe
CFLAGS="$RPM_OPT_FLAGS" LINKFLAGS="$RPM_LD_FLAGS" ./waf configure build --prefix=%{_usr} --targets=bin2c,winexesvc32_exe.c,winexesvc64_exe.c,winexe
%install
cd source
%{__install} -D -m 755 build/%{name} %{buildroot}%{_bindir}/%{name}
%{__install} -D -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%files
%doc COPYING NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%changelog
* Fri May 20 2016 Gardar Thorsteinsson <[email protected]> 1.1-2
- Patch added to fix new Samba4 library names
- new package built with tito
* Tue Mar 25 2014 Tomas Edwardsson <[email protected]> 1.1-1
- Removed checkout ([email protected])
- Updated changelog ([email protected])
- Remove patch, already applied ([email protected])
- tito releaser configuration added ([email protected])
* Tue Mar 25 2014 Tomas Edwardsson <[email protected]>
- Removed checkout ([email protected])
- Updated changelog ([email protected])
- Remove patch, already applied ([email protected])
- tito releaser configuration added ([email protected])
* Tue Mar 25 2014 Tomas Edwardsson <[email protected]>
- Remove patch, already applied ([email protected])
- tito releaser configuration added ([email protected])
* Tue Mar 25 2014 Tomas Edwardsson <[email protected]> 1.1-0.2.20140208gitb787d2a
- new package built with tito
* Tue Feb 11 2014 Satoshi Matsumoto <[email protected]> - 1.1-0.2.20140208gitb787d2a
- Fix license to GPLv3+
* Sat Feb 08 2014 Satoshi Matsumoto <[email protected]> - 1.1-0.1.20140208gitb787d2a
- Initial package