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