]> git.pld-linux.org Git - packages/libgpod.git/blob - libgpod.spec
- corrections
[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}.2
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.33
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 # MKINSTALLDIRS is problem with combination of gettext-0.14.4 and automake-1.8
66 # See TROUBLESHOOTING for more details.
67 %{__make} install \
68         MKINSTALLDIRS="install -d" \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %find_lang %{name} --all-name
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post   -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
78
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog README
82 %attr(755,root,root) %{_libdir}/libgpod.so.*.*.*
83
84 %files devel
85 %defattr(644,root,root,755)
86 %{_libdir}/libgpod.la
87 %attr(755,root,root) %{_libdir}/libgpod.so
88 %{_pkgconfigdir}/libgpod-1.0.pc
89 %{_includedir}/gpod-1.0
90
91 %files static
92 %defattr(644,root,root,755)
93 %{_libdir}/libgpod.a
This page took 0.049317 seconds and 4 git commands to generate.