]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - build system breaks autoconf cache: i.e PKGCONFIG and FAAD should not be set to custom values | |
3 | Summary: Graphical song management program for Apple's iPod | |
4 | Summary(pl.UTF-8): Graficzny menadżer utworów muzycznych dla urządzeń Apple iPod | |
5 | Name: gtkpod | |
6 | Version: 2.1.4 | |
7 | Release: 1 | |
8 | License: GPL/LGPL | |
9 | Group: X11/Applications/Multimedia | |
10 | Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 66c12ccb529c0f7de9a48a7f0d277c80 | |
12 | Patch0: desktop.patch | |
13 | Patch1: %{name}-linguas.patch | |
14 | Patch2: automake-1.13.patch | |
15 | URL: http://www.gtkpod.org/ | |
16 | BuildRequires: autoconf >= 2.65 | |
17 | BuildRequires: automake >= 1:1.9 | |
18 | BuildRequires: brasero-devel >= 3.0.0 | |
19 | BuildRequires: clutter-gtk-devel >= 1.2 | |
20 | BuildRequires: curl-devel >= 7.10.0 | |
21 | BuildRequires: flac-devel >= 1.2.1 | |
22 | BuildRequires: flex | |
23 | BuildRequires: gdl-devel >= 3.0.0 | |
24 | BuildRequires: gettext-devel >= 0.11.0 | |
25 | BuildRequires: glib2-devel >= 1:2.32 | |
26 | BuildRequires: gstreamer0.10-plugins-base-devel >= 0.10.25 | |
27 | BuildRequires: gtk+3-devel >= 3.0.11 | |
28 | BuildRequires: gtk-webkit3-devel >= 1.3 | |
29 | BuildRequires: intltool >= 0.33 | |
30 | BuildRequires: libanjuta-devel >= 1:3.0.0 | |
31 | BuildRequires: libdiscid-devel | |
32 | BuildRequires: libgpod-devel >= 0.7.0 | |
33 | BuildRequires: libid3tag-devel >= 0.15 | |
34 | BuildRequires: libmusicbrainz4-devel | |
35 | BuildRequires: libtool | |
36 | BuildRequires: libvorbis-devel >= 1.3.1 | |
37 | BuildRequires: libxml2-devel >= 2.7.7 | |
38 | BuildRequires: perl-XML-Parser | |
39 | BuildRequires: pkgconfig | |
40 | BuildRequires: rpm-pythonprov | |
41 | BuildRequires: rpmbuild(macros) >= 1.596 | |
42 | BuildRequires: sed >= 4.0 | |
43 | Requires(post,postun): gtk-update-icon-cache | |
44 | Requires(post,postun): hicolor-icon-theme | |
45 | Requires(post,postun): /sbin/ldconfig | |
46 | # M4A -> MP3 conversion support | |
47 | Requires: mount | |
48 | Suggests: faad2 | |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
50 | ||
51 | # clears PKGCONFIG, making cache reuse impossible | |
52 | %undefine configure_cache | |
53 | ||
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 | ||
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. | |
61 | ||
62 | %prep | |
63 | %setup -q | |
64 | %patch0 -p1 | |
65 | %patch1 -p1 | |
66 | %patch2 -p1 | |
67 | %{__sed} -i -e 's!/usr/bin/awk!/bin/awk!g' scripts/ldif2vcf.sh | |
68 | %{__sed} -i -e '/^dist_profiles_DATA/s:=.*:=:' plugins/sjcd/data/Makefile.am | |
69 | mv -f po/cs{_CZ,}.po | |
70 | ||
71 | %build | |
72 | %{__libtoolize} | |
73 | %{__intltoolize} | |
74 | %{__aclocal} | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
78 | %configure \ | |
79 | FAAD=yes \ | |
80 | --disable-static \ | |
81 | --disable-silent-rules | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
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 | |
93 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gtkpod/doc | |
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 | |
99 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libatomicparsley.so | |
100 | ||
101 | %find_lang %{name} --all-name | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post | |
107 | /sbin/ldconfig | |
108 | %update_icon_cache hicolor | |
109 | %glib_compile_schemas | |
110 | ||
111 | %postun | |
112 | /sbin/ldconfig | |
113 | %update_icon_cache hicolor | |
114 | if [ "$1" = "0" ]; then | |
115 | %glib_compile_schemas | |
116 | fi | |
117 | ||
118 | %files -f %{name}.lang | |
119 | %defattr(644,root,root,755) | |
120 | %doc AUTHORS ChangeLog NEWS README TODO TROUBLESHOOTING | |
121 | %attr(755,root,root) %{_bindir}/%{name} | |
122 | %attr(755,root,root) %{_libdir}/libatomicparsley.so.*.*.* | |
123 | %attr(755,root,root) %{_libdir}/libgtkpod.so.*.*.* | |
124 | %ghost %{_libdir}/libatomicparsley.so.0 | |
125 | %ghost %{_libdir}/libgtkpod.so.1 | |
126 | %{_mandir}/man1/%{name}.1* | |
127 | %dir %{_datadir}/%{name} | |
128 | %{_datadir}/gtkpod/data | |
129 | %{_datadir}/gtkpod/icons | |
130 | %dir %{_datadir}/gtkpod/scripts | |
131 | %attr(755,root,root) %{_datadir}/gtkpod/scripts/* | |
132 | %{_datadir}/glib-2.0/schemas/org.gtkpod.gschema.xml | |
133 | %{_datadir}/glib-2.0/schemas/org.gtkpod.sjcd.gschema.xml | |
134 | %{_desktopdir}/%{name}.desktop | |
135 | %{_iconsdir}/hicolor/*/apps/%{name}.png | |
136 | %dir %{_libdir}/gtkpod | |
137 | %attr(755,root,root) %{_libdir}/gtkpod/lib*.so | |
138 | %{_libdir}/gtkpod/*.plugin |