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