2001-11-29 Hans Ulrich Niedermann <hun@n-dimensional.de>
* Makefile.am: enable RPM and CVS rules only when useful * configure.in: init RPM packaging * libgphoto2_port/m4/packaging.m4: added packaging macro git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3274 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-11-29 Hans Ulrich Niedermann <hun@n-dimensional.de>
|
||||
* Makefile.am: enable RPM and CVS rules only when useful
|
||||
* configure.in: init RPM packaging
|
||||
* libgphoto2_port/m4/packaging.m4: added packaging macro
|
||||
|
||||
2001-11-27 Lutz Müller <urc8@rz.uni-karlsruhe.de>
|
||||
|
||||
* libgphoto2/gphoto2-camera.c: Update documentation.
|
||||
|
||||
@@ -50,15 +50,22 @@ dist-bzip2:
|
||||
-chmod -R a+r $(distdir)
|
||||
-$(TAR) chojf $(distdir).tar.bz2 $(distdir)
|
||||
|
||||
if ENABLE_RPM
|
||||
|
||||
# create RPM packages
|
||||
.PHONY: rpm
|
||||
rpm: Makefile
|
||||
$(MAKE) dist
|
||||
$(MAKE) -C packaging/rpm rpm
|
||||
|
||||
endif
|
||||
|
||||
if MAINTAINER_MODE
|
||||
|
||||
# add CVS tags - used only by the project maintainer to tag the files of a
|
||||
# released version
|
||||
.PHONY: cvs-tags
|
||||
cvs-tags: Makefile
|
||||
@echo cvs tag "@PACKAGE@-$$(echo '@VERSION@' | sed 's/\./_/g')"
|
||||
|
||||
endif
|
||||
|
||||
@@ -26,7 +26,7 @@ AM_GNU_GETTEXT
|
||||
AC_CHECK_FUNC(gettext, gettext_without_libintl=true)
|
||||
# same trick as with libdl:
|
||||
# if gettext() doesn't require linking against libintl,
|
||||
# we don't have to check for dlopen in libintl. Otherwise
|
||||
# we don't have to check for gettext in libintl. Otherwise
|
||||
# we may even require libintl.
|
||||
dnl AC_CHECK_LIB(intl, gettext, [LIBS="$LIBS -lintl"])
|
||||
if test "$gettext_without_libintl" != "true"; then
|
||||
@@ -158,6 +158,11 @@ dnl build docs?
|
||||
dnl ********
|
||||
GP_BUILD_DOCS()dnl
|
||||
|
||||
dnl ************************************************************
|
||||
dnl initialize packaging RPMs
|
||||
dnl ************************************************************
|
||||
PKG_CHECK_RPM()dnl
|
||||
|
||||
dnl *************************
|
||||
dnl Configure libgphoto2-port
|
||||
dnl *************************
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2001-11-29 Hans Ulrich Niedermann <hun@n-dimensional.de>
|
||||
|
||||
* libgphoto2_port/m4/packaging.m4: added packaging macro
|
||||
|
||||
2001-11-27 Hans Ulrich Niedermann <hun@n-dimensional.de>
|
||||
|
||||
* po/libgphoto2_port.pot: I'm sick of all the diffs
|
||||
|
||||
16
libgphoto2_port/m4/packaging.m4
Normal file
16
libgphoto2_port/m4/packaging.m4
Normal file
@@ -0,0 +1,16 @@
|
||||
AC_DEFUN(PKG_CHECK_RPM,
|
||||
[
|
||||
AC_ARG_WITH(rpmbuild, [ --with-rpmbuild=PATH program to use for building RPMs])
|
||||
|
||||
AC_MSG_CHECKING([rpmbuild])
|
||||
if test -x "${with_doc_dir}"
|
||||
then
|
||||
RPMBUILD="${with_doc_dir}"
|
||||
AC_MSG_RESULT([${RPMBUILD} (from parameter)])
|
||||
AC_SUBST(RPMBUILD)
|
||||
else
|
||||
AC_CHECK_PROGS(RPMBUILD, [rpmbuild rpm], /bin/false)
|
||||
AC_MSG_RESULT([${RPMBUILD} (autodetect)])
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_RPM, test "$RPMBUILD" != "/bin/false")
|
||||
])
|
||||
Reference in New Issue
Block a user