1da274789451d3dc5c2c1dfa0e11a66fc2dc9fb7
[fedora-mingw.git] / nsiswrapper / mingw32-nsiswrapper.spec
1 Name:           mingw32-nsiswrapper
2 Version:        3
3 Release:        2%{?dist}
4 Summary:        Helper program for making NSIS Windows installers
5
6 License:        GPLv2+
7 Group:          Development/Libraries
8 URL:            http://fedoraproject.org/wiki/MinGW
9 Source0:        nsiswrapper.pl
10 Source1:        README
11 Source2:        COPYING
12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildArch:      noarch
15
16 BuildRequires:  perl
17
18 Requires:       mingw32-nsis
19
20
21 %description
22 NSISWrapper is a helper program for making Windows installers,
23 particularly when you are cross-compiling from Unix.
24
25 NSIS (a separate package) is a program for building Windows
26 installers.  This wrapper simply makes it easier to generate the
27 installer script that NSIS needs.
28
29
30 %prep
31 # empty
32
33
34 %build
35 # empty
36
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 mkdir -p $RPM_BUILD_ROOT%{_bindir}
42 install -m 0755 %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/nsiswrapper
43
44 # Install documentation (manually).
45 mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
46 install -m 0644 %{SOURCE1} %{SOURCE2} \
47   $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
48
49 # Build the manpage from the source.
50 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
51 pod2man -c "NSIS" -r "%{name}-%{version}" %{SOURCE0} \
52   > $RPM_BUILD_ROOT%{_mandir}/man1/nsiswrapper.1
53
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58
59 %files
60 %defattr(-,root,root)
61 %doc %{_docdir}/%{name}-%{version}/COPYING
62 %doc %{_docdir}/%{name}-%{version}/README
63 %{_bindir}/nsiswrapper
64 %{_mandir}/man1/nsiswrapper.1*
65
66
67 %changelog
68 * Thu Oct 16 2008 Richard W.M. Jones <rjones@redhat.com> - 3-2
69 - Initial RPM release.