summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/cygwin/i686/expat.add
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/crossrpms/cygwin/i686/expat.add')
-rw-r--r--contrib/crossrpms/cygwin/i686/expat.add38
1 files changed, 38 insertions, 0 deletions
diff --git a/contrib/crossrpms/cygwin/i686/expat.add b/contrib/crossrpms/cygwin/i686/expat.add
new file mode 100644
index 0000000000..1f2e73f5aa
--- /dev/null
+++ b/contrib/crossrpms/cygwin/i686/expat.add
@@ -0,0 +1,38 @@
+%define expat_version @EXPAT_VERS@
+%define expat_rpmvers %{expand:%(echo @EXPAT_VERS@ | tr - _)}
+
+Name: @rpmprefix@@tool_target@-expat
+Release: @EXPAT_RPMREL@
+License: GPL
+Group: Development/Tools
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+Version: %expat_rpmvers
+Summary: Cygwin expat Libraries
+
+Source0: ftp://cygwin.com/pub/cygwin/release/expat/expat-%{expat_version}.tar.bz2
+Source1: ftp://cygwin.com/pub/cygwin/release/expat/libexpat0/libexpat0-%{expat_version}.tar.bz2
+
+Provides: @rpmprefix@@tool_target@-expat-devel = %{version}-%{release}
+
+%description
+Cygwin expat libraries.
+
+%prep
+%setup -c -q
+
+%build
+ rm -rf @tool_target@
+
+ # Setup sys-root (Usable for gcc >= 3.4)
+ mkdir -p @tool_target@/sys-root
+ ( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
+ ( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ mkdir -p $RPM_BUILD_ROOT%{_prefix}
+ cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
+