summaryrefslogtreecommitdiffstats
path: root/funpl
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2011-09-08 20:17:23 +0200
committerMichel Alexandre Salim <salimma@fedoraproject.org>2011-09-08 20:17:23 +0200
commita98b6ba8c2166804578936719ecde04519a1d751 (patch)
tree46e9c495f61b27583ca9c29041c81311841e4563 /funpl
parent3d21cda53717e8e8612ef1b07b1ddd55788a1c2a (diff)
downloadspecs-a98b6ba8c2166804578936719ecde04519a1d751.tar.gz
specs-a98b6ba8c2166804578936719ecde04519a1d751.tar.xz
specs-a98b6ba8c2166804578936719ecde04519a1d751.zip
pure-gen
Diffstat (limited to 'funpl')
-rw-r--r--funpl/pure-gen.spec60
1 files changed, 60 insertions, 0 deletions
diff --git a/funpl/pure-gen.spec b/funpl/pure-gen.spec
new file mode 100644
index 0000000..2d30e8a
--- /dev/null
+++ b/funpl/pure-gen.spec
@@ -0,0 +1,60 @@
+# no useful debuginfo output
+%global debug_package %{nil}
+
+Name: pure-gen
+Version: 0.12
+Release: 1%{?dist}
+Summary: A Pure C bindings generator
+
+License: BSD
+URL: http://code.google.com/p/pure-lang/
+Source0: http://pure-lang.googlecode.com/files/pure-gen-%{version}.tar.gz
+# All three patches submitted to
+# https://code.google.com/p/pure-lang/issues/detail?id=58
+# System module is now System.Environment
+Patch0: pure-gen-0.12-sysenv.patch
+# ghc needs -XTypeSynonymInstances
+Patch1: pure-gen-0.12-ghc_typesynonyminstances.patch
+# API changes from language-c 0.3.x to 0.4.x
+Patch2: pure-gen-0.12-lang_c_04.patch
+
+BuildRequires: pure-devel
+BuildRequires: ghc-language-c-prof
+#Requires:
+
+%description
+A Pure C bindings generator. Written by Albert Graef, based on Scott
+Dillard's original OpenGL bindings generator.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .sysenv
+%patch1 -p1 -b .ghc_typesynonyminstances
+%patch2 -p1 -b .lang_c_04
+
+
+%build
+# configure
+make libdir=%{_libdir} %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install libdir=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
+
+
+%check
+./run-tests
+
+
+%files
+%doc COPYING ChangeLog README* examples
+%{_bindir}/pure-gen
+%{_libdir}/pure-gen
+%{_mandir}/man1/pure-gen.1*
+
+
+%changelog
+* Thu Sep 8 2011 Michel Salim <salimma@fedoraproject.org> - 0.12-1
+- Initial package