]> git.pld-linux.org Git - packages/libgpod.git/blob - libgpod.spec
- added align patch (build hack, not a real fix - it would require library usage
[packages/libgpod.git] / libgpod.spec
1 Summary:        Shared library to access the contents of an iPod
2 Summary(pl):    Biblioteka wspó³dzielona do dostêpu do zawarto¶ci iPodów
3 Name:           libgpod
4 Version:        0.1.8
5 %define _snap   20051106
6 Release:        0.%{_snap}.2
7 Epoch:          0
8 License:        GPL v2
9 Group:          Libraries
10 #Source0:       http://dl.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
11 Source0:        %{name}-%{_snap}.tar.bz2
12 # Source0-md5:  7f8237149051cb3a6d0c9f21007b2691
13 Patch0:         %{name}-align.patch
14 URL:            http://www.gtkpod.org/libgpod.html
15 BuildRequires:  gettext-devel
16 BuildRequires:  glib2-devel
17 BuildRequires:  intltool >= 0.33
18 BuildRequires:  pkgconfig
19 %if 0%{?_snap:1}
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  intltool
23 BuildRequires:  libtool
24 %endif
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 libgpod is a library meant to abstract access to an iPod content. It
29 provides an easy to use API to retrieve the list of files and playlist
30 stored on an iPod, to modify them and to save them back to the iPod.
31
32 %description -l pl
33 libgpod to biblioteka maj±ca na celu wyabstrahowanie dostêpu do
34 zawarto¶ci iPodów. Udostêpnia ³atwe w u¿yciu API do pobierania listy
35 plików i playlist zapisanych na iPodzie, modyfikowania ich i
36 zapisywania z powrotem na iPoda.
37
38 %package devel
39 Summary:        Header files for libgpod library
40 Summary(pl):    Pliki nag³ówkowe biblioteki libgpod
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43
44 %description devel
45 This is the package containing the header files for libgpod library.
46
47 %description devel -l pl
48 Ten pakiet zawiera pliki nag³ówkowe biblioteki libgpod.
49
50 %package static
51 Summary:        Static libgpod library
52 Summary(pl):    Statyczna biblioteka libgpod
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static libgpod library.
58
59 %description static -l pl
60 Statyczna biblioteka libgpod.
61
62 %prep
63 %setup -q %{?_snap:-n %{name}}
64 %patch0 -p1
65
66 %build
67 %if 0%{?_snap:1}
68 %{__intltoolize}
69 %{__libtoolize}
70 %{__aclocal}
71 %{__autoconf}
72 %{__autoheader}
73 %{__automake}
74 %endif
75 %configure
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 # MKINSTALLDIRS is problem with combination of gettext-0.14.4 and automake-1.8
82 # See TROUBLESHOOTING for more details.
83 %{__make} install \
84         MKINSTALLDIRS="install -d" \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 %find_lang %{name} --all-name
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %files -f %{name}.lang
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog README
98 %attr(755,root,root) %{_libdir}/libgpod.so.*.*.*
99
100 %files devel
101 %defattr(644,root,root,755)
102 %{_libdir}/libgpod.la
103 %attr(755,root,root) %{_libdir}/libgpod.so
104 %{_pkgconfigdir}/libgpod-1.0.pc
105 %{_includedir}/gpod-1.0
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/libgpod.a
This page took 0.095518 seconds and 4 git commands to generate.