%define date 20190228 Name: libphidget Version: 2.2 Release: 1.%{date}%{?dist} Summary: Drivers and API for Phidget devices Group: Development/Libraries License: LGPLv3 URL: http://www.phidgets.com Source0: https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22/libphidget22-1.0.0.%{date}.tar.gz Patch0: configure.ac-library_version.patch # Needed because Makefile.am is patched BuildRequires: libtool BuildRequires: autoconf BuildRequires: avahi-devel BuildRequires: avahi-compat-libdns_sd-devel BuildRequires: libusb-devel BuildRequires: gawk Requires: udev Requires: avahi-compat-libdns_sd %description Phidgets are a set of "plug and play" building blocks for low cost USB sensing and control from your PC. All the USB complexity is taken care of by the robust libphidget API. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n libphidget22-1.0.0.%{date} # These headers are supplied by the avahi-compat-libdns_sd-devel package # We can get rid of the bundled ones rm -rf linux/avahi-* rm -rf include/dns_sd.h %build autoreconf -i %configure --disable-silent-rules --disable-static --enable-zeroconf=avahi --disable-ldconfig --enable-jni make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' mkdir -p -m 0755 $RPM_BUILD_ROOT/lib/udev/rules.d install -p -m 0644 plat/linux/udev/99-libphidget22.rules $RPM_BUILD_ROOT/lib/udev/rules.d/99-phidgets.rules %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc COPYING AUTHORS README %{_libdir}/*.so.* /lib/udev/rules.d/* %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog * Sat Mar 23 2019 Daniel Mach - 2.2-1.20190228 - Update to 2.2, 20190228. * Sun Nov 12 2017 Daniel Mach - 2.2-1.20171106 - Update to 2.2, 20171106. - Patch library_version in configure.ac. - Disable java. * Thu Aug 03 2017 Fedora Release Engineering - 2.1.8.20140319-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.1.8.20140319-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.1.8.20140319-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2.1.8.20140319-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 2.1.8.20140319-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 2.1.8.20140319-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.1.8.20140319-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Jun 01 2014 Rich Mattes - 2.1.8.20140319-1 - Update to release 2.1.8-20140319 - Rename phidget21.jar to phidget.jar, install to jnidir (rhbz#1022135) * Fri Mar 28 2014 Michael Simacek - 2.1.8.20121218-4 - Use Requires: java-headless rebuild (#1067528) * Sat Aug 03 2013 Fedora Release Engineering - 2.1.8.20121218-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 2.1.8.20121218-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Jan 13 2013 Rich Mattes - 2.1.8.20121218-1 - Update to 2.1.8.20121218 * Sun Oct 28 2012 Rich Mattes - 2.1.8.20120912-1 - Update to 2.1.8.20120912 * Sun Sep 02 2012 Rich Mattes - 2.1.8.20120716-1 - Update to 2.1.8.20120716 * Thu Jul 19 2012 Fedora Release Engineering - 2.1.8.20120514-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri May 25 2012 Rich Mattes - 2.1.8.20120514-1 - Update to 2.1.8-20120514 * Mon Jan 23 2012 Rich Mattes - 2.1.8.20120123-1 - Update to 2.1.8-20120123 - Move udev rule to /lib/udev (/etc/udev is for sysadmins) * Fri Jan 13 2012 Fedora Release Engineering - 2.1.8.20111121-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Dec 18 2011 Rich Mattes - 2.1.8.20111121-1 - Update to 2.1.8-20111121 * Wed Jun 29 2011 Rich Mattes - 2.1.8.20110615-1 - Update to 2.1.8.20110615 * Wed May 11 2011 Rich Mattes - 2.1.8.20110322-1 - Update to 2.1.8.20110322 * Mon Mar 14 2011 Rich Mattes - 2.1.8.20110310-1 - Update to 2.1.8.20110310 * Tue Feb 08 2011 Fedora Release Engineering - 2.1.7.20101222-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jan 28 2011 Rich Mattes - 2.1.7-20101222-1 - Update to version 2.1.7-20101222 * Tue Dec 14 2010 Rich Mattes - 2.1.7.20101103-2 - Remove dependencies on bundled avahi headers - Add explicit runtime requirement for avahi dns_sd * Tue Dec 14 2010 Rich Mattes - 2.1.7.20101103-1 - Update to latest version * Fri Oct 01 2010 Rich Mattes - 2.1.7.20100621-5 - Disable zeroconf runtime linking * Mon Sep 27 2010 Rich Mattes - 2.1.7.20100621-4 - Bump release to maintain upgrade path * Tue Sep 21 2010 Rich Mattes - 2.1.7.20100621-3 - Split java bindings into separate -java subpackage * Mon Sep 20 2010 Rich Mattes - 2.1.7.20100621-2 - Enable zeroconf - Enable jni - Install udev rules * Sun Sep 19 2010 Rich Mattes - 2.1.7.20100621-1 - Initial build