]> git.pld-linux.org Git - packages/libgpod.git/blob - libgpod.spec
- todays snap (20051106); now builds
[packages/libgpod.git] / libgpod.spec
1 Summary:        Shared library to access the contents of an iPod
2 Name:           libgpod
3 Version:        0.1.8
4 %define _snap   20051106
5 Release:        0.%{_snap}.1
6 Epoch:          0
7 License:        GPL v2
8 Group:          Libraries
9 #Source0:       http://dl.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
10 Source0:        %{name}-%{_snap}.tar.bz2
11 # Source0-md5:  7f8237149051cb3a6d0c9f21007b2691
12 URL:            http://www.gtkpod.org/libgpod.html
13 BuildRequires:  gettext-devel
14 BuildRequires:  glib2-devel
15 BuildRequires:  intltool >= 0.21
16 BuildRequires:  pkgconfig
17 %if 0%{?_snap:1}
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  intltool
21 BuildRequires:  libtool
22 %endif
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 libgpod is a library meant to abstract access to an iPod content. It
27 provides an easy to use API to retrieve the list of files and playlist
28 stored on an iPod, to modify them and to save them back to the iPod.
29
30 %package devel
31 Summary:        Development libraries and header files for libgpod library
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34
35 %description devel
36 This is the package containing the development libraries and header
37 files for libgpod
38
39 %package static
40 Summary:        Static libgpod library
41 Group:          Development/Libraries
42 Requires:       %{name}-devel = %{version}-%{release}
43
44 %description static
45 Static libgpod library.
46
47 %prep
48 %setup -q %{?_snap:-n %{name}}
49
50 %build
51 %if 0%{?_snap:1}
52 %{__intltoolize}
53 %{__libtoolize}
54 %{__aclocal}
55 %{__autoconf}
56 %{__autoheader}
57 %{__automake}
58 %endif
59 %configure
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         MKINSTALLDIRS="install -d" \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 %find_lang %{name} --all-name
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files -f %{name}.lang
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog README
80 %attr(755,root,root) %{_libdir}/libgpod.so.*.*.*
81 %{_includedir}/gpod-1.0
82
83 %files devel
84 %defattr(644,root,root,755)
85 %{_libdir}/libgpod.la
86 %attr(755,root,root) %{_libdir}/libgpod.so
87 %{_pkgconfigdir}/libgpod-1.0.pc
88
89 %files static
90 %defattr(644,root,root,755)
91 %{_libdir}/libgpod.a
This page took 0.062893 seconds and 4 git commands to generate.