]>
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 |
6a6ed57a ŁK |
6 | Version: 2.1.2 |
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 |
6a6ed57a | 11 | # Source0-md5: 88fef3f947cbb7ae6b714080733a3b6b |
830f6201 | 12 | Patch0: desktop.patch |
6a6ed57a ŁK |
13 | Patch1: %{name}-linguas.patch |
14 | Patch2: anjuta-3.5.3.patch | |
15 | Patch3: format-security-error.patch | |
888ef72c | 16 | URL: http://www.gtkpod.org/ |
750a63eb ŁK |
17 | BuildRequires: autoconf >= 2.65 |
18 | BuildRequires: automake >= 1:1.9 | |
6a6ed57a | 19 | BuildRequires: brasero-devel >= 3.0.0 |
750a63eb ŁK |
20 | BuildRequires: clutter-gtk-devel >= 1.0 |
21 | BuildRequires: curl-devel >= 7.10.0 | |
22 | BuildRequires: flac-devel >= 1.2.1 | |
f74a40c8 | 23 | BuildRequires: flex |
3ab4ce79 | 24 | BuildRequires: gdl-devel >= 3.0.0 |
229eb4ac | 25 | BuildRequires: gettext-devel >= 0.11.0 |
3ab4ce79 | 26 | BuildRequires: glib2-devel >= 1:2.28.5 |
6a6ed57a | 27 | BuildRequires: gstreamer0.10-plugins-base-devel >= 0.10.25 |
3ab4ce79 | 28 | BuildRequires: gtk+3-devel >= 3.0.11 |
750a63eb ŁK |
29 | BuildRequires: gtk-webkit3-devel >= 1.3 |
30 | BuildRequires: intltool >= 0.33 | |
6a6ed57a | 31 | BuildRequires: libanjuta-devel >= 1:3.0.0 |
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 |
6a6ed57a | 67 | %patch3 -p1 |
3ab4ce79 | 68 | %{__sed} -i -e 's!/usr/bin/awk!/bin/awk!g' scripts/ldif2vcf.sh |
6a6ed57a | 69 | %{__sed} -i -e '/^dist_profiles_DATA/s:=.*:=:' plugins/sjcd/data/Makefile.am |
b6019338 | 70 | mv -f po/cs{_CZ,}.po |
229eb4ac MK |
71 | |
72 | %build | |
830f6201 | 73 | %{__libtoolize} |
b6019338 | 74 | %{__intltoolize} |
830f6201 ER |
75 | %{__aclocal} |
76 | %{__autoconf} | |
77 | %{__autoheader} | |
78 | %{__automake} | |
3ab4ce79 | 79 | %configure \ |
e2076c75 | 80 | FAAD=yes \ |
750a63eb ŁK |
81 | --disable-static \ |
82 | --disable-silent-rules | |
229eb4ac MK |
83 | %{__make} |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
229eb4ac MK |
87 | %{__make} install \ |
88 | DESTDIR=$RPM_BUILD_ROOT | |
a68b3778 | 89 | |
3ab4ce79 ER |
90 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/gtkpod.svg |
91 | ||
92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtkpod/*.la | |
e2076c75 | 94 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gtkpod/doc |
3ab4ce79 ER |
95 | |
96 | # no -devel | |
97 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir} | |
98 | %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
99 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgtkpod.so | |
6a6ed57a | 100 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libatomicparsley.so |
229eb4ac MK |
101 | |
102 | %find_lang %{name} --all-name | |
103 | ||
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
050337f8 | 107 | %post |
e2076c75 | 108 | /sbin/ldconfig |
050337f8 | 109 | %update_icon_cache hicolor |
3ab4ce79 | 110 | %glib_compile_schemas |
050337f8 ER |
111 | |
112 | %postun | |
e2076c75 | 113 | /sbin/ldconfig |
050337f8 | 114 | %update_icon_cache hicolor |
3ab4ce79 ER |
115 | if [ "$1" = "0" ]; then |
116 | %glib_compile_schemas | |
117 | fi | |
050337f8 | 118 | |
229eb4ac MK |
119 | %files -f %{name}.lang |
120 | %defattr(644,root,root,755) | |
750a63eb | 121 | %doc AUTHORS ChangeLog NEWS README TODO TROUBLESHOOTING |
050337f8 | 122 | %attr(755,root,root) %{_bindir}/%{name} |
6a6ed57a | 123 | %attr(755,root,root) %{_libdir}/libatomicparsley.so.*.*.* |
3ab4ce79 | 124 | %attr(755,root,root) %{_libdir}/libgtkpod.so.*.*.* |
6a6ed57a | 125 | %ghost %{_libdir}/libatomicparsley.so.0 |
3ab4ce79 | 126 | %ghost %{_libdir}/libgtkpod.so.1 |
050337f8 | 127 | %{_mandir}/man1/%{name}.1* |
3ab4ce79 | 128 | %dir %{_datadir}/%{name} |
e2076c75 ER |
129 | %{_datadir}/gtkpod/data |
130 | %{_datadir}/gtkpod/icons | |
786f0600 | 131 | %dir %{_datadir}/gtkpod/scripts |
e2076c75 | 132 | %attr(755,root,root) %{_datadir}/gtkpod/scripts/* |
3ab4ce79 | 133 | %{_datadir}/glib-2.0/schemas/org.gtkpod.gschema.xml |
6a6ed57a | 134 | %{_datadir}/glib-2.0/schemas/org.gtkpod.sjcd.gschema.xml |
050337f8 ER |
135 | %{_desktopdir}/%{name}.desktop |
136 | %{_iconsdir}/hicolor/*/apps/%{name}.png | |
3ab4ce79 ER |
137 | %dir %{_libdir}/gtkpod |
138 | %attr(755,root,root) %{_libdir}/gtkpod/lib*.so | |
139 | %{_libdir}/gtkpod/*.plugin |