]> git.pld-linux.org Git - packages/alex.git/blobdiff - alex.spec
- release 1
[packages/alex.git] / alex.spec
index d5cf72f8512360f55e2da87f50e0224aab6065ad..668d244f1915741e2c733421e4088cec8be28918 100644 (file)
--- a/alex.spec
+++ b/alex.spec
@@ -1,11 +1,12 @@
 Summary:       A lexical analyser generator for Haskell
 Name:          alex
 Version:       2.0
-Release:       0.1
+Release:       1
 License:       BSD-like w/o adv. clause
 Group:         Development/Tools
 Source0:       http://www.haskell.org/alex/dist/%{name}-%{version}-src.tar.bz2
 # Source0-md5: 14ff6abf21d81763b15afe151add9091
+Patch0:                %{name}-DESTDIR.patch
 URL:           http://www.haskell.org/alex/
 BuildRequires: ghc >= 5.04
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -18,31 +19,29 @@ It is similar to the tool lex or flex for C/C++.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-# if ac/am/* rebuilding is necessary, do it in this order and add
-# appropriate BuildRequires
-#%{__gettextize}
-#%{__aclocal}
-#%{__autoconf}
-#%{__autoheader}
-#%{__automake}
 %configure
 %{__make}
+%{__make} ps -C alex/doc
 
 %install
 rm -rf $RPM_BUILD_ROOT
-# create directories if necessary
-#install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+cp -a alex/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
+%doc alex/{ANNOUNCE,LICENSE,README} alex/doc/alex.{ps,dvi}
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
+%{_libdir}/%{name}-%{version}/A*
+%attr(755,root,root) %{_libdir}/%{name}-%{version}/alex.bin
+%{_examplesdir}/%{name}-%{version}
This page took 0.538285 seconds and 4 git commands to generate.