Added an example specfile.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 10 Sep 2008 13:36:30 +0000 (14:36 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 10 Sep 2008 13:36:30 +0000 (14:36 +0100)
example/mingw-example.spec [new file with mode: 0644]

diff --git a/example/mingw-example.spec b/example/mingw-example.spec
new file mode 100644 (file)
index 0000000..b09941d
--- /dev/null
@@ -0,0 +1,53 @@
+%include /usr/lib/rpm/mingw-defs
+
+Name:           mingw-example
+Version:        1.2.3
+Release:        1%{?dist}
+Summary:        
+
+License:        LGPLv2+
+Group:          Development/Libraries
+URL:            
+Source0:        
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+
+BuildRequires:  mingw-filesystem >= 21
+BuildRequires:  mingw-gcc
+BuildRequires:  mingw-binutils
+# Any additional BuildRequires.
+
+
+%description
+# description
+
+
+%prep
+%setup -q
+
+
+%build
+%{_mingw_configure}
+make
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root)
+%{_mingw_bindir}/foo.dll
+%{_mingw_libdir}/foo.dll.a
+# etc.
+
+
+%changelog
+* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-1
+- Initial RPM release.