]> git.pld-linux.org Git - packages/libgpod.git/blob - libgpod.spec
- rel 3
[packages/libgpod.git] / libgpod.spec
1 Summary:        Shared library to access the contents of an iPod
2 Summary(pl.UTF-8):      Biblioteka współdzielona do dostępu do zawartości iPodów
3 Name:           libgpod
4 Version:        0.5.2
5 Release:        3
6 License:        GPL v2
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
9 # Source0-md5:  e4f8d2a7be9512268267bfbe712fe9be
10 URL:            http://www.gtkpod.org/libgpod.html
11 BuildRequires:  autoconf >= 2.52
12 BuildRequires:  automake
13 BuildRequires:  dbus-glib-devel >= 0.71
14 BuildRequires:  gettext-devel
15 BuildRequires:  gtk+2-devel >= 2:2.10.1
16 BuildRequires:  gtk-doc >= 1.0
17 BuildRequires:  hal-devel < 0.6
18 BuildRequires:  hal-devel >= 0.5.7.1
19 BuildRequires:  intltool >= 0.35
20 BuildRequires:  libtool
21 BuildRequires:  pkgconfig
22 BuildRequires:  python-devel >= 2.1.1
23 BuildRequires:  python-eyeD3 >= 0.6.6
24 BuildRequires:  python-mutagen >= 1.11
25 BuildRequires:  rpm-pythonprov
26 BuildRequires:  swig-python >= 1.3.24
27 # for noinst test only
28 #BuildRequires: taglib-devel
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 libgpod is a library meant to abstract access to an iPod content. It
33 provides an easy to use API to retrieve the list of files and playlist
34 stored on an iPod, to modify them and to save them back to the iPod.
35
36 %description -l pl.UTF-8
37 libgpod to biblioteka mająca na celu wyabstrahowanie dostępu do
38 zawartości iPodów. Udostępnia łatwe w użyciu API do pobierania listy
39 plików i playlist zapisanych na iPodzie, modyfikowania ich i
40 zapisywania z powrotem na iPoda.
41
42 %package devel
43 Summary:        Header files for libgpod library
44 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgpod
45 Group:          Development/Libraries
46 Requires:       %{name} = %{version}-%{release}
47 Requires:       dbus-glib-devel >= 0.71
48 Requires:       gtk+2-devel >= 2:2.10.1
49 Requires:       hal-devel >= 0.5.7.1
50
51 %description devel
52 This is the package containing the header files for libgpod library.
53
54 %description devel -l pl.UTF-8
55 Ten pakiet zawiera pliki nagłówkowe biblioteki libgpod.
56
57 %package static
58 Summary:        Static libgpod library
59 Summary(pl.UTF-8):      Statyczna biblioteka libgpod
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}-%{release}
62
63 %description static
64 Static libgpod library.
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka libgpod.
68
69 %package -n python-gpod
70 Summary:        Libraries for libgpod access from Python
71 Summary(pl.UTF-8):      Biblioteki Pythona umożliwiające korzystanie z libgpod
72 Group:          Development/Languages/Python
73 Requires:       %{name} = %{version}-%{release}
74 Requires:       python-eyeD3 >= 0.6.6
75 %pyrequires_eq  python-libs
76
77 %description -n python-gpod
78 This is the libgpod Python support package.
79
80 %description -n python-gpod -l pl.UTF-8
81 Biblioteki umożliwiające korzystanie z libgpod z poziomu
82 Pythona.
83
84 %prep
85 %setup -q
86
87 %build
88 %{__gtkdocize}
89 %{__glib_gettextize}
90 %{__intltoolize}
91 %{__libtoolize}
92 %{__aclocal} -I m4
93 %{__autoconf}
94 %{__autoheader}
95 %{__automake}
96 %configure \
97         --with-html-dir=%{_gtkdocdir} \
98         --with-python=yes
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 %py_postclean
108
109 %find_lang %{name} --all-name
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post   -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
116
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog README
120 %attr(755,root,root) %{_libdir}/libgpod.so.*.*.*
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libgpod.so
125 %{_libdir}/libgpod.la
126 %{_pkgconfigdir}/libgpod-1.0.pc
127 %{_includedir}/gpod-1.0
128 %{_gtkdocdir}/libgpod
129
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/libgpod.a
133
134 %files -n python-gpod
135 %defattr(644,root,root,755)
136 %dir %{py_sitedir}/gpod
137 %{py_sitedir}/gpod/*.py[co]
138 %attr(755,root,root) %{py_sitedir}/gpod/_gpod.so
This page took 0.070015 seconds and 4 git commands to generate.