]> git.pld-linux.org Git - packages/libgpod.git/blob - libgpod.spec
- rel 5
[packages/libgpod.git] / libgpod.spec
1 # TODO
2 # check: http://fred.uwcs.co.uk/diff (from http://www.fredemmott.co.uk/blog_121)
3 # some warning at doc build:
4 #warning: failed to load external entity "../../docs/reference/xml/*.xml"
5 #unable to parse ../../docs/reference/xml/*.xml
6 #make[3]: [gpod_doc.i] Error 6 (ignored)
7 # - mountdir perms?: %dir %{_localstatedir}/run/%{name}
8 %include        /usr/lib/rpm/macros.mono
9 #
10 Summary:        Shared library to access the contents of an iPod
11 Summary(pl.UTF-8):      Biblioteka współdzielona do dostępu do zawartości iPodów
12 Name:           libgpod
13 Version:        0.8.0
14 Release:        5
15 License:        GPL v2
16 Group:          Libraries
17 Source0:        http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
18 # Source0-md5:  6660f74cc53293dcc847407aa5f672ce
19 Patch0:         %{name}-gcc43.patch
20 Patch1:         %{name}-monodir.patch
21 URL:            http://www.gtkpod.org/libgpod/
22 BuildRequires:  autoconf >= 2.52
23 BuildRequires:  automake
24 BuildRequires:  docbook-dtd412-xml
25 BuildRequires:  dotnet-gtk-sharp2-devel >= 2.12.0
26 BuildRequires:  gdk-pixbuf2-devel >= 2.6.0
27 BuildRequires:  gettext-devel
28 BuildRequires:  glib2-devel >= 1:2.16.0
29 BuildRequires:  gtk-doc >= 1.0
30 BuildRequires:  intltool >= 0.35
31 BuildRequires:  libimobiledevice-devel >= 0.9.7
32 BuildRequires:  libplist-devel >= 1.0.0
33 BuildRequires:  libtool
34 BuildRequires:  libusb-devel
35 BuildRequires:  libxml2-devel
36 BuildRequires:  mono-devel >= 1.9.1
37 BuildRequires:  pkgconfig
38 BuildRequires:  python-devel >= 2.1.1
39 BuildRequires:  python-eyeD3 >= 0.6.6
40 BuildRequires:  python-mutagen >= 1.8
41 BuildRequires:  python-pygobject-devel >= 2.8.0
42 BuildRequires:  rpm-pythonprov
43 BuildRequires:  rpmbuild(monoautodeps)
44 BuildRequires:  sg3_utils-devel >= 1.26
45 BuildRequires:  sqlite3-devel
46 BuildRequires:  swig-python >= 1.3.24
47 BuildRequires:  zlib-devel
48 BuildRequires:  libsmbios-devel
49 # for noinst test only
50 #BuildRequires: taglib-devel
51 Suggests:       udev-libgpod = %{version}-%{release}
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %description
55 libgpod is a library meant to abstract access to an iPod content. It
56 provides an easy to use API to retrieve the list of files and playlist
57 stored on an iPod, to modify them and to save them back to the iPod.
58
59 %description -l pl.UTF-8
60 libgpod to biblioteka mająca na celu wyabstrahowanie dostępu do
61 zawartości iPodów. Udostępnia łatwe w użyciu API do pobierania listy
62 plików i playlist zapisanych na iPodzie, modyfikowania ich i
63 zapisywania z powrotem na iPoda.
64
65 %package -n udev-libgpod
66 Summary:        UDEV rules and programs for iPod devices
67 Summary(pl.UTF-8):      Reguły i programy używane przez UDEV dla urządzeń iPod
68 Group:          Applications/System
69 Requires:       %{name} = %{version}-%{release}
70 Obsoletes:      hal-libgpod
71
72 %description -n udev-libgpod
73 UDEV rules and programs to initialize iPod devices for libgpod
74 library.
75
76 %description -n udev-libgpod -l pl.UTF-8
77 Reguły i program dla UDEV do przygotowywania urządzeń iPod do
78 użytku z biblioteką libgpod.
79
80 %package devel
81 Summary:        Header files for libgpod library
82 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgpod
83 Group:          Development/Libraries
84 Requires:       %{name} = %{version}-%{release}
85 Requires:       gdk-pixbuf2-devel >= 2.6.0
86 Requires:       glib2-devel >= 1:2.16.0
87
88 %description devel
89 This is the package containing the header files for libgpod library.
90
91 %description devel -l pl.UTF-8
92 Ten pakiet zawiera pliki nagłówkowe biblioteki libgpod.
93
94 %package static
95 Summary:        Static libgpod library
96 Summary(pl.UTF-8):      Statyczna biblioteka libgpod
97 Group:          Development/Libraries
98 Requires:       %{name}-devel = %{version}-%{release}
99
100 %description static
101 Static libgpod library.
102
103 %description static -l pl.UTF-8
104 Statyczna biblioteka libgpod.
105
106 %package apidocs
107 Summary:        libgpod API documentation
108 Summary(pl.UTF-8):      Dokumentacja API biblioteki libgpod
109 Group:          Documentation
110 Requires:       gtk-doc-common
111
112 %description apidocs
113 libgpod API documentation.
114
115 %description apidocs -l pl.UTF-8
116 Dokumentacja API biblioteki libgpod.
117
118 %package -n python-gpod
119 Summary:        Module for libgpod access from Python
120 Summary(pl.UTF-8):      Moduł Pythona umożliwiający korzystanie z biblioteki libgpod
121 Group:          Development/Languages/Python
122 Requires:       %{name} = %{version}-%{release}
123 Requires:       python-eyeD3 >= 0.6.6
124 %pyrequires_eq  python-libs
125
126 %description -n python-gpod
127 This is the libgpod Python support package.
128
129 %description -n python-gpod -l pl.UTF-8
130 Moduł umożliwiający korzystanie z biblioteki libgpod z poziomu
131 Pythona.
132
133 %package -n dotnet-%{name}-sharp
134 Summary:        C#/.NET library to access iPod content
135 Summary(pl.UTF-8):      Biblioteka C#/.NET pozwalajaca na dostęp do iPoda
136 Group:          Development/Languages
137 Requires:       %{name} = %{version}-%{release}
138
139 %description -n dotnet-%{name}-sharp
140 C#/.NET library to access iPod content. Provides bindings to the
141 libgpod library.
142
143 %description -n dotnet-%{name}-sharp -l pl.UTF-8
144 Biblioteka C#/.NET pozwalająca na dostęp do iPoda. Udostępnia wiązania
145 do biblioteki libgpod.
146
147 %package -n dotnet-%{name}-sharp-devel
148 Summary:        Development files for libgpod-sharp
149 Summary(pl.UTF-8):      Development files for libgpod-sharp
150 Group:          Development/Languages
151 Requires:       dotnet-%{name}-sharp = %{version}-%{release}
152 Requires:       pkgconfig
153
154 %description -n dotnet-%{name}-sharp-devel
155 C#/.NET library to access iPod content. Provides bindings to the
156 libgpod library.
157
158 This package contains the files required to develop programs that will
159 use dotnet-libgpod-sharp.
160
161 %description -n dotnet-%{name}-sharp-devel -l pl.UTF-8
162 Pliki programistyczne biblioteki C#/.NET libgpod-sharp.
163
164 %prep
165 %setup -q
166 %patch0 -p1
167 %patch1 -p1
168
169 %build
170 %{__gtkdocize}
171 %{__glib_gettextize}
172 %{__intltoolize}
173 %{__libtoolize}
174 %{__aclocal} -I m4
175 %{__autoconf}
176 %{__autoheader}
177 %{__automake}
178 %configure \
179         --disable-silent-rules \
180         --enable-gtk-doc \
181         --with-html-dir=%{_gtkdocdir} \
182         --with-temp-mount-dir=%{_localstatedir}/run/%{name} \
183         --with-python=yes \
184         --without-hal \
185         --enable-udev
186
187 %{__make}
188
189 %install
190 rm -rf $RPM_BUILD_ROOT
191
192 %{__make} install \
193         DESTDIR=$RPM_BUILD_ROOT
194
195 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gpod/*.la \
196         $RPM_BUILD_ROOT%{_libdir}/libgpod.la
197
198 %py_postclean
199
200 %find_lang %{name} --all-name
201
202 %clean
203 rm -rf $RPM_BUILD_ROOT
204
205 %post   -p /sbin/ldconfig
206 %postun -p /sbin/ldconfig
207
208 %files -f %{name}.lang
209 %defattr(644,root,root,755)
210 %doc AUTHORS ChangeLog README
211 %attr(755,root,root) %{_bindir}/ipod-read-sysinfo-extended
212 %attr(755,root,root) %{_libdir}/libgpod.so.*.*.*
213 %attr(755,root,root) %ghost %{_libdir}/libgpod.so.4
214 %dir %{_localstatedir}/run/%{name}
215
216 %files -n udev-libgpod
217 %defattr(644,root,root,755)
218 %attr(755,root,root) /lib/udev/iphone-set-info
219 %attr(755,root,root) /lib/udev/ipod-set-info
220 /lib/udev/rules.d/90-libgpod.rules
221
222 %files devel
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/libgpod.so
225 %{_pkgconfigdir}/libgpod-1.0.pc
226 %{_includedir}/gpod-1.0
227
228 %files static
229 %defattr(644,root,root,755)
230 %{_libdir}/libgpod.a
231
232 %files apidocs
233 %defattr(644,root,root,755)
234 %{_gtkdocdir}/libgpod
235
236 %files -n python-gpod
237 %defattr(644,root,root,755)
238 %dir %{py_sitedir}/gpod
239 %{py_sitedir}/gpod/*.py[co]
240 %attr(755,root,root) %{py_sitedir}/gpod/_gpod.so
241
242 %files -n dotnet-%{name}-sharp
243 %defattr(644,root,root,755)
244 %dir %{_prefix}/lib/libgpod
245 %{_prefix}/lib/libgpod/libgpod-sharp-test.exe
246 %{_prefix}/lib/libgpod/libgpod-sharp-test.exe.mdb
247 %{_prefix}/lib/libgpod/libgpod-sharp.dll
248 %{_prefix}/lib/libgpod/libgpod-sharp.dll.config
249 %{_prefix}/lib/libgpod/libgpod-sharp.dll.mdb
250
251 %files -n dotnet-%{name}-sharp-devel
252 %defattr(644,root,root,755)
253 %{_pkgconfigdir}/libgpod-sharp.pc
This page took 0.055019 seconds and 4 git commands to generate.