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