[mingw-pkg-config] Initial import
epienbro
epienbro at fedoraproject.org
Tue Jan 31 19:34:57 UTC 2012
commit b912db3586512df464e56531194e8d1e9971963c
Author: Erik van Pienbroek <epienbro at fedoraproject.org>
Date: Tue Jan 31 20:34:50 2012 +0100
Initial import
.gitignore | 1 +
mingw-pkg-config.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9325b84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pkg-config-0.26.tar.gz
diff --git a/mingw-pkg-config.spec b/mingw-pkg-config.spec
new file mode 100644
index 0000000..834554f
--- /dev/null
+++ b/mingw-pkg-config.spec
@@ -0,0 +1,77 @@
+Name: mingw-pkg-config
+Version: 0.26
+Release: 2%{?dist}
+Summary: MinGW Windows pkg-config tool for cross compiling
+
+License: GPLv2+
+Group: Development/Tools
+URL: http://pkgconfig.freedesktop.org
+Source0: http://www.freedesktop.org/software/pkgconfig/releases/pkg-config-%{version}.tar.gz
+
+BuildRequires: glib2-devel
+BuildRequires: popt-devel
+BuildRequires: mingw32-filesystem
+
+
+%description
+The pkgconfig tool determines compilation options. For each required
+library, it reads the configuration file and outputs the necessary
+compiler and linker flags.
+
+This package contains pkg-config tool for cross compiling with the MinGW
+toolchain.
+
+
+# Mingw32
+%package -n mingw32-pkg-config
+Summary: %{summary}
+
+# Make sure that the mingw32-filesystem package doesn't
+# contain the pkg-config wrapper anymore
+Requires: mingw32-filesystem >= 69-12
+
+%description -n mingw32-pkg-config
+The pkgconfig tool determines compilation options. For each required
+library, it reads the configuration file and outputs the necessary
+compiler and linker flags.
+
+This package contains pkg-config tool for cross compiling with the MinGW
+toolchain.
+
+
+%prep
+%setup -q -n pkg-config-%{version}
+
+
+%build
+%configure \
+ --program-prefix=%{_mingw32_target}- \
+ --with-installed-popt \
+ --with-pc-path=%{_mingw32_libdir}/pkgconfig:%{_mingw32_datadir}/pkgconfig
+
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# These files conflict with ordinary pkg-config.
+rm -rf ${RPM_BUILD_ROOT}%{_datadir}/aclocal
+rm -rf ${RPM_BUILD_ROOT}%{_datadir}/doc/pkg-config
+
+
+%files -n mingw32-pkg-config
+%doc AUTHORS README NEWS COPYING pkg-config-guide.html
+%{_bindir}/%{_mingw32_target}-pkg-config
+%{_mandir}/man1/%{_mingw32_target}-pkg-config.1*
+
+
+%changelog
+* Tue Jan 31 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 0.26-2
+- Dropped the configure argument --with-installed-glib as it's not needed
+ anymore as of pkg-config 0.26
+- Fixed typo in RPM macros
+
+* Tue Jan 31 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 0.26-1
+- Initial package (based on the OpenSuSE mingw32-cross-pkg-config package)
+
diff --git a/sources b/sources
index e69de29..765d2a7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+47525c26a9ba7ba14bf85e01509a7234 pkg-config-0.26.tar.gz
More information about the scm-commits
mailing list