2011-09-15 14:54:09 +02:00
|
|
|
# This spec file is derived from the the Fedora distribution as of
|
|
|
|
# 2011-01-01.
|
|
|
|
|
|
|
|
# This file was originally available under the Fedora Contributor
|
|
|
|
# License Agreement (CLA), which permits relicensing.
|
|
|
|
|
|
|
|
# Copyright (c) 2011 Andrew Psaltis <ampsaltis at gmail.com>
|
|
|
|
|
|
|
|
# Permission is hereby granted, free of charge, to any person
|
|
|
|
# obtaining a copy of this software and associated documentation files
|
|
|
|
# (the "Software"), to deal in the Software without restriction,
|
|
|
|
# including without limitation the rights to use, copy, modify, merge,
|
|
|
|
# publish, distribute, sublicense, and/or sell copies of the Software,
|
|
|
|
# and to permit persons to whom the Software is furnished to do so,
|
|
|
|
# subject to the following conditions:
|
|
|
|
|
|
|
|
# The above copyright notice and this permission notice shall be
|
|
|
|
# included in all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
|
|
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
|
|
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
# SOFTWARE.
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2013-01-08 15:41:11 +01:00
|
|
|
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
|
2011-09-15 14:54:09 +02:00
|
|
|
Name: ocaml-pcre
|
2012-09-17 16:09:04 +02:00
|
|
|
Version: 7.0.2
|
2011-09-15 14:54:09 +02:00
|
|
|
Release: 1
|
|
|
|
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
|
|
|
|
|
|
|
Group: Development/Libraries/Other
|
2012-09-17 16:09:04 +02:00
|
|
|
License: LGPL-2.0
|
2013-01-08 15:41:11 +01:00
|
|
|
URL: https://bitbucket.org/mmottl/pcre-ocaml
|
2012-09-17 16:09:04 +02:00
|
|
|
Source0: https://bitbucket.org/mmottl/pcre-ocaml/downloads/pcre-ocaml-%{version}.tar.bz2
|
2011-09-15 14:54:09 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2013-01-08 15:41:11 +01:00
|
|
|
%if "%{_ignore_exclusive_arch}" != ""
|
|
|
|
%else
|
|
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
%endif
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
BuildRequires: ocaml >= 3.10.2
|
2012-09-17 16:09:04 +02:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
2011-09-15 14:54:09 +02:00
|
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: gawk
|
|
|
|
|
|
|
|
%description
|
|
|
|
Perl compatibile regular expressions (PCRE) for OCaml.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
# This isn't quite right - we need to specify same architecture of pcre-devel
|
|
|
|
Requires: pcre-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2012-09-17 16:09:04 +02:00
|
|
|
%setup -q -n pcre-ocaml-%{version}
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2012-09-17 16:09:04 +02:00
|
|
|
make setup.data CONFIGUREFLAGS="--destdir $RPM_BUILD_ROOT --docdir %{_defaultdocdir}/%{name}"
|
2011-09-15 14:54:09 +02:00
|
|
|
make all
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
make NATIVE=true install
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-09-17 16:09:04 +02:00
|
|
|
%doc COPYING.txt README.md
|
2011-09-15 14:54:09 +02:00
|
|
|
%{_libdir}/ocaml/pcre
|
2013-01-08 15:41:11 +01:00
|
|
|
%if %opt
|
2011-09-15 14:54:09 +02:00
|
|
|
%exclude %{_libdir}/ocaml/pcre/*.a
|
2012-09-17 16:09:04 +02:00
|
|
|
%exclude %{_libdir}/ocaml/pcre/*.cmx
|
2011-09-15 14:54:09 +02:00
|
|
|
%exclude %{_libdir}/ocaml/pcre/*.cmxa
|
2013-01-08 15:41:11 +01:00
|
|
|
%endif
|
2011-09-15 14:54:09 +02:00
|
|
|
%exclude %{_libdir}/ocaml/pcre/*.mli
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so.owner
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2013-01-08 15:41:11 +01:00
|
|
|
%if %opt
|
2011-09-15 14:54:09 +02:00
|
|
|
%{_libdir}/ocaml/pcre/*.a
|
2012-09-17 16:09:04 +02:00
|
|
|
%{_libdir}/ocaml/pcre/*.cmx
|
2011-09-15 14:54:09 +02:00
|
|
|
%{_libdir}/ocaml/pcre/*.cmxa
|
2013-01-08 15:41:11 +01:00
|
|
|
%endif
|
2011-09-15 14:54:09 +02:00
|
|
|
%{_libdir}/ocaml/pcre/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Wed Apr 20 2011 Andrew Psaltis <ampsaltis at gmail.com> - 6.1.1-2
|
|
|
|
- Use internal dependency generator
|
|
|
|
|
|
|
|
* Sat Jan 8 2011 Andrew Psaltis <ampsaltis at gmail.com> - 6.1.1-1
|
|
|
|
- Version bump to 6.1.1
|
|
|
|
- Modify spec file for openSUSE
|
|
|
|
|
|
|
|
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 6.0.1-2
|
|
|
|
- Rebuild for OCaml 3.11.2.
|
|
|
|
|
|
|
|
* Sun Oct 4 2009 Richard W.M. Jones <rjones@redhat.com> - 6.0.1-1
|
|
|
|
- New upstream version 6.0.1.
|
|
|
|
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
|
|
|
|
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
|
|
|
|
(added sparc64 per request from the sparc maintainer)
|
|
|
|
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.15.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 5.15.0-3
|
|
|
|
- Rebuild for OCaml 3.11.0+rc1.
|
|
|
|
|
|
|
|
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 5.15.0-2
|
|
|
|
- Rebuild for OCaml 3.11.0
|
|
|
|
|
|
|
|
* Sun Aug 31 2008 Richard W.M. Jones <rjones@redhat.com> - 5.15.0-1
|
|
|
|
- New upstream release 5.15.0.
|
|
|
|
|
|
|
|
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 5.14.0-2
|
|
|
|
- Rebuild for OCaml 3.10.2
|
|
|
|
|
|
|
|
* Mon Apr 21 2008 Richard W.M. Jones <rjones@redhat.com> - 5.14.0-1
|
|
|
|
- New upstream release 5.14.0.
|
|
|
|
- -devel subpackage should depend on pcre-devel.
|
|
|
|
- Fixed upstream URL.
|
|
|
|
- Changed to use .bz2 package.
|
|
|
|
|
|
|
|
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> - 5.13.0-2
|
|
|
|
- Rebuild for ppc64.
|
|
|
|
|
|
|
|
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 5.13.0-1
|
|
|
|
- New upstream version 5.13.0.
|
|
|
|
- Rebuild for OCaml 3.10.1.
|
|
|
|
|
|
|
|
* Tue Sep 18 2007 Richard W.M. Jones <rjones@redhat.com> - 5.12.2-1
|
|
|
|
- New upstream version 5.12.2.
|
|
|
|
- Clarified license is LGPLv2.
|
|
|
|
- Strip .so file.
|
|
|
|
|
|
|
|
* Thu Sep 6 2007 Richard W.M. Jones <rjones@redhat.com> - 5.11.4-9
|
|
|
|
- Force rebuild because of updated requires/provides scripts in OCaml.
|
|
|
|
|
|
|
|
* Mon Sep 3 2007 Richard W.M. Jones <rjones@redhat.com> - 5.11.4-8
|
|
|
|
- Force rebuild because of base OCaml.
|
|
|
|
|
|
|
|
* Thu Aug 30 2007 Richard W.M. Jones <rjones@redhat.com> - 5.11.4-7
|
|
|
|
- Force rebuild because of changed BRs in base OCaml.
|
|
|
|
|
|
|
|
* Wed Aug 1 2007 Richard W.M. Jones <rjones@redhat.com> - 5.11.4-6
|
|
|
|
- ExcludeArch ppc64
|
|
|
|
|
|
|
|
* Mon Jun 11 2007 Richard W.M. Jones <rjones@redhat.com> - 5.11.4-5
|
|
|
|
- Updated to latest packaging guidelines.
|
|
|
|
|
|
|
|
* Sat Jun 2 2007 Richard W.M. Jones <rjones@redhat.com> - 5.11.4-4
|
|
|
|
- Handle bytecode-only architectures.
|
|
|
|
|
|
|
|
* Sat May 26 2007 Richard W.M. Jones <rjones@redhat.com> - 5.11.4-3
|
|
|
|
- Put the stubs in stublibs subdirectory.
|
|
|
|
|
|
|
|
* Fri May 25 2007 Richard W.M. Jones <rjones@redhat.com> - 5.11.4-2
|
|
|
|
- Use ocaml find-requires, find-provides
|
|
|
|
|
|
|
|
* Sat May 19 2007 Richard W.M. Jones <rjones@redhat.com> - 5.11.4-1
|
|
|
|
- Initial RPM release.
|