%define usbmux_uid 65424 %define usbmux_gid 65424 Name: usbmuxd Version: 1.0.8 Release: 1mamba2 Summary: A service used to talk to iPhone or iPod Touch over USB Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://cgit.sukimashita.com/usbmuxd.git Source: http://www.libimobiledevice.org/downloads/usbmuxd-%{version}.tar.bz2 License: GPL BuildRequires: cmake ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libplist-devel BuildRequires: libusb-devel ## AUTOBUILDREQ-END Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description usbmuxd is in charge of talking to your iPhone or iPod Touch over USB and coordinating access to its services by other applications. %package -n lib%{name} Group: System/Libraries Summary: A library used to talk to iPhone or iPod Touch over USB %description -n lib%{name} usbmuxd is in charge of talking to your iPhone or iPod Touch over USB and coordinating access to its services by other applications. %package -n lib%{name}-devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-devel usbmuxd is in charge of talking to your iPhone or iPod Touch over USB and coordinating access to its services by other applications. This package contains static libraries and header files need for development. %prep %setup -q -n usbmuxd-%{version} %build %cmake -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre if [ $1 -ge 1 ]; then # new install or update getent group usbmux > /dev/null || groupadd usbmux -g %{usbmux_gid} getent passwd usbmux >/dev/null || useradd usbmux -c "usbmuxd user" -d /dev/null \ -s /bin/false -u %{usbmux_uid} -g %{usbmux_gid} > /dev/null fi exit 0 %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files %defattr(-,root,root) /%{_lib}/udev/rules.d/85-usbmuxd.rules %{_bindir}/iproxy %{_sbindir}/usbmuxd %files -n lib%{name} %defattr(-,root,root) %{_libdir}/*.so.* %doc AUTHORS README %files -n lib%{name}-devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/*.so %{_libdir}/pkgconfig/libusbmuxd.pc %doc README.devel %changelog * Sat May 26 2012 Silvan Calarco 1.0.8-1mamba2 - mamba2 milestone rebuild * Mon May 14 2012 Silvan Calarco 1.0.8-1mamba - update to 1.0.8 * Sun Jan 29 2012 Stefano Cotta Ramusino 1.0.7-2mamba - added usbmuxd user creation in %%pre section * Tue Mar 22 2011 Automatic Build System 1.0.7-1mamba - automatic update by autodist * Wed Nov 10 2010 Automatic Build System 1.0.6-1mamba - automatic update by autodist * Mon Sep 20 2010 Silvan Calarco 1.0.5-1mamba - package created by autospec