/[packages]/cauldron/mingw32-filesystem/current/SPECS/mingw32-filesystem.spec
ViewVC logotype

Contents of /cauldron/mingw32-filesystem/current/SPECS/mingw32-filesystem.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67309 - (show annotations) (download)
Thu Mar 10 02:24:47 2011 UTC (11 years, 3 months ago) by ahmad
File size: 5326 byte(s)
imported package mingw32-filesystem
1 %define debug_package %{nil}
2
3 Name: mingw32-filesystem
4 Version: 49
5 Release: %mkrel 3
6 Summary: MinGW base filesystem and environment
7
8 Group: Development/Other
9 License: GPLv2+
10 URL: http://hg.et.redhat.com/misc/fedora-mingw--devel/
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
12 BuildArch: noarch
13
14 Source0: mingw32-COPYING
15 Source1: mingw32-macros.mingw32
16 Source2: mingw32.sh
17 #Source3: mingw32.csh
18 Source4: mingw32-find-requires.sh
19 Source5: mingw32-find-provides.sh
20 Source6: mingw32-scripts.sh
21 Source7: mingw32-rpmlint.config
22
23 Requires: setup
24 Requires: rpm
25 Requires: rpmlint >= 0.84
26
27 BuildRequires: rpmlint >= 0.84
28
29 # Note about 'Provides: mingw32(foo.dll)'
30 # ------------------------------------------------------------
31 #
32 # We want to be able to build & install mingw32 libraries without
33 # necessarily needing to install wine. (And certainly not needing to
34 # install Windows!) There is no requirement to have wine installed in
35 # order to use the mingw toolchain to develop software (ie. to
36 # compile more stuff on top of it), so why require that?
37 #
38 # So for expediency, this base package provides the "missing" DLLs
39 # from Windows. Another way to do it would be to exclude these
40 # proprietary DLLs in our find-requires checking script - essentially
41 # it comes out the same either way.
42 #
43 Provides: mingw32(gdi32.dll)
44 Provides: mingw32(kernel32.dll)
45 Provides: mingw32(ole32.dll)
46 Provides: mingw32(mscoree.dll)
47 Provides: mingw32(msvcrt.dll)
48 Provides: mingw32(user32.dll)
49 Provides: mingw32(wldap32.dll)
50 Provides: mingw32(glut32.dll)
51 Provides: mingw32(secur32.dll)
52 Provides: mingw32(cfgmgr32.dll)
53 Provides: mingw32(setupapi.dll)
54
55 %description
56 This package contains the base filesystem layout, RPM macros and
57 environment for all Fedora MinGW packages.
58
59 This environment is maintained by the Fedora MinGW SIG at:
60
61 http://fedoraproject.org/wiki/SIGs/MinGW
62
63
64 %prep
65 %setup -q -c -T
66 cp %{SOURCE0} COPYING
67 sed 's/@VERSION@/%{version}/' < %{SOURCE4} > mingw32-find-requires.sh
68
69
70 %build
71 # nothing
72
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 mkdir -p $RPM_BUILD_ROOT
78
79 mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
80 install -m 755 %{SOURCE6} $RPM_BUILD_ROOT%{_libexecdir}/mingw32-scripts
81
82 mkdir -p $RPM_BUILD_ROOT%{_bindir}
83 pushd $RPM_BUILD_ROOT%{_bindir}
84 for i in mingw32-configure mingw32-make; do
85 ln -s %{_libexecdir}/mingw32-scripts $i
86 done
87 popd
88
89 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
90 install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
91 #install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
92
93 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.d
94 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.d/mingw32.macros
95
96 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpmlint
97 install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/rpmlint/
98
99 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32
100
101 # GCC requires these directories, even though they contain links
102 # to binaries which are also installed in /usr/bin etc. These
103 # contain Fedora native binaries.
104 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/bin
105 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/lib
106
107 # The MinGW system root which will contain Windows native binaries
108 # and Windows-specific header files, pkgconfig, etc.
109 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw
110 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/bin
111 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/include
112 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/include/sys
113 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/lib
114 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/lib/pkgconfig
115
116 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/share/aclocal
117
118 # We don't normally package manual pages and info files, except
119 # where those are not supplied by a Fedora native package. So we
120 # need to create the directories.
121 #
122 # Note that some packages try to install stuff in
123 # /usr/i586-pc-mingw32/sys-root/mingw/man and
124 # /usr/i586-pc-mingw32/sys-root/mingw/doc
125 # but those are both packaging bugs.
126 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/share
127 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/share/doc
128 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/share/info
129 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/share/man
130 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i586-pc-mingw32/sys-root/mingw/share/man/man{1,2,3,4,5,6,7,8,l,n}
131
132 # NB. NOT _libdir
133 mkdir -p $RPM_BUILD_ROOT/usr/lib/rpm
134 install -m 0755 mingw32-find-requires.sh $RPM_BUILD_ROOT/usr/lib/rpm
135 install -m 0755 %{SOURCE5} $RPM_BUILD_ROOT/usr/lib/rpm
136
137
138 %clean
139 rm -rf $RPM_BUILD_ROOT
140
141
142 %files
143 %defattr(-,root,root)
144 %doc COPYING
145 %config(noreplace) %{_sysconfdir}/rpm/macros.d/mingw32.macros
146 %config(noreplace) %{_sysconfdir}/profile.d/mingw32.sh
147 #%config(noreplace) %{_sysconfdir}/profile.d/mingw32.csh
148 %config(noreplace) %{_sysconfdir}/rpmlint/mingw32-rpmlint.config
149 %{_bindir}/mingw32-configure
150 %{_bindir}/mingw32-make
151 %{_libexecdir}/mingw32-scripts
152 %{_prefix}/i586-pc-mingw32/
153 /usr/lib/rpm/mingw32-*
154
155

  ViewVC Help
Powered by ViewVC 1.1.28