Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
3c2f14f6af | ||
|
8203cf0d67 | ||
|
5401a7e201 | ||
|
a2ad688ba6 | ||
|
ab6faa0570 |
@ -1 +0,0 @@
|
||||
ocaml-fileutils-0.3.0.tar.gz
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
ocaml-fileutils-0.4.0.tar.gz
|
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: ocaml-fileutils
|
||||
# $Id$
|
||||
NAME := ocaml-fileutils
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
@ -2,14 +2,14 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: ocaml-fileutils
|
||||
Version: 0.3.0
|
||||
Release: 11%{?dist}
|
||||
Version: 0.4.0
|
||||
Release: 1%{?dist}.2
|
||||
Summary: OCaml library for common file and filename operations
|
||||
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2 with exceptions
|
||||
URL: http://www.gallu.homelinux.org/download/
|
||||
Source0: http://www.gallu.homelinux.org/download/ocaml-fileutils-0.3.0.tar.gz
|
||||
Source0: http://www.gallu.homelinux.org/download/ocaml-fileutils-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
ExcludeArch: sparc64 s390 s390x
|
||||
|
||||
@ -17,6 +17,7 @@ BuildRequires: ocaml
|
||||
BuildRequires: ocaml-findlib-devel
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-camlp4-devel
|
||||
BuildRequires: ocaml-ounit-devel
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
||||
@ -46,29 +47,26 @@ developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# The whole build system for this package is totally broken.
|
||||
# We build into a temporary directory then copy the files
|
||||
# to the right place.
|
||||
./configure --prefix=%{_prefix} --libdir=%{_libdir} \
|
||||
--enable-ocamlfind \
|
||||
--with-builddir=`pwd`/tmp
|
||||
%configure
|
||||
|
||||
|
||||
%build
|
||||
# Nothing: 'make' builds and installs. Stupid!
|
||||
make
|
||||
|
||||
|
||||
%install
|
||||
# Go and do your broken stuff now ...
|
||||
rm -rf tmp
|
||||
make
|
||||
# make doc (borked)
|
||||
|
||||
# ... and copy the files to the right places.
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
cp -r tmp/lib/fileutils $RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
rm -rf tmp
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
|
||||
# Set htmldir to current directory, then copy the docs (in api/)
|
||||
# as a %doc rule.
|
||||
make htmldir=. install
|
||||
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
|
||||
%clean
|
||||
@ -81,20 +79,29 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/ocaml/fileutils
|
||||
%if %opt
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.a
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.cmx
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.cmxa
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.ml
|
||||
%exclude %{_libdir}/ocaml/fileutils/*.mli
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING AUTHOR CHANGELOG README TODO
|
||||
%doc COPYING AUTHOR CHANGELOG README TODO api
|
||||
%if %opt
|
||||
%{_libdir}/ocaml/fileutils/*.a
|
||||
%{_libdir}/ocaml/fileutils/*.cmx
|
||||
%{_libdir}/ocaml/fileutils/*.cmxa
|
||||
%endif
|
||||
%{_libdir}/ocaml/fileutils/*.ml
|
||||
%{_libdir}/ocaml/fileutils/*.mli
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.4.0-1.fc12.2
|
||||
- Backport fileutils 0.4.0 from Rawhide to Fedora 12.
|
||||
|
||||
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user