Accepting request 99818 from home:ptrommler:devel:languages:haskell:platform-2011.4
Haskell Platform 2011.4 OBS-URL: https://build.opensuse.org/request/show/99818 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/alex?expand=0&rev=27
This commit is contained in:
parent
48080b0698
commit
495a531a31
3
_service
Normal file
3
_service
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<services>
|
||||||
|
<service name="download_files"/>
|
||||||
|
</services>
|
3
_service:download_files:alex-2.3.5.tar.gz
Normal file
3
_service:download_files:alex-2.3.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2ea6d30b98881c0fd57bfafae024050cd98dc5b0140d64a6d722c64a098ed253
|
||||||
|
size 79147
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:195fa390380fb8776084175e6d2c1581312b8ce4e7747171c716a5c5c0aebfb8
|
|
||||||
size 63480
|
|
32
alex.changes
32
alex.changes
@ -1,5 +1,33 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 4 20:26:44 UTC 2009 - herbert@graeber-clan.de
|
Thu Dec 29 11:47:39 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
- use java-1_6_0-openjdk for 11.0 and above, java-1_5_0-sun else
|
- Clean up install section
|
||||||
|
- Add three word to description to make rpmlint happier
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 28 20:47:31 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- Adjusted version for platform 2011.4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 10 16:48:35 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- Added /usr/share/alex-3.0.1 files
|
||||||
|
- Fixed file owner
|
||||||
|
- Deleted additional LICENSE file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 5 09:04:47 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- Added QuickCheck BR
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 19 21:44:36 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- enabled i586 build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 11 19:50:28 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- created new package
|
||||||
|
|
||||||
|
176
alex.spec
176
alex.spec
@ -1,58 +1,40 @@
|
|||||||
|
# For Haskell Packaging Guidelines see:
|
||||||
|
# - https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
|
# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||||||
|
|
||||||
|
# Copyright (c) 2012 Peter Trommler peter.trommler@ohm-hochschule.de
|
||||||
#
|
#
|
||||||
# spec file for package ghc-X11
|
# All modifications and additions to the file contributed by third parties
|
||||||
#
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
# Copyright (c) 2005-2009 Herbert Graeber
|
# upon. The license for this file, and modifications and additions to the
|
||||||
#
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
# This file and all modifications and additions to the pristine
|
# license for the pristine package is not an Open Source License, in which
|
||||||
# package are under the same license as the package itself.
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
Name: alex
|
||||||
|
Version: 2.3.5
|
||||||
|
Release: 0
|
||||||
|
Summary: Tool for generating lexical analysers in Haskell
|
||||||
|
|
||||||
# ghc does not emit debug information
|
Group: Development/Languages/Other
|
||||||
%global debug_package %{nil}
|
License: BSD3
|
||||||
|
# BEGIN cabal2spec
|
||||||
Name: alex
|
URL: http://hackage.haskell.org/package/%{name}
|
||||||
Version: 2.3.1
|
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
||||||
Release: 0
|
ExclusiveArch: %{ix86} x86_64 %{ghc_arches}
|
||||||
Summary: The lexer generator for Haskell
|
BuildRequires: ghc-Cabal-devel
|
||||||
Group: Development/Languages/Haskell
|
BuildRequires: ghc-rpm-macros
|
||||||
License: BSD3
|
# END cabal2spec
|
||||||
URL: http://www.haskell.org/alex/
|
# list ghc-*-devel dependencies:
|
||||||
Source: %{name}-%{version}.tar.bz2
|
BuildRequires: ghc-QuickCheck-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
Requires: licenses
|
|
||||||
BuildRequires: ghc
|
|
||||||
BuildRequires: libxslt
|
|
||||||
BuildRequires: sgml-skel
|
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
|
||||||
BuildRequires: docbook-utils
|
|
||||||
BuildRequires: fop
|
|
||||||
%if 0%{?suse_version} >= 1100
|
|
||||||
BuildRequires: java-1_6_0-openjdk
|
|
||||||
%else
|
|
||||||
BuildRequires: java-1_5_0-sun
|
|
||||||
%endif
|
|
||||||
BuildRequires: licenses
|
|
||||||
Prefix: /usr
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Alex is a tool for generating lexical analysers in Haskell, given a
|
Tool for generating lexical analysers in Haskell similar to lex
|
||||||
description of the tokens to be recognised in the form of regular
|
|
||||||
expressions. It is similar to the tool 'lex' or 'flex' for C/C++.
|
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
|
||||||
Summary: Alex Documentation
|
|
||||||
Group: Development/Languages/Haskell
|
|
||||||
Requires: %{name} = %{version}
|
|
||||||
|
|
||||||
%description doc
|
|
||||||
Alex is a tool for generating lexical analysers in Haskell, given a
|
|
||||||
description of the tokens to be recognised in the form of regular
|
|
||||||
expressions. It is similar to the tool 'lex' or 'flex' for C/C++.
|
|
||||||
|
|
||||||
This is the documentation for Alex, a lexical analyser generator for Haskell.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -60,98 +42,20 @@ This is the documentation for Alex, a lexical analyser generator for Haskell.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cabal_configure --docdir=%{_docdir}/alex
|
#%%define cabal_configure_options -f "opt1 -opt2 ..."
|
||||||
%cabal build
|
%ghc_bin_build
|
||||||
pushd doc
|
|
||||||
autoreconf
|
|
||||||
./configure --prefix=%{_prefix} --libdir=%{_libdir}
|
|
||||||
make html pdf
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cabal_install
|
%ghc_bin_install
|
||||||
mkdir -p %{buildroot}%{_mandir}/man1
|
|
||||||
sed '
|
|
||||||
s|/@VERSION@|%{version}|
|
|
||||||
s|@DOCDIR@|%{_datadir}/doc/%{name}|
|
|
||||||
s|@DATADIR@|%{_datadir}/alex|
|
|
||||||
' < doc/alex.1.in | gzip >%{buildroot}%{_mandir}/man1/%{name}.1.gz
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/doc/%{name}
|
|
||||||
cp -r doc/%{name} %{buildroot}%{_datadir}/doc/%{name}/html
|
|
||||||
cp -r doc/%{name}.pdf %{buildroot}%{_datadir}/doc/%{name}
|
|
||||||
for FILE in LICENSE ; do
|
|
||||||
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
|
|
||||||
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
|
|
||||||
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc ANNOUNCE LICENSE README TODO examples
|
%doc LICENSE
|
||||||
%doc %{_mandir}/man1/%{name}.1.gz
|
%attr(755,root,root) %{_bindir}/%{name}
|
||||||
%{_bindir}/%{name}
|
|
||||||
%{_datadir}/%{name}-%{version}
|
%{_datadir}/%{name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%files doc
|
|
||||||
%defattr (-,root, root)
|
|
||||||
%{_datadir}/doc/%{name}
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Apr 17 2009 Herbert Graeber <herbert@links2linux.de> - 2.3.1
|
* Sat Oct 8 2011 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 3.0.1-0
|
||||||
- Add man page
|
- initial packaging for Fedora automatically generated by cabal2spec-0.24.1
|
||||||
- Save HTML data only, not Makfile, etc.
|
|
||||||
- Add pdf file of documentation
|
|
||||||
|
|
||||||
* Thu Apr 16 2009 Herbert Graeber <herbert@links2linux.de> - 2.3.1
|
|
||||||
- Fix location of documentation
|
|
||||||
|
|
||||||
* Sat Feb 28 2009 Herbert Graeber <herbert@links2linux.de> - 2.3.1
|
|
||||||
- Changed to haskell packaging conventions
|
|
||||||
|
|
||||||
* Wed Dec 4 2008 Herbert Graeber <herbert@links2linux.de> 2.3.1
|
|
||||||
- Update to version 2.3.1
|
|
||||||
|
|
||||||
* Wed Oct 29 2008 Herbert Graeber <herbert@links2linux.de> 2.3
|
|
||||||
- Update to version 2.3
|
|
||||||
|
|
||||||
* Thu Nov 15 2007 Herbert Graeber <herbert@links2linux.de> 2.2.0
|
|
||||||
- Update to version 2.2.0
|
|
||||||
* Cabal 1.2 is now required.
|
|
||||||
* ByteString wrappers: use Alex to lex ByteStrings directly.
|
|
||||||
- Use shared license file
|
|
||||||
|
|
||||||
* Thu Jan 18 2007 Herbert Graeber <herbert@links2linux.de>A 2.1.0
|
|
||||||
- Update to version 2.1.0
|
|
||||||
|
|
||||||
* Wed Sep 06 2006 Herbert Graeber <herbert@links2linux.de>
|
|
||||||
- Haddock isn't needed for build
|
|
||||||
|
|
||||||
* Mon Sep 04 2006 Herbert Graeber <herbert@links2linux.de>
|
|
||||||
- Use docbook-utils for html documentation
|
|
||||||
- Require sgml-skel for build
|
|
||||||
|
|
||||||
* Tue Aug 29 2006 - Herbert Graeber <herbert@links2linux.de>
|
|
||||||
- Disabled ps documentation (no fop without java)
|
|
||||||
|
|
||||||
* Mon Aug 28 2006 - Herbert Graeber <herbert@links2linux.de>
|
|
||||||
- Enabled full documentation build
|
|
||||||
|
|
||||||
* Mon Aug 28 2006 - Herbert Graeber <herbert@links2linux.de>
|
|
||||||
- Move to the SUSE Build Service
|
|
||||||
- Disabled extended documentation for the first build
|
|
||||||
|
|
||||||
* Thu Apr 20 2006 - Herbert Graeber <herbert@links2linux.de>
|
|
||||||
- Rebuild with GHC 6.4.2
|
|
||||||
|
|
||||||
* Wed Sep 21 2005 - Herbert Graeber <herbert@links2linux.de>
|
|
||||||
- Recompiled with ghc 6.4.1
|
|
||||||
|
|
||||||
* Wed Apr 20 2005 - Herbert Graeber <herbert@links2linux.de>
|
|
||||||
- Changes for x86_64
|
|
||||||
|
|
||||||
* Thu Apr 07 2005 - Herbert Graeber <herbert@links2linux.de>
|
|
||||||
- update to version 2.0.1 for ghc 6.4 compatibility
|
|
||||||
|
Loading…
Reference in New Issue
Block a user