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:
Hans Ulrich Niedermann
2001-11-29 01:39:49 +00:00
parent e1c37d79d0
commit efe3cc5cfc
5 changed files with 38 additions and 1 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -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 *************************

View File

@@ -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

View 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")
])