Initial import.
This commit is contained in:
parent
75fadcd287
commit
fc1e85f810
@ -0,0 +1 @@
|
||||
ocaml-curses-20020319.tar.gz
|
||||
108
ocaml-curses.spec
Normal file
108
ocaml-curses.spec
Normal file
@ -0,0 +1,108 @@
|
||||
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
%define debug_package %{nil}
|
||||
|
||||
# Note on versioning: There are no official releases
|
||||
# of ocaml-tmk project, nor any version numbers, so I
|
||||
# have arbitrarily named this version 0.1 and as per
|
||||
# http://fedoraproject.org/wiki/Packaging/NamingGuidelines#NonNumericRelease
|
||||
# included an alphatag of the last CVS change upstream.
|
||||
%define alphatag 20020319
|
||||
|
||||
Name: ocaml-curses
|
||||
Version: 0.1
|
||||
Release: 3.%{alphatag}%{?dist}
|
||||
Summary: OCaml bindings for ncurses
|
||||
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2+
|
||||
URL: http://savannah.nongnu.org/projects/ocaml-tmk/
|
||||
Source0: ocaml-curses-%{alphatag}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
ExcludeArch: ppc64
|
||||
|
||||
BuildRequires: ocaml, ocaml-findlib-devel, ncurses-devel
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
||||
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
||||
|
||||
%description
|
||||
OCaml bindings for ncurses.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and signature files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -c -n ocaml-curses-%{alphatag}
|
||||
|
||||
|
||||
%build
|
||||
cd curses
|
||||
make all
|
||||
strip dllmlcurses.so
|
||||
cat > META <<EOF
|
||||
name = "curses"
|
||||
version = "%{version}"
|
||||
description = "OCaml bindings for ncurses"
|
||||
requires = ""
|
||||
archive(byte) = "mlcurses.cma"
|
||||
archive(native) = "mlcurses.cmxa"
|
||||
EOF
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
cd curses
|
||||
ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%{_libdir}/ocaml/curses
|
||||
%if %opt
|
||||
%exclude %{_libdir}/ocaml/curses/*.a
|
||||
%exclude %{_libdir}/ocaml/curses/*.cmxa
|
||||
%exclude %{_libdir}/ocaml/curses/*.cmx
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/curses/*.mli
|
||||
%{_libdir}/ocaml/stublibs/*.so
|
||||
%{_libdir}/ocaml/stublibs/*.so.owner
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%if %opt
|
||||
%{_libdir}/ocaml/curses/*.a
|
||||
%{_libdir}/ocaml/curses/*.cmxa
|
||||
%{_libdir}/ocaml/curses/*.cmx
|
||||
%endif
|
||||
%{_libdir}/ocaml/curses/*.mli
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 24 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-3.20020319
|
||||
- License is LGPL 2.1 or any later version.
|
||||
|
||||
* Mon Aug 6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-2.20020319
|
||||
- The archive is called 'mlcurses.*'.
|
||||
|
||||
* Mon Aug 6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-1.20020319
|
||||
- Initial RPM release.
|
||||
Loading…
Reference in New Issue
Block a user