diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2021-09-08 04:18:00 +0200 |
---|---|---|
committer | Marcus Meissner <meissner@suse.de> | 2021-10-19 11:08:54 +0200 |
commit | 69b3fc54bc6533c8716af8c9d5ab7945fe7923dd (patch) | |
tree | b0ba2e02139f3bb84f41d345247aaf1db79324d2 /libgphoto2_port | |
parent | 4c560cf7164f2ed3027ee00a7b00e8f4978ab6eb (diff) | |
download | libgphoto2-69b3fc54bc6533c8716af8c9d5ab7945fe7923dd.tar.gz |
Remove rpm packaging
While adding support for "make rpm" appeared to be a good idea in the
early 2000s, it really is not and only clutters up the build system.
At least the libgphoto2_port translation cannot have worked in the
rpm package since at least 5255d802102c10f971dc98f10828451d9922340d
from 2007-10-28, so it is a good guess that this has not really been
in use.
Diffstat (limited to 'libgphoto2_port')
-rw-r--r-- | libgphoto2_port/gphoto-m4/gp-packaging.m4 | 22 | ||||
-rw-r--r-- | libgphoto2_port/libgphoto2_port.spec.in | 67 |
2 files changed, 0 insertions, 89 deletions
diff --git a/libgphoto2_port/gphoto-m4/gp-packaging.m4 b/libgphoto2_port/gphoto-m4/gp-packaging.m4 index d85b418a2..6ea9e0472 100644 --- a/libgphoto2_port/gphoto-m4/gp-packaging.m4 +++ b/libgphoto2_port/gphoto-m4/gp-packaging.m4 @@ -1,25 +1,3 @@ -AC_DEFUN([GPKG_CHECK_RPM], -[ -AC_ARG_WITH([rpmbuild], -[AS_HELP_STRING([--with-rpmbuild=PATH], -[Program to use for building RPMs])]) - -AC_MSG_CHECKING([for rpmbuild or rpm]) -if test -x "${with_rpmbuild}" -then - RPMBUILD="${with_rpmbuild}" - AC_MSG_RESULT([${RPMBUILD} (from parameter)]) -else - AC_MSG_RESULT([using autodetection]) - AC_CHECK_PROGS(RPMBUILD, [rpmbuild rpm], false) - AC_MSG_CHECKING([for rpmbuild or rpm]) - AC_MSG_RESULT([${RPMBUILD} (autodetected)]) -fi -AC_SUBST([RPMBUILD]) -AM_CONDITIONAL([ENABLE_RPM], [test "$RPMBUILD" != "false"]) - -]) - AC_DEFUN([GPKG_CHECK_LINUX], [ # effective_target has to be determined in advance diff --git a/libgphoto2_port/libgphoto2_port.spec.in b/libgphoto2_port/libgphoto2_port.spec.in deleted file mode 100644 index 494305a7f..000000000 --- a/libgphoto2_port/libgphoto2_port.spec.in +++ /dev/null @@ -1,67 +0,0 @@ -# -*- rpm-spec -*- - -%define ver @VERSION@ -%define rel 1 -%define prefix /usr - -Summary: Portable I/O library -Name: libgphoto2-port -Version: %ver -Release: %rel -Copyright: LGPL -Group: System Environment/Libraries -BuildRoot: /var/tmp/libgphoto2-port-%{PACKAGE_VERSION}-root -URL: @URL_GPHOTO_HOME@ -Docdir: %{prefix}/doc -Requires: libusb - -%description -The benefit to using this library would be that all communications can be -done quickly and without worry for device specific functions; all devices -are abstracted to a point, allowing you to read/write to a device using -the same interface. For example, you can set all the options on the serial -port easily, and then read/write to that device. Additionally, you could -easily switch over to a USB device, and read/write without having to learn -the USB internals. - -%package devel -Summary: Libraries, includes, etc to develop applications using libgpio -Group: System Environment/Libraries -Requires: libgphoto2-port - -%description devel -Libraries, include files, etc you need to develop applications with libgphoto2-port - -%prep -%setup - -%build -CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix -make - -%install -rm -rf $RPM_BUILD_ROOT - -make prefix=$RPM_BUILD_ROOT%{prefix} install - -%clean -rm -rf $RPM_BUILD_ROOT - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%files -%defattr(-, root, root) - -%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO -%{prefix}/lib/lib*.so.* -%{prefix}/bin/gpio-config - -%files devel -%defattr(-, root, root) - -%{prefix}/lib/lib*.so -%{prefix}/lib/*a -%{prefix}/lib/*.sh -%{prefix}/include/* |