Mageia Bugzilla – Attachment 1104 Details for
Bug 3429
Excessive dependencies of libgpod-devel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
libgpod.spec.patch
libgpod.spec.patch (text/plain), 1.83 KB, created by
Zoltan Balaton
on 2011-11-23 17:58:37 CET
(
hide
)
Description:
libgpod.spec.patch
Filename:
MIME Type:
Creator:
Zoltan Balaton
Created:
2011-11-23 17:58:37 CET
Size:
1.83 KB
patch
obsolete
>--- libgpod.spec.orig 2011-08-21 13:44:47.000000000 +0200 >+++ libgpod.spec 2011-11-23 17:27:07.493912353 +0100 >@@ -1,4 +1,6 @@ > %define build_hal 0 >+%bcond_without python >+%bcond_without sharp > > %define major 4 > %define libname %mklibname gpod %{major} >@@ -51,7 +53,7 @@ > Group: Development/C > Summary: Library to access an iPod audio player > Requires: %{libname} = %{version}-%{release} >-Requires: %{name}-sharp = %{version}-%{release} >+Suggests: %{name}-sharp = %{version}-%{release} > Provides: %{name}-devel = %{version}-%{release} > Obsoletes: %mklibname -d gpod 2 > >@@ -60,6 +62,7 @@ > provides an easy to use API to retrieve the list of files and playlist > stored on an iPod, to modify them and to save them back to the iPod. > >+%if %{with python} > %package -n python-gpod > Group: Development/Python > Summary: Python module for iPod access >@@ -76,7 +79,9 @@ > stored on an iPod, to modify them and to save them back to the iPod. > > This is a Python binding for libgpod. >+%endif > >+%if %{with sharp} > %package sharp > Group: Development/Other > Summary: Mono binding to libgpod for iPod access >@@ -91,6 +96,7 @@ > stored on an iPod, to modify them and to save them back to the iPod. > > This is a Mono binding for libgpod. >+%endif > > %prep > %setup -q >@@ -113,6 +119,9 @@ > > #we don't want these > find %{buildroot} -name "*.la" -delete >+%if !%{with sharp} >+rm -f %{buildroot}/%{_libdir}/pkgconfig/%{name}-sharp.pc >+%endif > > %find_lang %{name} > >@@ -136,15 +145,19 @@ > %doc %{_datadir}/gtk-doc/html/%{name} > %{_libdir}/%{name}.so > %{_libdir}/pkgconfig/%{name}-%{api}.pc >-%{_libdir}/pkgconfig/%{name}-sharp.pc > %{_includedir}/gpod-%{api}/ > >+%if %{with python} > %files -n python-gpod > %{py_platsitedir}/gpod/ >+%endif > >+%if %{with sharp} > %files sharp >+%{_libdir}/pkgconfig/%{name}-sharp.pc > %dir %{_libdir}/%{name} > %{_libdir}/%{name}/%{name}-sharp* >+%endif > > > %changelog
--- libgpod.spec.orig 2011-08-21 13:44:47.000000000 +0200 +++ libgpod.spec 2011-11-23 17:27:07.493912353 +0100 @@ -1,4 +1,6 @@ %define build_hal 0 +%bcond_without python +%bcond_without sharp %define major 4 %define libname %mklibname gpod %{major} @@ -51,7 +53,7 @@ Group: Development/C Summary: Library to access an iPod audio player Requires: %{libname} = %{version}-%{release} -Requires: %{name}-sharp = %{version}-%{release} +Suggests: %{name}-sharp = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %mklibname -d gpod 2 @@ -60,6 +62,7 @@ provides an easy to use API to retrieve the list of files and playlist stored on an iPod, to modify them and to save them back to the iPod. +%if %{with python} %package -n python-gpod Group: Development/Python Summary: Python module for iPod access @@ -76,7 +79,9 @@ stored on an iPod, to modify them and to save them back to the iPod. This is a Python binding for libgpod. +%endif +%if %{with sharp} %package sharp Group: Development/Other Summary: Mono binding to libgpod for iPod access @@ -91,6 +96,7 @@ stored on an iPod, to modify them and to save them back to the iPod. This is a Mono binding for libgpod. +%endif %prep %setup -q @@ -113,6 +119,9 @@ #we don't want these find %{buildroot} -name "*.la" -delete +%if !%{with sharp} +rm -f %{buildroot}/%{_libdir}/pkgconfig/%{name}-sharp.pc +%endif %find_lang %{name} @@ -136,15 +145,19 @@ %doc %{_datadir}/gtk-doc/html/%{name} %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}-%{api}.pc -%{_libdir}/pkgconfig/%{name}-sharp.pc %{_includedir}/gpod-%{api}/ +%if %{with python} %files -n python-gpod %{py_platsitedir}/gpod/ +%endif +%if %{with sharp} %files sharp +%{_libdir}/pkgconfig/%{name}-sharp.pc %dir %{_libdir}/%{name} %{_libdir}/%{name}/%{name}-sharp* +%endif %changelog
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3429
: 1104