mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
remove svrcore-config
This commit is contained in:
parent
96d896ee39
commit
7fcf5652b0
@ -1,106 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
prefix=@prefix@
|
||||
|
||||
major_version=@MOD_MAJOR_VERSION@
|
||||
minor_version=@MOD_MINOR_VERSION@
|
||||
patch_version=@MOD_PATCH_VERSION@
|
||||
|
||||
usage()
|
||||
{
|
||||
cat <<EOF
|
||||
Usage: svrcore-config [OPTIONS] [LIBRARIES]
|
||||
Options:
|
||||
[--prefix[=DIR]]
|
||||
[--includedir[=DIR]]
|
||||
[--libdir[=DIR]]
|
||||
[--version]
|
||||
[--libs]
|
||||
[--cflags]
|
||||
Static Libraries:
|
||||
svrcore
|
||||
EOF
|
||||
exit $1
|
||||
}
|
||||
|
||||
if test $# -eq 0; then
|
||||
usage 1 1>&2
|
||||
fi
|
||||
|
||||
lib_svrcore=yes
|
||||
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||
*) optarg= ;;
|
||||
esac
|
||||
|
||||
case $1 in
|
||||
--prefix=*)
|
||||
prefix=$optarg
|
||||
;;
|
||||
--prefix)
|
||||
echo_prefix=yes
|
||||
;;
|
||||
--includedir=*)
|
||||
includedir=$optarg
|
||||
;;
|
||||
--includedir)
|
||||
echo_includedir=yes
|
||||
;;
|
||||
--libdir=*)
|
||||
libdir=$optarg
|
||||
;;
|
||||
--libdir)
|
||||
echo_libdir=yes
|
||||
;;
|
||||
--version)
|
||||
echo ${major_version}.${minor_version}.${patch_version}
|
||||
;;
|
||||
--cflags)
|
||||
echo_cflags=yes
|
||||
;;
|
||||
--libs)
|
||||
echo_libs=yes
|
||||
;;
|
||||
svrcore)
|
||||
lib_svrcore=yes
|
||||
;;
|
||||
*)
|
||||
usage 1 1>&2
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# Set variables that may be dependent upon other variables
|
||||
if test -z "$includedir"; then
|
||||
includedir=@includedir@
|
||||
fi
|
||||
if test -z "$libdir"; then
|
||||
libdir=@libdir@
|
||||
fi
|
||||
|
||||
if test "$echo_prefix" = "yes"; then
|
||||
echo $prefix
|
||||
fi
|
||||
|
||||
if test "$echo_includedir" = "yes"; then
|
||||
echo $includedir
|
||||
fi
|
||||
|
||||
if test "$echo_libdir" = "yes"; then
|
||||
echo $libdir
|
||||
fi
|
||||
|
||||
if test "$echo_cflags" = "yes"; then
|
||||
echo -I$includedir
|
||||
fi
|
||||
|
||||
if test "$echo_libs" = "yes"; then
|
||||
libdirs="-L$libdir"
|
||||
if test -n "$lib_svrcore"; then
|
||||
libdirs="$libdirs -lsvrcore${major_version}"
|
||||
fi
|
||||
echo $libdirs
|
||||
fi
|
@ -75,30 +75,12 @@ make EXPORTS="" RELEASE="" REQUIRES="" MODULE="" IMPORTS="" OBJDIR=. INSTALL=tru
|
||||
-e "s,%%SVRCORE_VERSION%%,%{version},g" > \
|
||||
$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/svrcore.pc
|
||||
|
||||
VMAJOR=`echo %{version}|cut -f1 -d.`
|
||||
VMINOR=`echo %{version}|cut -f2 -d.`
|
||||
VPATCH=`echo %{version}|cut -f3 -d.`
|
||||
|
||||
%{__mkdir_p} $RPM_BUILD_ROOT/%{_bindir}
|
||||
%{__cat} svrcore-config.in | sed -e "s,@libdir@,%{_libdir},g" \
|
||||
-e "s,@prefix@,%{_prefix},g" \
|
||||
-e "s,@exec_prefix@,%{_prefix},g" \
|
||||
-e "s,@includedir@,%{_includedir},g" \
|
||||
-e "s,@MOD_MAJOR_VERSION@,$VMAJOR,g" \
|
||||
-e "s,@MOD_MINOR_VERSION@,$VMINOR,g" \
|
||||
-e "s,@MOD_PATCH_VERSION@,$VPATCH,g" \
|
||||
> $RPM_BUILD_ROOT/%{_bindir}/svrcore-config
|
||||
|
||||
chmod 755 $RPM_BUILD_ROOT/%{_bindir}/svrcore-config
|
||||
|
||||
|
||||
%install
|
||||
|
||||
# There is no make install target so we'll do it ourselves.
|
||||
|
||||
%{__mkdir_p} $RPM_BUILD_ROOT/%{_includedir}
|
||||
%{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}
|
||||
%{__mkdir_p} $RPM_BUILD_ROOT/%{_bindir}
|
||||
|
||||
cd mozilla/security/svrcore
|
||||
# Copy the binary libraries we want
|
||||
@ -117,23 +99,16 @@ done
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%post
|
||||
/sbin/ldconfig >/dev/null 2>/dev/null
|
||||
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig >/dev/null 2>/dev/null
|
||||
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root)
|
||||
%{_libdir}/pkgconfig/svrcore.pc
|
||||
%{_libdir}/libsvrcore.a
|
||||
%attr(0755,root,root) %{_bindir}/svrcore-config
|
||||
%{_includedir}/svrcore.h
|
||||
|
||||
%changelog
|
||||
* Wed Jan 11 2006 Rich Megginson <rmeggins@redhat.com> - 4.01-1
|
||||
- Removed svrcore-config - use pkg-config instead
|
||||
|
||||
* Mon Dec 19 2005 Rich Megginson <rmeggins@redhat.com> - 4.01-1
|
||||
- Initial revision
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user