Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 309565 Details for
Bug 451751
Review Request: ghc-greencard - A foreign function interface pre-processor for Haskell
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
ghc-greencard-3.0.1-1.spec
ghc-greencard-3.0.1-1.spec (text/plain), 4.52 KB, created by
Rajesh Krishnan
on 2008-06-17 03:25:27 UTC
(
hide
)
Description:
ghc-greencard-3.0.1-1.spec
Filename:
MIME Type:
Creator:
Rajesh Krishnan
Created:
2008-06-17 03:25:27 UTC
Size:
4.52 KB
patch
obsolete
># RPM spec file for greencard -*-rpm-spec-*- ># Generated automatically by cabal2rpm 0.20_08 on Mon Jun 16 2008 ># Extra flags: 'rpm_name=ghc-greencard' 'rpm_version=3.0.1' 'rpm_release=1' 'docs=' 'packager=Rajesh Krishnan' 'packager_email=fedora@krishnan.cc' ># Report cabal2rpm bugs to Tom Moertel at tom-cabal2rpm@moertel.com > >%{!?ghc_version: %{expand: %%define ghc_version %(ghc -V | sed 's/.* //')}} >%{!?ghcver: %{expand: %%define ghcver ghc%(echo %ghc_version | tr -d .)}} >%define ghclibdir %{_libdir}/ghc-%{ghc_version} >%define ghcpkg_inst ghc-pkg-%{ghc_version} -u -g -i >%define pkgstore %{ghclibdir}/%{name}-%{version}-pkg >%define pkgscripts %{pkgstore}/pkg-scripts >%define pkgBaseName greencard > >Summary: A foreign function interface pre-processor for Haskell (package for GHC Haskell) >Name: ghc-greencard >Version: 3.0.1 >Release: 1%{dist} >License: BSD3 >Group: Development/Libraries >URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkgBaseName} >Source0: http://hackage.haskell.org/packages/archive/%{pkgBaseName}/%{version}/%{pkgBaseName}-%{version}.tar.gz >BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root >BuildRequires: %{ghcver}, happy >Requires(post,preun): %{_bindir}/ghc-pkg-%{ghc_version} >Requires: happy > > >%description >Green Card is a foreign function interface preprocessor for Haskell, >simplifying the task of interfacing Haskell programs to external libraries >(which are normally exposed via C interfaces). > >To interface to an external function using Green Card, you write a small >procedure specification. The specification tells Green Card what (Haskell) >type you want to give the function together with details of how the >arguments (and results) to the Haskell function should be marshalled to and >from the data representation used by the external function. Green Card will >then generate gobs of low-level boilerplate code that takes care of all the >details. > >This package supplies the executable, 'greencard', which needs GHC. For the >Foreign.GreenCard library, you need to install this first and then you can >install greencard-lib (greencard-lib requires the greencard binary already >installed). > >%prep >%setup -q -n %{pkgBaseName}-%{version} > >%build >setup=Setup.lhs >[ -f $setup ] || setup=Setup.hs >[ -f $setup ] || { echo "No Setup in package root! Aborting."; exit 1; } >ghc-%{ghc_version} --make -o Setup -package Cabal $setup >./Setup configure \ > --prefix=%{pkgstore} \ > --ghc --with-compiler=/usr/bin/ghc-%{ghc_version} \ > --with-hc-pkg=/usr/bin/ghc-pkg-%{ghc_version} >./Setup build > >%install >rm -rf $RPM_BUILD_ROOT >./Setup copy --copy-prefix=%{buildroot}%{pkgstore} >mkdir -p %{buildroot}%{pkgstore} >mkdir -p %{buildroot}%{pkgscripts} ># ./Setup register --gen-script ># ./Setup unregister --gen-script ># mv register.sh unregister.sh %{buildroot}%{pkgscripts} >mkdir -p %{buildroot}/usr/bin/ >cp %{buildroot}%{pkgstore}/bin/greencard %{buildroot}/usr/bin/ >rm -rf %{buildroot}%{pkgstore}/bin > > >%clean >rm -rf $RPM_BUILD_ROOT > ># SCRIPTS ># ># Scripts for registering/unregistering w/ GHC. Note that ># the scripts are called in the following order during an upgrade: ># ># %pre for new version of package being installed ># ... (all new files are installed) ># %post for new version of package being installed ># ># %preun for old version of package being removed ># ... (all old files are removed) ># %postun for old version of package being removed > > >%pre ># in case we're upgrading to a library having the same Cabal ># name+version as the currently installed library, we need to ># unregister the old library first, so that the register script in ># %post may succeed. (note that this command runs *before* the new ># package's files are installed, and thus will execute the *previous* ># version's unregister script, if the script exists in the same location ># as the about-to-be-installed library's script) ># [ "$1" = 2 ] && %{pkgscripts}/unregister.sh >& /dev/null || : > >%post ># %{pkgscripts}/register.sh >& /dev/null > >%preun ># always unregister the library before we remove its files ># (see %postun, however) ># %{pkgscripts}/unregister.sh >& /dev/null || : > >%postun ># if we're upgrading, the %preun step may have unregistered ># the *new* version of the library (if it had an identical ># Cabal name+version, even though the RPM release differs); ># therefore, we must attempt to re-register it ># [ "$1" = 1 ] && %{pkgscripts}/register.sh >& /dev/null || : > > >%files >%defattr(-,root,root,-) >%{_bindir}/greencard >%doc LICENSE README ANNOUNCE >%{ghclibdir}/* > > >%changelog >* Mon Jun 16 2008 Rajesh Krishnan <fedora@krishnan.cc> - 3.0.1-1 >- Spec created by cabal2rpm 0.20_08
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 451751
: 309565