Author: blues Date: Mon Feb 28 19:08:19 2005 GMT Module: SPECS Tag: HEAD ---- Log message: - builds and installs
---- Files affected: SPECS: ifp-line.spec (1.1 -> 1.2) ---- Diffs: ================================================================ Index: SPECS/ifp-line.spec diff -u SPECS/ifp-line.spec:1.1 SPECS/ifp-line.spec:1.2 --- SPECS/ifp-line.spec:1.1 Mon Feb 28 17:09:11 2005 +++ SPECS/ifp-line.spec Mon Feb 28 20:08:14 2005 @@ -1,15 +1,18 @@ # $Revision$, $Date$ # TODO: -# - a lot of things... +# - proper connection with hotplug +# - integration with mc Summary: iRiver command line interface Name: ifp-line Version: 0.2.4.5 -Release: 0.1 -License: GPL +Release: 0.2 +License: GPL v2 Group: Applications/Communications Source0: http://dl.sourceforge.net/ifp-driver/%{name}-%{version}.tar.gz # Source0-md5: 53985c0f00a842026195eed8a4bdd7c5 #Source1: ifpdev.sh +Patch0: %{name}-DESTDIR.patch +BuildRequires: libusb-devel Requires: hotplug URL: http://ifp-driver.sourceforge.net/ Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -24,17 +27,23 @@ %prep %setup -q +%patch0 -p1 %build -%{__make} +%{__make} \ + CC=%{__cc} \ + CFLAGS="%{rpmcflags} `libusb-config --cflags` -Wall" \ + LDFLAGS="%{rpmcflags} `libusb-config --libs`" %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/hotplug/usb,%{_mandir}/man1 +install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/hotplug/usb,%{_mandir}/man1} -install ifp $RPM_BUILD_ROOT%{_bindir} -install ifp.1 $RPM_BUILD_ROOT%{_mandir}/man1 -#install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/hotplug/usb/ifpdev +%{__make} install \ + PREFIX=%{_prefix} \ + BINDIR=%{_bindir} \ + MANDIR=%{_mandir}/man1 \ + DESTDIR=$RPM_BUILD_ROOT %post #grep -q "^ifp:" /etc/group @@ -46,7 +55,6 @@ #egrep -q '^ifpdev[[:blank:]]' /etc/hotplug/usb.usermap #if [ $? -ne 0 ]; then # cat >> /etc/hotplug/usb.usermap << EOF -# ## for iRiver iFP MP3 player #ifpdev 0x0003 0x4102 0x1001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 #ifpdev 0x0003 0x4102 0x1003 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 @@ -55,9 +63,7 @@ #ifpdev 0x0003 0x4102 0x1008 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 #ifpdev 0x0003 0x4102 0x1009 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 #ifpdev 0x0003 0x4102 0x1010 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 -# #EOF -# # echo "/etc/hotplug/usb.usermap changed." #fi @@ -66,7 +72,7 @@ %files %defattr(644,root,root,755) -%doc README COPYING NEWS TIPS nonroot.sh +%doc README NEWS TIPS nonroot.sh %attr(755,root,root) %{_bindir}/* #/etc/hotplug/usb/ifpdev %{_mandir}/man1/*.1* @@ -77,6 +83,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.2 2005/02/28 19:08:14 blues +- builds and installs + Revision 1.1 2005/02/28 16:09:11 blues - initial, raw... ugly... ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/ifp-line.spec?r1=1.1&r2=1.2&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
