/[packages]/cauldron/libgpod/current/SPECS/libgpod.spec
ViewVC logotype

Diff of /cauldron/libgpod/current/SPECS/libgpod.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 119695 by dmorgan, Thu Jul 7 08:21:22 2011 UTC revision 134735 by wally, Sun Aug 21 11:44:23 2011 UTC
# Line 1  Line 1 
1  %define name libgpod  %define build_hal       0
2  %define version 0.8.0  
3  %define git 20100829  %define major           4
4  %define release %mkrel 5  %define libname         %mklibname gpod %{major}
5  %define major 4  %define libnamedev      %mklibname -d gpod
6  %define libname %mklibname gpod %major  %define api             1.0
7  %define libnamedev %mklibname -d gpod  
8  %define api 1.0  Summary:        Library to access an iPod audio player
9  %define build_hal 0  Name:           libgpod
10    Version:        0.8.2
11  Summary: Library to access an iPod audio player  Release:        %mkrel 1
12  Name: %{name}  Source0:        http://prdownloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2
13  Version: %{version}  License:        LGPLv2+
14  Release: %{release}  Group:          System/Libraries
15  Source0: http://prdownloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz  Url:            http://www.gtkpod.org/
16  License: LGPLv2+  BuildRequires:  gtk+2-devel
17  Group: System/Libraries  BuildRequires:  udev-devel
18  Url: http://www.gtkpod.org/  BuildRequires:  dbus-glib-devel
19  BuildRequires: gtk+2-devel  
20  BuildRequires: udev-devel dbus-glib-devel  %if %{build_hal}
21  %if %build_hal  BuildRequires:  hal-devel
 BuildRequires: hal-devel  
22  %endif  %endif
23  BuildRequires: libsgutils-devel  
24  BuildRequires: taglib-devel  BuildRequires:  libsgutils-devel
25  BuildRequires: libxml2-devel  BuildRequires:  taglib-devel
26  BuildRequires: libsqlite3-devel  BuildRequires:  libxml2-devel
27  BuildRequires: libusb1-devel  BuildRequires:  libsqlite3-devel
28  BuildRequires: libimobiledevice-devel  BuildRequires:  libusb1-devel
29  BuildRequires: gtk-doc  BuildRequires:  libimobiledevice-devel
30  BuildRequires: eject  BuildRequires:  gtk-doc
31  BuildRequires: intltool  BuildRequires:  eject
32    BuildRequires:  intltool
33    
34  %description  %description
35  libgpod is a library meant to abstract access to an iPod content. It  libgpod is a library meant to abstract access to an iPod content. It
36  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
37  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.
38    
39  %package -n %libname  %package -n %{libname}
40  Group: System/Libraries  Group:          System/Libraries
41  Summary: Library to access an iPod audio player  Summary:        Library to access an iPod audio player
42  Requires: eject  Requires:       eject
43  Requires: %name >= %version-release  Requires:       %{name} >= %{version}-%{release}
44    
45  %description -n %libname  %description -n %{libname}
46  libgpod is a library meant to abstract access to an iPod content. It  libgpod is a library meant to abstract access to an iPod content. It
47  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
48  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.
49    
50  %package -n %libnamedev  %package -n %{libnamedev}
51  Group: Development/C  Group:          Development/C
52  Summary: Library to access an iPod audio player  Summary:        Library to access an iPod audio player
53  Requires: %libname = %version-%release  Requires:       %{libname} = %{version}-%{release}
54  Requires: %name-sharp = %version-%release  Requires:       %{name}-sharp = %{version}-%{release}
55  Provides: %name-devel = %version-%release  Provides:       %{name}-devel = %{version}-%{release}
56  Obsoletes: %mklibname -d gpod 2  Obsoletes:      %mklibname -d gpod 2
57    
58  %description -n %libnamedev  %description -n %{libnamedev}
59  libgpod is a library meant to abstract access to an iPod content. It  libgpod is a library meant to abstract access to an iPod content. It
60  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
61  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.
62    
63  %package -n python-gpod  %package -n python-gpod
64  Group: Development/Python  Group:          Development/Python
65  Summary: Python module for iPod access  Summary:        Python module for iPod access
66  BuildRequires: python-gobject-devel  BuildRequires:  python-gobject-devel
67  BuildRequires: python-devel  BuildRequires:  python-devel
68  BuildRequires: mutagen  BuildRequires:  mutagen
69  BuildRequires: swig  BuildRequires:  swig
70  Requires: mutagen  Requires:       mutagen
71  Requires: %libname = %version-%release  Requires:       %{libname} = %{version}-%{release}
72    
73  %description -n python-gpod  %description -n python-gpod
74  libgpod is a library meant to abstract access to an iPod content. It  libgpod is a library meant to abstract access to an iPod content. It
# Line 78  stored on an iPod, to modify them and to Line 78  stored on an iPod, to modify them and to
78  This is a Python binding for libgpod.  This is a Python binding for libgpod.
79    
80  %package sharp  %package sharp
81  Group: Development/Other  Group:          Development/Other
82  Summary: Mono binding to libgpod for iPod access  Summary:        Mono binding to libgpod for iPod access
83  BuildRequires: mono-devel  BuildRequires:  mono-devel
84  BuildRequires: gtk-sharp2  BuildRequires:  gtk-sharp2
85  BuildRequires: gtk-sharp2-devel  BuildRequires:  gtk-sharp2-devel
86  Requires: %libname = %version-%release  Requires:       %libname = %{version}-%{release}
87    
88  %description sharp  %description sharp
89  libgpod is a library meant to abstract access to an iPod content. It  libgpod is a library meant to abstract access to an iPod content. It
# Line 93  stored on an iPod, to modify them and to Line 93  stored on an iPod, to modify them and to
93  This is a Mono binding for libgpod.  This is a Mono binding for libgpod.
94    
95  %prep  %prep
96  %setup -q -n %{name}-%version  %setup -q
97  %apply_patches  %apply_patches
98    
99  %build  %build
100  %configure2_5x --enable-gtk-doc --enable-udev \  %configure2_5x \
101  %if !%build_hal          --enable-gtk-doc \
102  --without-hal          --disable-static \
103            --enable-udev \
104    %if !%{build_hal}
105            --without-hal
106  %endif  %endif
107    
108  %make  %make
109    
110  %install  %install
111  rm -rf %{buildroot} %name.lang  rm -rf %{buildroot}
   
112  %makeinstall_std  %makeinstall_std
113    
114  %find_lang %name  #we don't want these
115    find %{buildroot} -name "*.la" -delete
116    
117    %find_lang %{name}
118    
119  %files -f %name.lang  %files -f %{name}.lang
120  %doc README* AUTHORS  %doc README* AUTHORS
121  %_bindir/ipod-read-sysinfo-extended  %{_bindir}/ipod-read-sysinfo-extended
122  /lib/udev/iphone-set-info  /lib/udev/iphone-set-info
123  /lib/udev/ipod-set-info  /lib/udev/ipod-set-info
124  /lib/udev/rules.d/90-libgpod.rules  /lib/udev/rules.d/90-libgpod.rules
125    
126  %if %build_hal  %if %build_hal
127  %_libdir/hal/scripts/*  %{_libdir}/hal/scripts/*
128  %_datadir/hal/fdi/policy/20thirdparty/*  %{_datadir}/hal/fdi/policy/20thirdparty/*
129  %endif  %endif
130    
131  %files -n %libname  %files -n %{libname}
132  %_libdir/lib*.so.%{major}*  %{_libdir}/%{name}.so.%{major}*
133    
134  %files -n %libnamedev  %files -n %{libnamedev}
135  %doc ChangeLog  %doc ChangeLog
136  %_libdir/lib*.so  %doc %{_datadir}/gtk-doc/html/%{name}
137  %attr(644,root,root)  %_libdir/lib*a  %{_libdir}/%{name}.so
138  %_libdir/pkgconfig/libgpod-%api.pc  %{_libdir}/pkgconfig/%{name}-%{api}.pc
139  %_libdir/pkgconfig/libgpod-sharp.pc  %{_libdir}/pkgconfig/%{name}-sharp.pc
140  %_includedir/gpod-%api/  %{_includedir}/gpod-%{api}/
 %_datadir/gtk-doc/html/*  
141    
142  %files -n python-gpod  %files -n python-gpod
143  %py_platsitedir/gpod/  %{py_platsitedir}/gpod/
144    
145  %files sharp  %files sharp
146  %dir %_libdir/%name/  %dir %{_libdir}/%{name}
147  %_libdir/%name/libgpod-sharp*  %{_libdir}/%{name}/%{name}-sharp*

Legend:
Removed from v.119695  
changed lines
  Added in v.134735

  ViewVC Help
Powered by ViewVC 1.1.30