]>
Commit | Line | Data |
---|---|---|
e2076c75 | 1 | # TODO |
830f6201 | 2 | # - build system breaks autoconf cache: i.e PKGCONFIG and FAAD should not be set to custom values |
229eb4ac | 3 | Summary: Graphical song management program for Apple's iPod |
7db8f850 | 4 | Summary(pl.UTF-8): Graficzny menadżer utworów muzycznych dla urządzeń Apple iPod |
229eb4ac | 5 | Name: gtkpod |
750a63eb | 6 | Version: 2.1.1 |
c91705af | 7 | Release: 2 |
229eb4ac | 8 | License: GPL/LGPL |
0171d808 | 9 | Group: X11/Applications/Multimedia |
050337f8 | 10 | Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz |
750a63eb | 11 | # Source0-md5: 36fd0324fd1d1da00fcddacef1b09983 |
830f6201 ER |
12 | Patch0: desktop.patch |
13 | Patch1: itmf_tags.patch | |
b6019338 | 14 | Patch2: %{name}-linguas.patch |
888ef72c | 15 | URL: http://www.gtkpod.org/ |
750a63eb ŁK |
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 | |
f74a40c8 | 21 | BuildRequires: flex |
3ab4ce79 | 22 | BuildRequires: gdl-devel >= 3.0.0 |
229eb4ac | 23 | BuildRequires: gettext-devel >= 0.11.0 |
3ab4ce79 | 24 | BuildRequires: glib2-devel >= 1:2.28.5 |
750a63eb | 25 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.25 |
3ab4ce79 | 26 | BuildRequires: gtk+3-devel >= 3.0.11 |
750a63eb ŁK |
27 | BuildRequires: gtk-webkit3-devel >= 1.3 |
28 | BuildRequires: intltool >= 0.33 | |
3ab4ce79 | 29 | BuildRequires: libanjuta-devel >= 1:3.0 |
750a63eb | 30 | BuildRequires: libgpod-devel >= 0.7.0 |
7c82800f | 31 | BuildRequires: libid3tag-devel >= 0.15 |
750a63eb ŁK |
32 | BuildRequires: libtool |
33 | BuildRequires: libvorbis-devel >= 1.3.1 | |
3ab4ce79 | 34 | BuildRequires: libxml2-devel >= 2.7.7 |
830f6201 | 35 | BuildRequires: mp4v2-devel |
0672fb2a | 36 | BuildRequires: perl-XML-Parser |
f74a40c8 | 37 | BuildRequires: pkgconfig |
a6f51d43 | 38 | BuildRequires: rpm-pythonprov |
050337f8 | 39 | BuildRequires: rpmbuild(macros) >= 1.596 |
6a35ccc2 | 40 | BuildRequires: sed >= 4.0 |
f529107f AF |
41 | Requires(post,postun): gtk-update-icon-cache |
42 | Requires(post,postun): hicolor-icon-theme | |
e2076c75 ER |
43 | Requires(post,postun): /sbin/ldconfig |
44 | # M4A -> MP3 conversion support | |
229eb4ac | 45 | Requires: mount |
e2076c75 | 46 | Suggests: faad2 |
229eb4ac MK |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
830f6201 ER |
49 | # clears PKGCONFIG, making cache reuse impossible |
50 | %undefine configure_cache | |
51 | ||
229eb4ac MK |
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 | ||
8853500f JR |
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. | |
229eb4ac MK |
59 | |
60 | %prep | |
61 | %setup -q | |
830f6201 | 62 | %patch0 -p1 |
050337f8 | 63 | %patch1 -p1 |
b6019338 | 64 | %patch2 -p1 |
3ab4ce79 | 65 | %{__sed} -i -e 's!/usr/bin/awk!/bin/awk!g' scripts/ldif2vcf.sh |
b6019338 | 66 | mv -f po/cs{_CZ,}.po |
229eb4ac MK |
67 | |
68 | %build | |
830f6201 | 69 | %{__libtoolize} |
b6019338 | 70 | %{__intltoolize} |
830f6201 ER |
71 | %{__aclocal} |
72 | %{__autoconf} | |
73 | %{__autoheader} | |
74 | %{__automake} | |
3ab4ce79 | 75 | %configure \ |
e2076c75 | 76 | FAAD=yes \ |
750a63eb ŁK |
77 | --disable-static \ |
78 | --disable-silent-rules | |
229eb4ac MK |
79 | %{__make} |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
229eb4ac MK |
83 | %{__make} install \ |
84 | DESTDIR=$RPM_BUILD_ROOT | |
a68b3778 | 85 | |
3ab4ce79 ER |
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 | |
e2076c75 | 90 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gtkpod/doc |
3ab4ce79 ER |
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 | |
229eb4ac MK |
96 | |
97 | %find_lang %{name} --all-name | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
050337f8 | 102 | %post |
e2076c75 | 103 | /sbin/ldconfig |
050337f8 | 104 | %update_icon_cache hicolor |
3ab4ce79 | 105 | %glib_compile_schemas |
050337f8 ER |
106 | |
107 | %postun | |
e2076c75 | 108 | /sbin/ldconfig |
050337f8 | 109 | %update_icon_cache hicolor |
3ab4ce79 ER |
110 | if [ "$1" = "0" ]; then |
111 | %glib_compile_schemas | |
112 | fi | |
050337f8 | 113 | |
229eb4ac MK |
114 | %files -f %{name}.lang |
115 | %defattr(644,root,root,755) | |
750a63eb | 116 | %doc AUTHORS ChangeLog NEWS README TODO TROUBLESHOOTING |
050337f8 | 117 | %attr(755,root,root) %{_bindir}/%{name} |
3ab4ce79 ER |
118 | %attr(755,root,root) %{_libdir}/libgtkpod.so.*.*.* |
119 | %ghost %{_libdir}/libgtkpod.so.1 | |
050337f8 | 120 | %{_mandir}/man1/%{name}.1* |
3ab4ce79 | 121 | %dir %{_datadir}/%{name} |
e2076c75 ER |
122 | %{_datadir}/gtkpod/data |
123 | %{_datadir}/gtkpod/icons | |
786f0600 | 124 | %dir %{_datadir}/gtkpod/scripts |
e2076c75 | 125 | %attr(755,root,root) %{_datadir}/gtkpod/scripts/* |
3ab4ce79 | 126 | %{_datadir}/glib-2.0/schemas/org.gtkpod.gschema.xml |
050337f8 ER |
127 | %{_desktopdir}/%{name}.desktop |
128 | %{_iconsdir}/hicolor/*/apps/%{name}.png | |
3ab4ce79 ER |
129 | %dir %{_libdir}/gtkpod |
130 | %attr(755,root,root) %{_libdir}/gtkpod/lib*.so | |
131 | %{_libdir}/gtkpod/*.plugin |