]> git.pld-linux.org Git - packages/happy.git/blobdiff - happy.spec
- converted to UTF-8
[packages/happy.git] / happy.spec
index 1992e24f49f8c447cd041e23672483f4fe5292b7..a58aae2024e0d25fdfb446b89d08a0668ab2d2c4 100644 (file)
@@ -1,23 +1,29 @@
+#
+# Conditional build:
+%bcond_with    bootstrap       # use foreign (non-rpm) ghc
+#
 Summary:       Yacc-like LALR(1) Parser Generator for Haskell
+Summary(pl.UTF-8):   Generator parserów LALR(1) w stylu yacc-a dla Haskella
 Name:          happy
-Version:       1.10
-Release:       1
+Version:       1.15
+Release:       2
 License:       BSD w/o adv. clause
 Group:         Development/Languages
-Group(de):     Entwicklung/Sprachen
-Group(pl):     Programowanie/Jêzyki
 URL:           http://haskell.org/happy/
 Source0:       http://haskell.org/happy/dist/%{version}/%{name}-%{version}-src.tar.gz
-Patch0:                %{name}-sgml-CATALOG.patch
-Patch1:                %{name}-DESTDIR.patch
+# Source0-md5: 02ceb122b904fa4a4290e6ea1072d59e
+Patch0:                %{name}-arch.patch
+BuildRequires: autoconf
+BuildRequires: automake
+%{!?with_bootstrap:BuildRequires:      ghc}
+BuildRequires: gmp-devel
+BuildRequires: jadetex
+BuildRequires: elfutils-libelf
 BuildRequires: ncurses-devel
+BuildRequires: openjade
 BuildRequires: readline-devel
-BuildRequires: libelf
-BuildRequires: gmp-devel
 BuildRequires: sgml-common
-BuildRequires: openjade
-BuildRequires: jadetex
-BuildRequires: ghc
+BuildRequires: tetex-dvips
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -26,46 +32,53 @@ C. It generates a Haskell parser from an annotated BNF specification
 of a grammar. Happy allows to have several Happy generated parsers in
 one program.
 
+%description -l pl.UTF-8
+Happy jest generatorem parserów LALR(1) dla Haskella - podobnym do
+yacc-a dla C. Generuje parser w Haskellu ze specyfikacji gramatyki w
+notacji BNF. Happy pozwala mieć wiele wygenerowanych parserów w jednym
+programie.
+
 %prep
 %setup -q
-#%patch0 -p1
-%patch1 -p1
+%patch0 -p1
 
 %build
-autoconf
+cp -f /usr/share/automake/config.sub .
+%{__autoconf}
 %configure \
-       --libdir=%{_libdir}/happy-%{version}
+       --with-gcc="%{__cc}"
 
 %{__make} -C glafp-utils sgmlverb mkdirhier all
+%{__make} -C happy/src depend
 %{__make} -C happy all
-%{__make} -C happy/doc html ps
+%{__make} -C happy/doc html
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/happy}
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+       bindir=$RPM_BUILD_ROOT%{_bindir} \
+       libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
 
-install happy/examples/* $RPM_BUILD_ROOT%{_examplesdir}/happy/
+cp -a happy/examples/* $RPM_BUILD_ROOT%{_examplesdir}/happy/
 
 sed -e 's,@LIBDIR@,%{_libdir}/%{name}-%{version},g' \
        -e 's,@DOCDIR@,%{_docdir}/%{name}-%{version},g' \
        -e 's,@VERSION@,%{version},g' \
        happy/doc/happy.1.in > $RPM_BUILD_ROOT%{_mandir}/man1/happy.1
-ln -s happy-1.10 $RPM_BUILD_ROOT%{_bindir}/happy
+ln -sf happy-%{version} $RPM_BUILD_ROOT%{_bindir}/happy
 
-gzip -9nf happy/README happy/doc/happy.ps
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc happy/README.gz happy/doc/happy.ps.gz happy/doc/happy/*
+%doc happy/README happy/doc/happy
 %attr(755,root,root) %{_bindir}/*
 %dir %{_libdir}/%{name}-%{version}
-%dir %{_libdir}/%{name}-%{version}/happy
 %attr(755,root,root) %{_libdir}/%{name}-%{version}/happy.bin
-%{_libdir}/%{name}-%{version}/happy/*
+%{_libdir}/%{name}-%{version}/Happy*
+%{_libdir}/%{name}-%{version}/GLR*
 %{_mandir}/man1/*
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%{_examplesdir}/%{name}
This page took 0.182942 seconds and 4 git commands to generate.