diff --git a/.gitignore b/.gitignore index e69de29..220b0c5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libepoxy-1.2.tar.gz diff --git a/mingw-libepoxy.spec b/mingw-libepoxy.spec new file mode 100644 index 0000000..f1934f4 --- /dev/null +++ b/mingw-libepoxy.spec @@ -0,0 +1,91 @@ +%?mingw_package_header + +Name: mingw-libepoxy +Version: 1.2 +Release: 2%{?dist} +Summary: MinGW Windows libepoxy library + +License: MIT +URL: https://github.com/anholt/libepoxy +Source0: https://github.com/anholt/libepoxy/archive/v1.2/libepoxy-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: mingw32-filesystem +BuildRequires: mingw64-filesystem +BuildRequires: mingw32-gcc +BuildRequires: mingw64-gcc + +# Required for autoreconf +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: xorg-x11-util-macros + +%description +Epoxy is a library for handling OpenGL function pointer management. + +This package contains the MinGW Windows cross compiled libepoxy library. + + +%package -n mingw32-libepoxy +Summary: MinGW Windows libepoxy library + +%description -n mingw32-libepoxy +Epoxy is a library for handling OpenGL function pointer management. + +This package contains the MinGW Windows cross compiled libepoxy library. + + +%package -n mingw64-libepoxy +Summary: MinGW Windows libepoxy library + +%description -n mingw64-libepoxy +Epoxy is a library for handling OpenGL function pointer management. + +This package contains the MinGW Windows cross compiled libepoxy library. + + +%?mingw_debug_package + + +%prep +%setup -q -n libepoxy-%{version} +autoreconf -fi + + +%build +%mingw_configure + +%mingw_make %{?_smp_mflags} V=1 + + +%install +%mingw_make install DESTDIR=$RPM_BUILD_ROOT + +rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/*.la + + +%files -n mingw32-libepoxy +%license COPYING +%{mingw32_bindir}/libepoxy-0.dll +%{mingw32_libdir}/libepoxy.dll.a +%{mingw32_libdir}/pkgconfig/epoxy.pc +%{mingw32_includedir}/epoxy/ + +%files -n mingw64-libepoxy +%license COPYING +%{mingw64_bindir}/libepoxy-0.dll +%{mingw64_libdir}/libepoxy.dll.a +%{mingw64_libdir}/pkgconfig/epoxy.pc +%{mingw64_includedir}/epoxy/ + +%changelog +* Tue Mar 24 2015 Kalev Lember - 1.2-2 +- Package review fixes (#1205194) +- Don't explicitly BR mingw{32,64}-binutils +- Fix the license tag + +* Tue Mar 24 2015 Kalev Lember - 1.2-1 +- Initial Fedora packaging diff --git a/sources b/sources index e69de29..349fa86 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +12d6b7621f086c0c928887c27d90bc30 libepoxy-1.2.tar.gz