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