|
%define build_hal 0 |
|
1 |
%bcond_without python |
%bcond_without python |
2 |
%bcond_without sharp |
%bcond_without sharp |
3 |
|
|
9 |
Summary: Library to access an iPod audio player |
Summary: Library to access an iPod audio player |
10 |
Name: libgpod |
Name: libgpod |
11 |
Version: 0.8.2 |
Version: 0.8.2 |
12 |
Release: %mkrel 2 |
Release: %mkrel 3 |
13 |
Source0: http://prdownloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2 |
Source0: http://prdownloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2 |
14 |
License: LGPLv2+ |
License: LGPLv2+ |
15 |
Group: System/Libraries |
Group: System/Libraries |
18 |
BuildRequires: udev-devel |
BuildRequires: udev-devel |
19 |
BuildRequires: dbus-glib-devel |
BuildRequires: dbus-glib-devel |
20 |
|
|
|
%if %{build_hal} |
|
|
BuildRequires: hal-devel |
|
|
%endif |
|
|
|
|
21 |
BuildRequires: libsgutils-devel |
BuildRequires: libsgutils-devel |
22 |
BuildRequires: taglib-devel |
BuildRequires: taglib-devel |
23 |
BuildRequires: libxml2-devel |
BuildRequires: libxml2-devel |
99 |
|
|
100 |
%build |
%build |
101 |
%configure2_5x \ |
%configure2_5x \ |
|
--enable-gtk-doc \ |
|
102 |
--disable-static \ |
--disable-static \ |
103 |
--enable-udev \ |
--enable-udev \ |
|
%if !%{build_hal} |
|
104 |
--without-hal |
--without-hal |
|
%endif |
|
105 |
|
|
106 |
%make |
%make |
107 |
|
|
108 |
%install |
%install |
|
rm -rf %{buildroot} |
|
109 |
%makeinstall_std |
%makeinstall_std |
110 |
|
|
111 |
#we don't want these |
#we don't want these |
112 |
find %{buildroot} -name "*.la" -delete |
find %{buildroot} -name "*.la" -delete |
113 |
|
|
114 |
%if !%{with sharp} |
%if !%{with sharp} |
115 |
rm -f %{buildroot}/%{_libdir}/pkgconfig/%{name}-sharp.pc |
rm -f %{buildroot}/%{_libdir}/pkgconfig/%{name}-sharp.pc |
116 |
%endif |
%endif |
124 |
/lib/udev/ipod-set-info |
/lib/udev/ipod-set-info |
125 |
/lib/udev/rules.d/90-libgpod.rules |
/lib/udev/rules.d/90-libgpod.rules |
126 |
|
|
|
%if %build_hal |
|
|
%{_libdir}/hal/scripts/* |
|
|
%{_datadir}/hal/fdi/policy/20thirdparty/* |
|
|
%endif |
|
|
|
|
127 |
%files -n %{libname} |
%files -n %{libname} |
128 |
%{_libdir}/%{name}.so.%{major}* |
%{_libdir}/%{name}.so.%{major}* |
129 |
|
|