130 lines
4.9 KiB
RPMSpec
130 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package mingw64-filesystem
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define debug_package %{nil}
|
|
Name: mingw64-filesystem
|
|
Version: 20130610
|
|
Release: 0
|
|
Summary: MinGW base filesystem and environment
|
|
License: GPL-2.0+
|
|
Group: Development/Libraries
|
|
Url: http://hg.et.redhat.com/misc/fedora-mingw--devel/
|
|
Source0: COPYING
|
|
Source1: macros.mingw64
|
|
Source2: mingw64.sh
|
|
Source3: mingw64-find-debuginfo.sh
|
|
Source4: mingw64-find-requires.sh
|
|
Source5: mingw64-find-provides.sh
|
|
Source6: mingw64-scripts.sh
|
|
Source7: mingw64-rpmlint.config
|
|
Source8: mingw64-install-post.sh
|
|
Requires: rpm
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
#!BuildIgnore: post-build-checks
|
|
|
|
%description
|
|
This package contains the base filesystem layout, RPM macros and
|
|
environment for all MinGW packages.
|
|
|
|
This environment is maintained by the Fedora MinGW SIG at:
|
|
|
|
http://fedoraproject.org/wiki/SIGs/MinGW
|
|
|
|
%prep
|
|
%setup -q -c -T
|
|
cp %{SOURCE0} COPYING
|
|
sed 's/@VERSION@/%{version}/' < %{SOURCE4} > mingw64-find-requires.sh
|
|
|
|
%build
|
|
# nothing
|
|
|
|
%install
|
|
mkdir -p %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib
|
|
install -m 755 %{SOURCE6} %{buildroot}%{_prefix}/lib/mingw64-scripts
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
pushd %{buildroot}%{_bindir}
|
|
for i in mingw64-configure mingw64-make mingw64-cmake ; do
|
|
ln -s %{_prefix}/lib/mingw64-scripts $i
|
|
done
|
|
popd
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.mingw64
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rpmlint
|
|
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/rpmlint/
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32
|
|
|
|
# GCC requires these directories, even though they contain links
|
|
# to binaries which are also installed in /usr/bin etc. These
|
|
# contain Fedora native binaries.
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/bin
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/lib
|
|
|
|
# The MinGW system root which will contain Windows native binaries
|
|
# and Windows-specific header files, pkgconfig, etc.
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/bin
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/include
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/include/sys
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/lib
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/aclocal
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/var
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw%{_localstatedir}/lib
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw%{_localstatedir}/lib/rpm-state
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw%{_localstatedir}/lib/rpm-state/gconf
|
|
|
|
(cd %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root && ln -s mingw x86_64-w64-mingw32)
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/doc
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/info
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/man
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/man/man{1,2,3,4,5,6,7,8,9,n}
|
|
|
|
# NB. NOT _libdir
|
|
mkdir -p %{buildroot}%{_prefix}/lib/rpm
|
|
install -m 0755 %{SOURCE3} %{buildroot}%{_prefix}/lib/rpm
|
|
install -m 0755 mingw64-find-requires.sh %{buildroot}%{_prefix}/lib/rpm
|
|
install -m 0755 %{SOURCE5} %{buildroot}%{_prefix}/lib/rpm
|
|
install -m 0755 %{SOURCE8} %{buildroot}%{_prefix}/lib/rpm
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING
|
|
%{_sysconfdir}/rpm/macros.mingw64
|
|
%{_sysconfdir}/profile.d/mingw64.sh
|
|
%{_sysconfdir}/rpmlint/mingw64-rpmlint.config
|
|
%{_bindir}/mingw64-*
|
|
%{_prefix}/lib/mingw64-scripts
|
|
%{_prefix}/x86_64-w64-mingw32/
|
|
%{_prefix}/lib/rpm/mingw64-*
|
|
|
|
%changelog
|