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