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