1 |
%define build_hal 0 |
%define build_hal 0 |
2 |
|
%bcond_without python |
3 |
|
%bcond_without sharp |
4 |
|
|
5 |
%define major 4 |
%define major 4 |
6 |
%define libname %mklibname gpod %{major} |
%define libname %mklibname gpod %{major} |
10 |
Summary: Library to access an iPod audio player |
Summary: Library to access an iPod audio player |
11 |
Name: libgpod |
Name: libgpod |
12 |
Version: 0.8.2 |
Version: 0.8.2 |
13 |
Release: %mkrel 1 |
Release: %mkrel 2 |
14 |
Source0: http://prdownloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2 |
Source0: http://prdownloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2 |
15 |
License: LGPLv2+ |
License: LGPLv2+ |
16 |
Group: System/Libraries |
Group: System/Libraries |
53 |
Group: Development/C |
Group: Development/C |
54 |
Summary: Library to access an iPod audio player |
Summary: Library to access an iPod audio player |
55 |
Requires: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version}-%{release} |
56 |
Requires: %{name}-sharp = %{version}-%{release} |
Suggests: %{name}-sharp = %{version}-%{release} |
57 |
Provides: %{name}-devel = %{version}-%{release} |
Provides: %{name}-devel = %{version}-%{release} |
58 |
Obsoletes: %mklibname -d gpod 2 |
Obsoletes: %mklibname -d gpod 2 |
59 |
|
|
62 |
provides an easy to use API to retrieve the list of files and playlist |
provides an easy to use API to retrieve the list of files and playlist |
63 |
stored on an iPod, to modify them and to save them back to the iPod. |
stored on an iPod, to modify them and to save them back to the iPod. |
64 |
|
|
65 |
|
%if %{with python} |
66 |
%package -n python-gpod |
%package -n python-gpod |
67 |
Group: Development/Python |
Group: Development/Python |
68 |
Summary: Python module for iPod access |
Summary: Python module for iPod access |
79 |
stored on an iPod, to modify them and to save them back to the iPod. |
stored on an iPod, to modify them and to save them back to the iPod. |
80 |
|
|
81 |
This is a Python binding for libgpod. |
This is a Python binding for libgpod. |
82 |
|
%endif |
83 |
|
|
84 |
|
%if %{with sharp} |
85 |
%package sharp |
%package sharp |
86 |
Group: Development/Other |
Group: Development/Other |
87 |
Summary: Mono binding to libgpod for iPod access |
Summary: Mono binding to libgpod for iPod access |
96 |
stored on an iPod, to modify them and to save them back to the iPod. |
stored on an iPod, to modify them and to save them back to the iPod. |
97 |
|
|
98 |
This is a Mono binding for libgpod. |
This is a Mono binding for libgpod. |
99 |
|
%endif |
100 |
|
|
101 |
%prep |
%prep |
102 |
%setup -q |
%setup -q |
119 |
|
|
120 |
#we don't want these |
#we don't want these |
121 |
find %{buildroot} -name "*.la" -delete |
find %{buildroot} -name "*.la" -delete |
122 |
|
%if !%{with sharp} |
123 |
|
rm -f %{buildroot}/%{_libdir}/pkgconfig/%{name}-sharp.pc |
124 |
|
%endif |
125 |
|
|
126 |
%find_lang %{name} |
%find_lang %{name} |
127 |
|
|
148 |
%{_libdir}/pkgconfig/%{name}-sharp.pc |
%{_libdir}/pkgconfig/%{name}-sharp.pc |
149 |
%{_includedir}/gpod-%{api}/ |
%{_includedir}/gpod-%{api}/ |
150 |
|
|
151 |
|
%if %{with python} |
152 |
%files -n python-gpod |
%files -n python-gpod |
153 |
%{py_platsitedir}/gpod/ |
%{py_platsitedir}/gpod/ |
154 |
|
%endif |
155 |
|
|
156 |
|
%if %{with sharp} |
157 |
%files sharp |
%files sharp |
158 |
|
%{_libdir}/pkgconfig/%{name}-sharp.pc |
159 |
%dir %{_libdir}/%{name} |
%dir %{_libdir}/%{name} |
160 |
%{_libdir}/%{name}/%{name}-sharp* |
%{_libdir}/%{name}/%{name}-sharp* |
161 |
|
%endif |