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 309433 Details for
Bug 451590
Review Request: ghc-utf8-string - Support for reading and writing UTF8 strings for GHC 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-utf8-string-0.3.1-1.spec
ghc-utf8-string-0.3.1-1.spec (text/plain), 3.64 KB, created by
Rajesh Krishnan
on 2008-06-16 02:16:50 UTC
(
hide
)
Description:
ghc-utf8-string-0.3.1-1.spec
Filename:
MIME Type:
Creator:
Rajesh Krishnan
Created:
2008-06-16 02:16:50 UTC
Size:
3.64 KB
patch
obsolete
># RPM spec file for utf8-string -*-rpm-spec-*- ># Generated automatically by cabal2rpm 0.20_08 on Sun Jun 15 2008 ># Extra flags: 'rpm_name=ghc-utf8-string' 'rpm_version=0.3.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 utf8-string > >Summary: Support for reading and writing UTF8 Strings (package for GHC Haskell) >Name: ghc-utf8-string >Version: 0.3.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} >Requires(post,preun): %{_bindir}/ghc-pkg-%{ghc_version} > > > >%description >A UTF8 layer for IO and Strings. The utf8-string package provides >operations for encoding UTF8 strings to Word8 lists and back, and for >reading and writing UTF8 without truncation. > >%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} > > >%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,-) >%doc LICENSE >%{ghclibdir}/* > > >%changelog >* Sun Jun 15 2008 Rajesh Krishnan <fedora@krishnan.cc> - 0.3.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 451590
: 309433