]>
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 | 6 | Version: 2.1.5 |
2ef52485 | 7 | Release: 2 |
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 |
99e52c56 | 73 | %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' ./scripts/sync-palm-jppy.py |
b6019338 | 74 | mv -f po/cs{_CZ,}.po |
229eb4ac MK |
75 | |
76 | %build | |
830f6201 | 77 | %{__libtoolize} |
b6019338 | 78 | %{__intltoolize} |
830f6201 ER |
79 | %{__aclocal} |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82 | %{__automake} | |
752b075b | 83 | export CFLAGS="%{rpmcflags} -fcommon" |
3ab4ce79 | 84 | %configure \ |
e2076c75 | 85 | FAAD=yes \ |
750a63eb ŁK |
86 | --disable-static \ |
87 | --disable-silent-rules | |
229eb4ac MK |
88 | %{__make} |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
229eb4ac MK |
92 | %{__make} install \ |
93 | DESTDIR=$RPM_BUILD_ROOT | |
a68b3778 | 94 | |
3ab4ce79 ER |
95 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/gtkpod.svg |
96 | ||
97 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
98 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtkpod/*.la | |
e2076c75 | 99 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gtkpod/doc |
3ab4ce79 ER |
100 | |
101 | # no -devel | |
102 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir} | |
103 | %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
104 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgtkpod.so | |
6a6ed57a | 105 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libatomicparsley.so |
229eb4ac MK |
106 | |
107 | %find_lang %{name} --all-name | |
108 | ||
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
050337f8 | 112 | %post |
e2076c75 | 113 | /sbin/ldconfig |
050337f8 | 114 | %update_icon_cache hicolor |
3ab4ce79 | 115 | %glib_compile_schemas |
050337f8 ER |
116 | |
117 | %postun | |
e2076c75 | 118 | /sbin/ldconfig |
050337f8 | 119 | %update_icon_cache hicolor |
3ab4ce79 ER |
120 | if [ "$1" = "0" ]; then |
121 | %glib_compile_schemas | |
122 | fi | |
050337f8 | 123 | |
229eb4ac MK |
124 | %files -f %{name}.lang |
125 | %defattr(644,root,root,755) | |
750a63eb | 126 | %doc AUTHORS ChangeLog NEWS README TODO TROUBLESHOOTING |
050337f8 | 127 | %attr(755,root,root) %{_bindir}/%{name} |
6a6ed57a | 128 | %attr(755,root,root) %{_libdir}/libatomicparsley.so.*.*.* |
3ab4ce79 | 129 | %attr(755,root,root) %{_libdir}/libgtkpod.so.*.*.* |
6a6ed57a | 130 | %ghost %{_libdir}/libatomicparsley.so.0 |
3ab4ce79 | 131 | %ghost %{_libdir}/libgtkpod.so.1 |
050337f8 | 132 | %{_mandir}/man1/%{name}.1* |
3ab4ce79 | 133 | %dir %{_datadir}/%{name} |
e2076c75 ER |
134 | %{_datadir}/gtkpod/data |
135 | %{_datadir}/gtkpod/icons | |
786f0600 | 136 | %dir %{_datadir}/gtkpod/scripts |
e2076c75 | 137 | %attr(755,root,root) %{_datadir}/gtkpod/scripts/* |
3ab4ce79 | 138 | %{_datadir}/glib-2.0/schemas/org.gtkpod.gschema.xml |
6a6ed57a | 139 | %{_datadir}/glib-2.0/schemas/org.gtkpod.sjcd.gschema.xml |
050337f8 ER |
140 | %{_desktopdir}/%{name}.desktop |
141 | %{_iconsdir}/hicolor/*/apps/%{name}.png | |
3ab4ce79 ER |
142 | %dir %{_libdir}/gtkpod |
143 | %attr(755,root,root) %{_libdir}/gtkpod/lib*.so | |
144 | %{_libdir}/gtkpod/*.plugin |