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