567a733
Name:           gtkpod
0ed2bb9
Version:        2.1.2
84aaeb5
Release:        2%{?dist}
567a733
Summary:        Graphical song management program for Apple's iPod
567a733
567a733
Group:          Applications/Multimedia
816a5e7
# The help documentation is under GFDL, the rest of the code is GPLv2+
816a5e7
License:        GPLv2+ and GFDL
77fb1c3
URL:            http://www.gtkpod.org/
567a733
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
77fb1c3
# Don't use -DGTK_DISABLE_DEPRECATED until https://bugzilla.redhat.com/show_bug.cgi?id=734605 is fixed
402c31e
#Patch0:         gtkpod-2.1.0-no-gtk-disable-deprecated.patch
63d2445
Patch1:		gtkpod-2.1.2-anjuta.patch
567a733
77fb1c3
BuildRequires:  gtk3-devel
2ff3f63
BuildRequires:  curl-devel
77fb1c3
BuildRequires:  gstreamer-devel
77fb1c3
BuildRequires:  gstreamer-plugins-base-devel
77fb1c3
BuildRequires:  anjuta-devel
567a733
BuildRequires:  desktop-file-utils
2ff3f63
BuildRequires:  flac-devel
567a733
BuildRequires:  flex
567a733
BuildRequires:  gettext
6a487d4
BuildRequires:  intltool
816a5e7
BuildRequires:  libgpod-devel >= 0.7.0
567a733
BuildRequires:  libid3tag-devel
567a733
BuildRequires:  libmp4v2-devel
2ff3f63
BuildRequires:  libvorbis-devel
2ff3f63
BuildRequires:  perl(XML::Parser)
77fb1c3
BuildRequires:  pkgconfig
567a733
77fb1c3
# some of the scripts in %%{_datadir}/%%{name}/scripts use which
66e6338
Requires:       which
77fb1c3
Requires:       hicolor-icon-theme
66e6338
567a733
%description
567a733
gtkpod is a platform independent Graphical User Interface for Apple's
77fb1c3
iPod using GTK3. It supports all current iPod models, including
1cb7523
the Mini, Photo, Shuffle, Nano, Video, Classic, Touch, and iPhone.
567a733
77fb1c3
%package devel
77fb1c3
Summary: Development files for the gtkpod
77fb1c3
Group: Development/Libraries
77fb1c3
Requires: %{name} = %{version}-%{release}
77fb1c3
77fb1c3
%description devel
77fb1c3
The gtkpod-devel package contains libraries and header files for
77fb1c3
developing extensions for gtkpod.
567a733
567a733
%prep
567a733
%setup -q
402c31e
#%patch0 -p1 -b .no-gtk-disable-deprecated
63d2445
%patch1 -p0 -b .anjuta
567a733
567a733
%build
77fb1c3
%configure --disable-static
567a733
make %{?_smp_mflags}
567a733
567a733
%install
567a733
make install DESTDIR=%{buildroot} INSTALL="install -p"
567a733
567a733
desktop-file-install \
567a733
    --vendor fedora \
2ff3f63
    --delete-original \
567a733
    --dir %{buildroot}%{_datadir}/applications \
2ff3f63
    %{buildroot}%{_datadir}/applications/%{name}.desktop
567a733
567a733
%find_lang %{name}
567a733
77fb1c3
# delete libtool files
77fb1c3
find %{buildroot} -name '*.la' -exec rm -f {} \;
567a733
567a733
2ff3f63
%post
77fb1c3
/sbin/ldconfig
77fb1c3
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
2ff3f63
2ff3f63
%postun
77fb1c3
/sbin/ldconfig
77fb1c3
if [ $1 -eq 0 ] ; then
77fb1c3
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
77fb1c3
fi
77fb1c3
if [ $1 -eq 0 ] ; then
77fb1c3
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
77fb1c3
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
2ff3f63
fi
2ff3f63
77fb1c3
%posttrans
77fb1c3
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
77fb1c3
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
2ff3f63
567a733
%files -f %{name}.lang
567a733
%defattr(-,root,root,-)
402c31e
%doc AUTHORS ChangeLog* COPYING README TODO TROUBLESHOOTING
567a733
%{_bindir}/%{name}
567a733
%{_datadir}/%{name}
816a5e7
%{_datadir}/icons/hicolor/*/apps/%{name}.*
567a733
%{_datadir}/applications/*.desktop
816a5e7
%{_mandir}/man1/%{name}*
77fb1c3
%dir %{_libdir}/gtkpod
77fb1c3
%{_libdir}/gtkpod/*.plugin
77fb1c3
%{_libdir}/gtkpod/*.so
77fb1c3
%{_libdir}/*.so.*
77fb1c3
%{_datadir}/glib-2.0/schemas/org.gtkpod.gschema.xml
567a733
77fb1c3
%files devel
77fb1c3
%{_includedir}/gtkpod
77fb1c3
%{_libdir}/*.so
77fb1c3
%{_libdir}/pkgconfig/*.pc
567a733
567a733
%changelog
84aaeb5
* Wed Sep 26 2012 Kalev Lember <kalevlember@gmail.com> - 2.1.2-2
84aaeb5
- Rebuilt for libgdl soname bump
84aaeb5
0ed2bb9
* Tue Jul 24 2012 Jon Ciesla <limburgher@gmail.com> - 2.1.2-1
0ed2bb9
- Latest upstream.
63d2445
- Patch for anjuta 3.5.4.
0ed2bb9
ce64165
* Mon Jul 23 2012 Kalev Lember <kalevlember@gmail.com> - 2.1.1-5
ce64165
- Rebuilt for libgdl 3.5.4 soname bump
ce64165
db758d5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-4
db758d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
db758d5
3e0392a
* Mon Apr 23 2012 Kalev Lember <kalevlember@gmail.com> - 2.1.1-3
3e0392a
- Rebuilt for libgdl 3.4.2 soname bump
3e0392a
74ab684
* Wed Apr 11 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2.1.1-2
74ab684
- Rebuild for new libimobiledevice and usbmuxd
74ab684
402c31e
* Wed Mar 28 2012 Jon Ciesla <limburgher@gmail.com> - 2.1.1-1
402c31e
- Latest upstream.
402c31e
- Dropped gtk patch, fixed.
402c31e
4be8e6d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
4be8e6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4be8e6d
41e0b33
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 2.1.0-2
41e0b33
- Rebuild for new libpng
41e0b33
77fb1c3
* Tue Aug 30 2011 Christian Krause <chkr@fedoraproject.org> - 2.1.0-1
77fb1c3
- Update to 2.1.0 (GTK3 support)
77fb1c3
- Minor spec file cleanup
77fb1c3
- Add patch to fix compilation issue with newer GTK3 versions and anjuta
77fb1c3
  ( https://bugzilla.redhat.com/show_bug.cgi?id=734605 )
77fb1c3
9a0884e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
9a0884e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9a0884e
15c985c
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.0-2
15c985c
- recompiling .py files against Python 2.7 (rhbz#623316)
15c985c
1022837
* Wed Aug 11 2010 Todd Zullinger <tmz@pobox.com> - 1.0.0-1
1022837
- Update to 1.0.0
1022837
6a487d4
* Tue Jun 15 2010 Todd Zullinger <tmz@pobox.com> - 0.99.16-1
6a487d4
- Update to 0.99.16
6a487d4
- Link with libdl
6a487d4
af8ca58
* Sun Feb 14 2010 Todd Zullinger <tmz@pobox.com> - 0.99.14-4
af8ca58
- Link with libm and libvorbis (#564853)
af8ca58
8056acf
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.14-3
8056acf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8056acf
f64e4e7
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.14-2
f64e4e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f64e4e7
816a5e7
* Fri Feb 20 2009 Todd Zullinger <tmz@pobox.com> - 0.99.14-1
816a5e7
- Update to 0.99.14
816a5e7
- Add GFDL to License tag, for documentation
816a5e7
- Update xdg-open patch so it applies without fuzz
816a5e7
- Drop libgnomecanvas-devel BR, it is not used anymore
816a5e7
- Apply upstream patch to fix lame-tag endianess problem (this prevented gapless
816a5e7
  playback from working correctly)
816a5e7
555940b
* Sat Jan 17 2009 Todd Zullinger <tmz@pobox.com> - 0.99.12-5
555940b
- Apply upstream fix for disappearing tooltips (#428940)
555940b
b57947b
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.99.12-4
b57947b
- Rebuild for Python 2.6
b57947b
1cb7523
* Tue Jun 10 2008 Todd Zullinger <tmz@pobox.com> - 0.99.12-3
1cb7523
- use xdg-open as default player (#449199)
1cb7523
  (patch from Debarshi Ray)
1cb7523
- update %%description to include more complete model list
1cb7523
07f3157
* Tue Feb 12 2008 Todd Zullinger <tmz@pobox.com> - 0.99.12-2
07f3157
- rebuild for gcc 4.3
07f3157
acc9273
* Tue Dec 11 2007 Todd Zullinger <tmz@pobox.com> - 0.99.12-1
acc9273
- update to 0.99.12
acc9273
66e6338
* Wed Nov 21 2007 Todd Zullinger <tmz@pobox.com> - 0.99.10-2
66e6338
- rebuild for libgpod-0.6.0
66e6338
- apply upstream patch to fix smart playlist play time bug
66e6338
- Requires: which (used in some of the provided scripts)
66e6338
2ff3f63
* Sat Aug 04 2007 Todd Zullinger <tmz@pobox.com> - 0.99.10-1
2ff3f63
- update to 0.99.10
2ff3f63
- use upstream .desktop file
2ff3f63
- add new BRs, update libgpod BR to >= 0.5.2
2ff3f63
- add %%post and %%postun to update the icon cache
2ff3f63
- update license tag
2ff3f63
567a733
* Fri Feb 16 2007 Todd Zullinger <tmz@pobox.com> - 0.99.8-3
567a733
- preserve timestamps when copying .desktop file to builddir and
567a733
  running make install
567a733
- use a symlink for the menu icon
567a733
567a733
* Mon Feb 12 2007 Todd Zullinger <tmz@pobox.com> - 0.99.8-2
567a733
- remove redundant gtk2-devel BR
567a733
- move .desktop creation to a separate file
567a733
- remove livna stuff from .desktop file
567a733
- don't use macros for install and mkdir
567a733
- remove NEWS file from %%doc as it mostly mirrors the ChangeLog
567a733
567a733
* Mon Feb 12 2007 Todd Zullinger <tmz@pobox.com> - 0.99.8-1
567a733
- initial fedora package, parts stolen from Matthias' FreshRPMS spec