rpms/libitl/F-8 libitl-configure, NONE, 1.1 libitl-makefile-destdir.patch, NONE, 1.1 libitl.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Mohd Izhar Firdaus Ismail (izhar) fedora-extras-commits at redhat.com
Sun Mar 2 17:44:21 UTC 2008


Author: izhar

Update of /cvs/pkgs/rpms/libitl/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17437/F-8

Modified Files:
	.cvsignore sources 
Added Files:
	libitl-configure libitl-makefile-destdir.patch libitl.spec 
Log Message:
- initial import



--- NEW FILE libitl-configure ---
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for libitl 0.6.4.
#
# Report bugs to <developer-at-arabeyes.org>.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# CDPATH.
$as_unset CDPATH


if test "x$CONFIG_SHELL" = x; then
  if (eval ":") 2>/dev/null; then
  as_have_required=yes
else
  as_have_required=no
fi

  if test $as_have_required = yes && 	 (eval ":
(as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

[...4510 lines suppressed...]
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  { as_dir="$ac_dir"
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=

case `sed -n '/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p
' $ac_file_inputs` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
    s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF
  sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s&@configure_input@&$configure_input&;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
$ac_datarootdir_hack
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out"; rm -f "$tmp/out";;
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  esac
 ;;



  esac

done # for ac_tag


{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi


libitl-makefile-destdir.patch:

--- NEW FILE libitl-makefile-destdir.patch ---
diff -ruN libitl-0.6.4/build/config.mk.in libitl-0.6.4.new/build/config.mk.in
--- libitl-0.6.4/build/config.mk.in	2005-03-18 05:50:14.000000000 +0730
+++ libitl-0.6.4.new/build/config.mk.in	2007-10-18 20:52:50.000000000 +0730
@@ -11,4 +11,6 @@
 CFLAGS=@CFLAGS@
 LDFLAGS=@LDFLAGS@
 PREFIX=@prefix@
-
+LIBDIR=@libdir@
+INCLUDEDIR=@includedir@
+DESTDIR=
diff -ruN libitl-0.6.4/hijri/Makefile libitl-0.6.4.new/hijri/Makefile
--- libitl-0.6.4/hijri/Makefile	2005-01-14 18:14:36.000000000 +0730
+++ libitl-0.6.4.new/hijri/Makefile	2007-10-18 20:37:36.000000000 +0730
@@ -9,14 +9,14 @@
 
 install: all
 	@echo "==> Installing hijri component..."
-	test -d $(PREFIX)/include/itl \
-	|| mkdir -p $(PREFIX)/include/itl \
+	test -d $(DESTDIR)/$(INCLUDEDIR)/itl \
+	|| mkdir -p $(DESTDIR)/$(INCLUDEDIR)/itl \
 	|| exit 1;
-	cp src/hijri.h $(PREFIX)/include/itl
+	cp src/hijri.h $(DESTDIR)/$(INCLUDEDIR)/itl
 
 uninstall:
 	@echo "==> Uninstalling hijri component..."
-	rm -f $(PREFIX)/include/itl/hijri.h
+	rm -f $(DESTDIR)/$(INCLUDEDIR)/itl/hijri.h
 
 clean:
 	@echo "==> Cleaning hijri component files..."
diff -ruN libitl-0.6.4/Makefile libitl-0.6.4.new/Makefile
--- libitl-0.6.4/Makefile	2005-03-17 06:32:00.000000000 +0730
+++ libitl-0.6.4.new/Makefile	2007-10-18 20:53:06.000000000 +0730
@@ -23,7 +23,7 @@
 	@false
 
 build/libitl.so: components
-	$(LD) build/*.o $(LDFLAGS) -shared -lm -lc -soname=$(SONAME) -o build/$(FULLNAME)
+	$(LD) build/*.o $(LDFLAGS) --build-id -shared -lm -lc -soname=$(SONAME) -o build/$(FULLNAME)
 	(cd build/ && ln -sf $(FULLNAME) $(SONAME))
 	(cd build/ && ln -sf $(FULLNAME) libitl.so)
 
@@ -35,12 +35,12 @@
 	strip --strip-unneeded build/$(FULLNAME)
 	rm -f build/*.o build/ITL_*
 	@echo "==> Installing libitl library..."
-	test -d $(PREFIX)/lib \
-	|| mkdir -p $(PREFIX)/lib \
+	test -d $(LIBDIR) \
+	|| mkdir -p $(LIBDIR) \
 	|| exit 1;
-	cp build/$(FULLNAME) $(PREFIX)/lib
-	cp -P build/$(SONAME) $(PREFIX)/lib
-	cp -P build/libitl.so $(PREFIX)/lib
+	cp build/$(FULLNAME) $(LIBDIR)
+	cp -P build/$(SONAME) $(LIBDIR)
+	cp -P build/libitl.so $(LIBDIR)
 	@echo "==> Installing ITL components..."
 	for i in $(COMPONENTS); do \
 	  $(MAKE) -C $$i install || exit 1; \
@@ -52,12 +52,12 @@
 
 install: build/libitl.so
 	@echo "==> Installing libitl library..."
-	test -d $(PREFIX)/lib/itl \
-	|| mkdir -p $(PREFIX)/lib/itl \
+	test -d $(DESTDIR)/$(LIBDIR)/ \
+	|| mkdir -p $(DESTDIR)/$(LIBDIR)/ \
 	|| exit 1;
-	cp build/$(FULLNAME) $(PREFIX)/lib/itl
-	cp -P build/$(SONAME) $(PREFIX)/lib/itl
-	cp -P build/libitl.so $(PREFIX)/lib/itl
+	cp build/$(FULLNAME) $(DESTDIR)/$(LIBDIR)/
+	cp -P build/$(SONAME) $(DESTDIR)/$(LIBDIR)/
+	cp -P build/libitl.so $(DESTDIR)/$(LIBDIR)/
 	@echo "==> Installing ITL components..."
 	for i in $(COMPONENTS); do \
 	  $(MAKE) -C $$i install || exit 1; \
@@ -65,9 +65,9 @@
 
 uninstall:
 	@echo "==> Uninstall ITL library..."
-	rm -rf $(PREFIX)/lib/itl
+	rm -rf $(DESTDIR)/$(LIBDIR)/libitl.so*
 	@echo "==> Removing ITL include dir..."
-	rm -rf $(PREFIX)/include/itl
+	rm -rf $(DESTDIR)/$(INCLUDEDIR)/itl
 	@echo "==> Uninstalling ITL components..."
 	for i in $(COMPONENTS); do \
 	  $(MAKE) -C $$i uninstall || exit 1; \
diff -ruN libitl-0.6.4/prayertime/Makefile libitl-0.6.4.new/prayertime/Makefile
--- libitl-0.6.4/prayertime/Makefile	2005-01-14 18:14:35.000000000 +0730
+++ libitl-0.6.4.new/prayertime/Makefile	2007-10-18 20:37:03.000000000 +0730
@@ -9,14 +9,14 @@
 
 install: all
 	@echo "==> Installing prayertime component..."
-	test -d $(PREFIX)/include/itl \
-	|| mkdir -p $(PREFIX)/include/itl \
+	test -d $(DESTDIR)/$(INCLUDEDIR)/itl \
+	|| mkdir -p $(DESTDIR)/$(INCLUDEDIR)/itl \
 	|| exit 1;
-	cp src/prayer.h $(PREFIX)/include/itl
+	cp src/prayer.h $(DESTDIR)/$(INCLUDEDIR)/itl
 
 uninstall:
 	@echo "==> Uninstalling prayertime component..."
-	rm -f $(PREFIX)/include/itl/prayer.h
+	rm -f $(DESTDIR)/$(INCLUDEDIR)/itl/prayer.h
 
 clean:
 	@echo "==> Cleaning prayertime component files..."


--- NEW FILE libitl.spec ---
Name:           libitl
Version:        0.6.4 
Release:        3%{?dist}
Summary:        Libraries for The Islamic Tools and Libraries Project

Group:          System Environment/Libraries
License:        LGPLv2+
URL:            http://www.arabeyes.org/project.php?proj=ITL
Source0:        http://switch.dl.sourceforge.net/sourceforge/arabeyes/%{name}-%{version}.tar.bz2
Source1:        libitl-configure
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Patch101:  libitl-makefile-destdir.patch
#BuildRequires:  autoconf

%description
The Islamic Tools and Libraries (ITL) is a project 
to provide a plethora of useful Islamic tools and 
applications as well as a comprehensive feature-full 
Islam-centric library. The ITL project currently 
includes Hijri date, Muslim prayer times, and Qibla. 

This package contains the libraries for applications using ITL

%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%prep
%setup -q
%patch101 -p1 -b .makefile-destdir
#./autogen.sh
cp %{SOURCE1} configure
chmod +x configure

%build
%configure --disable-static
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'



%clean
rm -rf $RPM_BUILD_ROOT


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_libdir}/libitl.so.*

%files devel
%defattr(-,root,root,-)
%doc prayertime/doc/method-info.txt
%doc prayertime/README
%doc hijri/README
%{_libdir}/libitl.so
%{_includedir}/itl/


%changelog
* Fri Feb 15 2008 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus at gmail.com> 0.6.4-3
- include the configure script as a source instead of as a patch

* Sun Feb 03 2008 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus at gmail.com> 0.6.4-2
- modified makefile to install .so files to standard path
- moved unversioned .so to devel package
- added requires to ldconfig
- changed license to LGPLv2+
- upstream tarball doesn't include a configure script.
  ran autogen.sh with autoconf-2.61 and created a patch to 
  include a configure script instead of running autogen.sh
  on every compile. autoconf-2.61 works with this tarball but we
  don't know about the other autoconf versions.

* Thu Oct 18 2007 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus at gmail.com> 0.6.4-1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/libitl/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	14 Feb 2008 22:13:43 -0000	1.1
+++ .cvsignore	2 Mar 2008 17:43:44 -0000	1.2
@@ -0,0 +1 @@
+libitl-0.6.4.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/libitl/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	14 Feb 2008 22:13:43 -0000	1.1
+++ sources	2 Mar 2008 17:43:44 -0000	1.2
@@ -0,0 +1 @@
+477081809cfc2006fdd2b8d0099d985b  libitl-0.6.4.tar.bz2




More information about the fedora-extras-commits mailing list