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

Annotation of /cauldron/libgpod/pristine/SPECS/libgpod.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35828 - (hide annotations) (download)
Mon Jan 24 00:41:25 2011 UTC (13 years, 2 months ago) by ahmad
Original Path: cauldron/libgpod/current/SPECS/libgpod.spec
File size: 4171 byte(s)
imported package libgpod
1 ahmad 35828 %define name libgpod
2     %define version 0.8.0
3     %define git 20100829
4     %define release %mkrel 2
5     %define major 4
6     %define libname %mklibname gpod %major
7     %define libnamedev %mklibname -d gpod
8     %define api 1.0
9     %define build_hal 0
10     %if %mdvver < 201100
11     %define build_hal 1
12     %endif
13     Summary: Library to access an iPod audio player
14     Name: %{name}
15     Version: %{version}
16     Release: %{release}
17     Source0: http://prdownloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
18     License: LGPLv2+
19     Group: System/Libraries
20     Url: http://www.gtkpod.org/
21     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
22     BuildRequires: gtk+2-devel
23     BuildRequires: udev-devel dbus-glib-devel
24     %if %build_hal
25     BuildRequires: hal-devel
26     %endif
27     BuildRequires: libsgutils-devel
28     BuildRequires: taglib-devel
29     BuildRequires: libxml2-devel
30     BuildRequires: libsqlite3-devel
31     BuildRequires: libusb1-devel
32     BuildRequires: libimobiledevice-devel
33     BuildRequires: gtk-doc
34     BuildRequires: eject
35     BuildRequires: intltool
36    
37     %description
38     libgpod is a library meant to abstract access to an iPod content. It
39     provides an easy to use API to retrieve the list of files and playlist
40     stored on an iPod, to modify them and to save them back to the iPod.
41    
42     %package -n %libname
43     Group: System/Libraries
44     Summary: Library to access an iPod audio player
45     Requires: eject
46     Requires: %name >= %version-release
47    
48     %description -n %libname
49     libgpod is a library meant to abstract access to an iPod content. It
50     provides an easy to use API to retrieve the list of files and playlist
51     stored on an iPod, to modify them and to save them back to the iPod.
52    
53     %package -n %libnamedev
54     Group: Development/C
55     Summary: Library to access an iPod audio player
56     Requires: %libname = %version-%release
57     Requires: %name-sharp = %version-%release
58     Provides: %name-devel = %version-%release
59     Obsoletes: %mklibname -d gpod 2
60    
61     %description -n %libnamedev
62     libgpod is a library meant to abstract access to an iPod content. It
63     provides an easy to use API to retrieve the list of files and playlist
64     stored on an iPod, to modify them and to save them back to the iPod.
65    
66     %package -n python-gpod
67     Group: Development/Python
68     Summary: Python module for iPod access
69     BuildRequires: python-gobject-devel
70     %py_requires -d
71     BuildRequires: mutagen
72     BuildRequires: swig
73     Requires: mutagen
74     Requires: %libname = %version-%release
75    
76     %description -n python-gpod
77     libgpod is a library meant to abstract access to an iPod content. It
78     provides an easy to use API to retrieve the list of files and playlist
79     stored on an iPod, to modify them and to save them back to the iPod.
80    
81     This is a Python binding for libgpod.
82    
83     %package sharp
84     Group: Development/Other
85     Summary: Mono binding to libgpod for iPod access
86     BuildRequires: mono-devel
87     BuildRequires: gtk-sharp2
88     BuildRequires: gtk-sharp2-devel
89     Requires: %libname = %version-%release
90    
91     %description sharp
92     libgpod is a library meant to abstract access to an iPod content. It
93     provides an easy to use API to retrieve the list of files and playlist
94     stored on an iPod, to modify them and to save them back to the iPod.
95    
96     This is a Mono binding for libgpod.
97    
98     %prep
99     %setup -q -n %{name}-%version
100     %apply_patches
101    
102     %build
103     %configure2_5x --enable-gtk-doc --enable-udev \
104     %if !%build_hal
105     --without-hal
106     %endif
107    
108     %make
109    
110     %install
111     rm -rf $RPM_BUILD_ROOT %name.lang
112     %makeinstall_std
113     %find_lang %name
114    
115     %clean
116     rm -rf $RPM_BUILD_ROOT
117    
118     %if %mdkversion < 200900
119     %post -n %libname -p /sbin/ldconfig
120     %endif
121     %if %mdkversion < 200900
122     %postun -n %libname -p /sbin/ldconfig
123     %endif
124    
125     %files -f %name.lang
126     %defattr(-,root,root)
127     %doc README* AUTHORS
128     %_bindir/ipod-read-sysinfo-extended
129     /lib/udev/iphone-set-info
130     /lib/udev/ipod-set-info
131     /lib/udev/rules.d/90-libgpod.rules
132     %if %build_hal
133     %_libdir/hal/scripts/*
134     %_datadir/hal/fdi/policy/20thirdparty/*
135     %endif
136    
137     %files -n %libname
138     %defattr(-,root,root)
139     %_libdir/lib*.so.%{major}*
140    
141     %files -n %libnamedev
142     %defattr(-,root,root)
143     %doc ChangeLog
144     %_libdir/lib*.so
145     %attr(644,root,root) %_libdir/lib*a
146     %_libdir/pkgconfig/libgpod-%api.pc
147     %_libdir/pkgconfig/libgpod-sharp.pc
148     %_includedir/gpod-%api/
149     %_datadir/gtk-doc/html/*
150    
151     %files -n python-gpod
152     %defattr(-,root,root)
153     %py_platsitedir/gpod/
154    
155     %files sharp
156     %defattr(-,root,root)
157     %dir %_libdir/%name/
158     %_libdir/%name/libgpod-sharp*
159    
160    

  ViewVC Help
Powered by ViewVC 1.1.30