]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - build system breaks autoconf cache: i.e PKGCONFIG and FAAD should not be set to custom values | |
3 | Summary: Graphical song management program for Apple's iPod | |
4 | Summary(pl.UTF-8): Graficzny menadżer utworów muzycznych dla urządzeń Apple iPod | |
5 | Name: gtkpod | |
6 | Version: 2.1.1 | |
7 | Release: 3 | |
8 | License: GPL/LGPL | |
9 | Group: X11/Applications/Multimedia | |
10 | Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 36fd0324fd1d1da00fcddacef1b09983 | |
12 | Patch0: desktop.patch | |
13 | Patch1: itmf_tags.patch | |
14 | Patch2: %{name}-linguas.patch | |
15 | URL: http://www.gtkpod.org/ | |
16 | BuildRequires: autoconf >= 2.65 | |
17 | BuildRequires: automake >= 1:1.9 | |
18 | BuildRequires: clutter-gtk-devel >= 1.0 | |
19 | BuildRequires: curl-devel >= 7.10.0 | |
20 | BuildRequires: flac-devel >= 1.2.1 | |
21 | BuildRequires: flex | |
22 | BuildRequires: gdl-devel >= 3.0.0 | |
23 | BuildRequires: gettext-devel >= 0.11.0 | |
24 | BuildRequires: glib2-devel >= 1:2.28.5 | |
25 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.25 | |
26 | BuildRequires: gtk+3-devel >= 3.0.11 | |
27 | BuildRequires: gtk-webkit3-devel >= 1.3 | |
28 | BuildRequires: intltool >= 0.33 | |
29 | BuildRequires: libanjuta-devel >= 1:3.0 | |
30 | BuildRequires: libgpod-devel >= 0.7.0 | |
31 | BuildRequires: libid3tag-devel >= 0.15 | |
32 | BuildRequires: libtool | |
33 | BuildRequires: libvorbis-devel >= 1.3.1 | |
34 | BuildRequires: libxml2-devel >= 2.7.7 | |
35 | BuildRequires: mp4v2-devel | |
36 | BuildRequires: perl-XML-Parser | |
37 | BuildRequires: pkgconfig | |
38 | BuildRequires: rpm-pythonprov | |
39 | BuildRequires: rpmbuild(macros) >= 1.596 | |
40 | BuildRequires: sed >= 4.0 | |
41 | Requires(post,postun): gtk-update-icon-cache | |
42 | Requires(post,postun): hicolor-icon-theme | |
43 | Requires(post,postun): /sbin/ldconfig | |
44 | # M4A -> MP3 conversion support | |
45 | Requires: mount | |
46 | Suggests: faad2 | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | # clears PKGCONFIG, making cache reuse impossible | |
50 | %undefine configure_cache | |
51 | ||
52 | %description | |
53 | Platform independent graphical song management program for Apple's | |
54 | iPod. It allows you to upload songs and playlists to your iPod. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | Niezależne od platformy graficzny menadżer utworów muzycznych dla | |
58 | urządzeń Apple iPod. Pozwala wgrywać pliki i listy utworów do iPoda. | |
59 | ||
60 | %prep | |
61 | %setup -q | |
62 | %patch0 -p1 | |
63 | %patch1 -p1 | |
64 | %patch2 -p1 | |
65 | %{__sed} -i -e 's!/usr/bin/awk!/bin/awk!g' scripts/ldif2vcf.sh | |
66 | mv -f po/cs{_CZ,}.po | |
67 | ||
68 | %build | |
69 | %{__libtoolize} | |
70 | %{__intltoolize} | |
71 | %{__aclocal} | |
72 | %{__autoconf} | |
73 | %{__autoheader} | |
74 | %{__automake} | |
75 | %configure \ | |
76 | FAAD=yes \ | |
77 | --disable-static \ | |
78 | --disable-silent-rules | |
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/gtkpod.svg | |
87 | ||
88 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtkpod/*.la | |
90 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gtkpod/doc | |
91 | ||
92 | # no -devel | |
93 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir} | |
94 | %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
95 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgtkpod.so | |
96 | ||
97 | %find_lang %{name} --all-name | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post | |
103 | /sbin/ldconfig | |
104 | %update_icon_cache hicolor | |
105 | %glib_compile_schemas | |
106 | ||
107 | %postun | |
108 | /sbin/ldconfig | |
109 | %update_icon_cache hicolor | |
110 | if [ "$1" = "0" ]; then | |
111 | %glib_compile_schemas | |
112 | fi | |
113 | ||
114 | %files -f %{name}.lang | |
115 | %defattr(644,root,root,755) | |
116 | %doc AUTHORS ChangeLog NEWS README TODO TROUBLESHOOTING | |
117 | %attr(755,root,root) %{_bindir}/%{name} | |
118 | %attr(755,root,root) %{_libdir}/libgtkpod.so.*.*.* | |
119 | %ghost %{_libdir}/libgtkpod.so.1 | |
120 | %{_mandir}/man1/%{name}.1* | |
121 | %dir %{_datadir}/%{name} | |
122 | %{_datadir}/gtkpod/data | |
123 | %{_datadir}/gtkpod/icons | |
124 | %dir %{_datadir}/gtkpod/scripts | |
125 | %attr(755,root,root) %{_datadir}/gtkpod/scripts/* | |
126 | %{_datadir}/glib-2.0/schemas/org.gtkpod.gschema.xml | |
127 | %{_desktopdir}/%{name}.desktop | |
128 | %{_iconsdir}/hicolor/*/apps/%{name}.png | |
129 | %dir %{_libdir}/gtkpod | |
130 | %attr(755,root,root) %{_libdir}/gtkpod/lib*.so | |
131 | %{_libdir}/gtkpod/*.plugin |