4.104.114.95
Line | |
---|
1 | %define cygwin_version @CYGWIN_VERS@ |
---|
2 | %define cygwin_rpmvers %{expand:%(echo @CYGWIN_VERS@ | tr - _)} |
---|
3 | |
---|
4 | Name: @rpmprefix@@tool_target@ |
---|
5 | Release: @CYGWIN_RPMREL@ |
---|
6 | License: GPL |
---|
7 | Group: Development/Tools |
---|
8 | |
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
10 | BuildArch: noarch |
---|
11 | |
---|
12 | Version: %cygwin_rpmvers |
---|
13 | Summary: @tool_target@ libraries |
---|
14 | |
---|
15 | Source0: ftp://cygwin.com/pub/cygwin/release/cygwin/cygwin-%{cygwin_version}.tar.bz2 |
---|
16 | %{?_without_sources:NoSource: 0} |
---|
17 | |
---|
18 | %description |
---|
19 | @tool_target@ libraries. |
---|
20 | |
---|
21 | %prep |
---|
22 | %setup -c -q |
---|
23 | |
---|
24 | %build |
---|
25 | rm -rf @tool_target@ |
---|
26 | |
---|
27 | # Setup sys-root (Usable for gcc >= 3.4) |
---|
28 | mkdir -p @tool_target@/sys-root |
---|
29 | %{__tar} cf - usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -) |
---|
30 | |
---|
31 | %install |
---|
32 | rm -rf $RPM_BUILD_ROOT |
---|
33 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
34 | cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix} |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.