1 | %bcond_with systemd |
---|
2 | |
---|
3 | Summary: Daemon for communicating with Apple's iPod Touch and iPhone |
---|
4 | Summary(ja): Apple の iPod Touch や iPhone と通信するためのデーモン |
---|
5 | Name: usbmuxd |
---|
6 | Version: 1.1.1 |
---|
7 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
8 | Vendor: Project Vine |
---|
9 | Distribution: Vine Linux |
---|
10 | Packager: daisuke |
---|
11 | |
---|
12 | # All code is dual licenses as GPLv3+ or GPLv2+ |
---|
13 | License: GPLv3+ or GPLv2+ |
---|
14 | URL: https://libimobiledevice.org/ |
---|
15 | Source0: https://github.com/libimobiledevice/usbmuxd/releases/download/%{version}/%{name}-%{version}.tar.bz2 |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
18 | BuildRequires: libusb1-devel |
---|
19 | BuildRequires: libimobiledevice-devel |
---|
20 | BuildRequires: libplist-devel |
---|
21 | Requires(pre): shadow-utils |
---|
22 | Obsoletes: usbmuxd-devel < 1.0.9 |
---|
23 | |
---|
24 | %if %{with systemd} |
---|
25 | BuildRequires: systemd-devel |
---|
26 | %{?systemd_requires} |
---|
27 | %else |
---|
28 | BuildRequires: eudev-libgudev1-devel |
---|
29 | Requires: eudev |
---|
30 | %endif |
---|
31 | |
---|
32 | %description |
---|
33 | usbmuxd is a daemon used for communicating with Apple's iPod Touch and iPhone |
---|
34 | devices. It allows multiple services on the device to be accessed |
---|
35 | simultaneously. |
---|
36 | |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q |
---|
40 | |
---|
41 | # Set the owner of the device node to be usbmuxd |
---|
42 | sed -i.owner 's/OWNER="usbmux"/OWNER="usbmuxd"/' udev/39-usbmuxd.rules.in |
---|
43 | sed -i.user 's/-U usbmux/-U usbmuxd/' udev/39-usbmuxd.rules.in |
---|
44 | |
---|
45 | |
---|
46 | %build |
---|
47 | #NOCONFIGURE=1 ./autogen.sh |
---|
48 | %configure \ |
---|
49 | --with-udevrulesdir=/lib/udev/rules.d \ |
---|
50 | %if !%{with systemd} |
---|
51 | --without-systemd |
---|
52 | %endif |
---|
53 | %{nil} |
---|
54 | |
---|
55 | make %{?_smp_mflags} |
---|
56 | |
---|
57 | |
---|
58 | %install |
---|
59 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
60 | rm -f %{buildroot}/usr/lib/udev/rules.d/39-usbmuxd.rules |
---|
61 | |
---|
62 | |
---|
63 | %clean |
---|
64 | rm -rf $RPM_BUILD_ROOT |
---|
65 | |
---|
66 | |
---|
67 | %pre |
---|
68 | getent group usbmuxd >/dev/null || groupadd -r usbmuxd |
---|
69 | getent passwd usbmuxd >/dev/null || \ |
---|
70 | useradd -r -g usbmuxd -d / -s /sbin/nologin \ |
---|
71 | -c "usbmuxd user" usbmuxd |
---|
72 | exit 0 |
---|
73 | |
---|
74 | %if %{with systemd} |
---|
75 | %post |
---|
76 | %systemd_post usbmuxd.service |
---|
77 | |
---|
78 | %preun |
---|
79 | %systemd_preun usbmuxd.service |
---|
80 | |
---|
81 | %postun |
---|
82 | %systemd_postun_with_restart usbmuxd.service |
---|
83 | %endif |
---|
84 | |
---|
85 | |
---|
86 | %files |
---|
87 | %defattr(-,root,root,-) |
---|
88 | %license COPYING.GPLv2 COPYING.GPLv3 |
---|
89 | %doc AUTHORS README.md |
---|
90 | /lib/udev/rules.d/39-usbmuxd.rules |
---|
91 | %{_sbindir}/usbmuxd |
---|
92 | %{_mandir}/man*/* |
---|
93 | %if %{with systemd} |
---|
94 | %{_unitdir}/usbmuxd.service |
---|
95 | %endif |
---|
96 | |
---|
97 | |
---|
98 | %changelog |
---|
99 | * Sun Aug 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.1-1 |
---|
100 | - new upstream release. |
---|
101 | - added systemd support (disabled as default). |
---|
102 | |
---|
103 | * Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.9-2 |
---|
104 | - rebuilt with libimobiledevice 1.2.0 and libplist 1.12 |
---|
105 | - added --without-systemd option |
---|
106 | |
---|
107 | * Wed Jul 09 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.0.9-1 |
---|
108 | - update to 1.0.9 |
---|
109 | |
---|
110 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-2 |
---|
111 | - rebuild with VineSeed environment |
---|
112 | |
---|
113 | * Sat Apr 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-1 |
---|
114 | - new upstream release |
---|
115 | |
---|
116 | * Fri Apr 15 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.7-1 |
---|
117 | - new upstream release |
---|
118 | |
---|
119 | * Tue Dec 28 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-1 |
---|
120 | - new upstream release |
---|
121 | |
---|
122 | * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.4-3 |
---|
123 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
124 | |
---|
125 | * Sun Jun 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-2 |
---|
126 | - set the owner of the device node to be usbmuxd |
---|
127 | |
---|
128 | * Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1 |
---|
129 | - new upstream release |
---|
130 | |
---|
131 | * Thu Apr 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.3-1 |
---|
132 | - initial build for Vine Linux |
---|
133 | |
---|
134 | * Mon Mar 22 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.3-1 |
---|
135 | - New stable 1.0.3 release |
---|
136 | |
---|
137 | * Thu Feb 11 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.2-1 |
---|
138 | - New stable 1.0.2 release |
---|
139 | |
---|
140 | * Tue Feb 09 2010 Bastien Nocera <bnocera@redhat.com> 1.0.0-3 |
---|
141 | - Use the gid/uid reserved for usbmuxd in setup 2.8.15 and above |
---|
142 | |
---|
143 | * Fri Jan 29 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.0-2 |
---|
144 | - Run deamon under the usbmuxd user |
---|
145 | |
---|
146 | * Mon Dec 7 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-1 |
---|
147 | - New stable 1.0.0 release |
---|
148 | |
---|
149 | * Sat Oct 31 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc2 |
---|
150 | - New 1.0.0-rc2 test release |
---|
151 | |
---|
152 | * Thu Oct 29 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.2.rc1 |
---|
153 | - Add patch to fix install of 64 bit libs |
---|
154 | |
---|
155 | * Tue Oct 27 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc1 |
---|
156 | - New 1.0.0-rc1 test release |
---|
157 | |
---|
158 | * Fri Aug 14 2009 Bastien Nocera <bnocera@redhat.com> 0.1.4-2 |
---|
159 | - Make usbmuxd autostart on newer kernels |
---|
160 | - (Still doesn't exit properly though) |
---|
161 | |
---|
162 | * Mon Aug 10 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.4-1 |
---|
163 | - Update to 0.1.4 |
---|
164 | |
---|
165 | * Tue Aug 4 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.3-1 |
---|
166 | - Update to 0.1.3, review input |
---|
167 | |
---|
168 | * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-1 |
---|
169 | - Update to 0.1.2 |
---|
170 | |
---|
171 | * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.1-1 |
---|
172 | - Initial packaging |
---|