diff options
author | Robin Lee <robinlee.sysu@gmail.com> | 2010-06-13 17:15:24 +0800 |
---|---|---|
committer | Robin Lee <robinlee.sysu@gmail.com> | 2010-06-13 17:15:24 +0800 |
commit | 7e3dc1a9190d22a9f4f44ed127c8d54defc7b852 (patch) | |
tree | 487e6d74043d55e4c09b404fba30a2870a302ff4 | |
parent | 997371952b3cc524f6a114e1ef721e3125e30390 (diff) | |
download | rpm-7e3dc1a9190d22a9f4f44ed127c8d54defc7b852.tar.gz rpm-7e3dc1a9190d22a9f4f44ed127c8d54defc7b852.tar.xz rpm-7e3dc1a9190d22a9f4f44ed127c8d54defc7b852.zip |
add osdlyrics
-rw-r--r-- | osdlyrics/F-13/osdlyrics-0.3.20100604-chardetect-cxxflags.patch | 32 | ||||
-rw-r--r-- | osdlyrics/F-13/osdlyrics-0.3.20100604-desktop.patch | 17 | ||||
-rw-r--r-- | osdlyrics/F-13/osdlyrics.spec | 125 |
3 files changed, 174 insertions, 0 deletions
diff --git a/osdlyrics/F-13/osdlyrics-0.3.20100604-chardetect-cxxflags.patch b/osdlyrics/F-13/osdlyrics-0.3.20100604-chardetect-cxxflags.patch new file mode 100644 index 0000000..d6f2a65 --- /dev/null +++ b/osdlyrics/F-13/osdlyrics-0.3.20100604-chardetect-cxxflags.patch @@ -0,0 +1,32 @@ +Index: lib/chardetect/src/Makefile +=================================================================== +--- lib/chardetect/src/Makefile (revision 364) ++++ lib/chardetect/src/Makefile (working copy) +@@ -1,10 +1,4 @@ +-CXXFLAGS = \ +- -c -I./tables \ +- -Os -Wall \ +- -fno-rtti -fno-exceptions \ +- -fvisibility=hidden -fvisibility-inlines-hidden \ +- -nostdinc++ \ +- -D_REENTRANT ++CXXFLAGS += -c -I./tables + + LDFLAGS = + +Index: lib/chardetect/Makefile +=================================================================== +--- lib/chardetect/Makefile (revision 364) ++++ lib/chardetect/Makefile (working copy) +@@ -1,10 +1,5 @@ + TARGET=chardetect.a +-CXXFLAGS=-c \ +- -O2 \ +- -fno-rtti -fno-exceptions \ +- -fvisibility=hidden -fvisibility-inlines-hidden \ +- -nostdinc++ \ +- -D_REENTRANT -I./src -I./include ++CXXFLAGS += -c -I./src -I./include + + SUBDIRS=src + #DESTLIBDIR=/usr/lib/pcmanx/addons diff --git a/osdlyrics/F-13/osdlyrics-0.3.20100604-desktop.patch b/osdlyrics/F-13/osdlyrics-0.3.20100604-desktop.patch new file mode 100644 index 0000000..ef456ea --- /dev/null +++ b/osdlyrics/F-13/osdlyrics-0.3.20100604-desktop.patch @@ -0,0 +1,17 @@ +Index: data/osd-lyrics.desktop +=================================================================== +--- data/osd-lyrics.desktop (revision 364) ++++ data/osd-lyrics.desktop (working copy) +@@ -5,10 +5,10 @@ + GenericName=Media Player + Comment=Download and display lyrics, support multiple media players + Comment[zh_CN]=支持多种播放器和自动下载歌词的桌面歌词秀 +-Icon=osd-lyrics.png ++Icon=osd-lyrics + StartupNotify=true + Terminal=false + Type=Application +-Categories=GNOME;Audio;Music;Player;AudioVideo;X-Ximian-Main;X-Novell-Main;X-Red-Hat-Base; ++Categories=GTK;GNOME;AudioVideo;Education;Audio;Music;Player;X-Ximian-Main;X-Novell-Main;X-Red-Hat-Base; + MimeType= + X-Ubuntu-Gettext-Domain=osd-lyrics diff --git a/osdlyrics/F-13/osdlyrics.spec b/osdlyrics/F-13/osdlyrics.spec new file mode 100644 index 0000000..1df0ea0 --- /dev/null +++ b/osdlyrics/F-13/osdlyrics.spec @@ -0,0 +1,125 @@ +%global elfname osd-lyrics + +Name: osdlyrics +Version: 0.3.20100604 +Release: 2%{?dist} +Summary: An OSD lyric show compatible with various media players + +Group: Applications/Multimedia +License: GPLv3 +URL: http://code.google.com/p/osd-lyrics/ +Source0: http://osd-lyrics.googlecode.com/files/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch0: osdlyrics-0.3.20100604-desktop.patch +# Use our CXXFLAGS to properly generate debuginfo +Patch1: osdlyrics-0.3.20100604-chardetect-cxxflags.patch +BuildRequires: gtk2-devel, dbus-glib-devel, libcurl-devel, sqlite-devel +BuildRequires: libnotify-devel, xmms2-devel, libmpd-devel, gettext-devel +BuildRequires: libtool +#Requires: gtk2, dbus-glib, libcurl, libglade2 + +%description +Osd-lyrics is a third-party lyrics display program, +and focus on OSD lyrics display. + +%prep +%setup -q +%patch0 -p0 +%patch1 -p0 + +%build +aclocal +autoconf +automake --add-missing +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%find_lang %{elfname} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%files -f %{elfname}.lang +%defattr(-,root,root,-) +%doc AUTHORS COPYING ChangeLog NEWS* README* +%{_bindir}/%{elfname} +%{_datadir}/applications/%{elfname}.desktop +%{_datadir}/icons/hicolor/*/*/%{elfname}* +%{_datadir}/%{elfname}/ + + +%changelog +* Sun Jun 13 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.3.20100604-2 +- Spec file massive rewritten +- Updated to 0.3.20100604 + +* Wed Jun 09 2010 Liang Suilong <liangsuilong@gmail.com> 0.3.20100604-1 +- Add Juk and Qmmp support +- Add app indicator support for Ubuntu 10.04 +- Add singleton detection +- Honor MPD_HOST and MPD_PORT environment variables for MPD +- The `mouse click through' feature is back for GTK+ 2.20 users +- The appearance under a window manager without compositing support is correct now +- It won't crash now when you open the lyric assign dialog more than once +- The first line of lyric will not be lost when there is a BOM of utf-8 in the file. +- Fix that the last lyric doesn't get its progress with Rhythmbox. + +* Wed Mar 31 2010 Liang Suilong <liangsuilong@gmail.com> 0.3.20100330-1 +- Download lyrics from MiniLyrics +- Player control on background panel of OSD Window +- Encoding detection of LRC files +- Display player icon in notification +- FIX: Can not hide OSD Window +- FIX: Advance/delay offset doesn't work from popup menu +- Some minor fixes +- Drop amarok-1.4 support + +* Fri Feb 12 2010 Liang Suilong <liangsuilong@gmail.com> 0.3.20100212-1 +- Choose which lyric to download if there are more than one candidates +- Search lyrics manually +- Adjust lyric delay +- Support Quod Libet +- Display track infomation on tooltip of the trayicon +- Show notification of track infomation on track change +- Launch prefered player if no supported player is running +- A more graceful background on OSD Window +- Use themeable icons +- FIX: Crashes when hiding OSD Window under some distribution + +* Tue Feb 02 2010 Liang Suilong <liangsuilong@gmail.com> 0.2.20100201-1 +- FIX The program will not crash when DNS lookup timeout on searching or downloading lyrics + +* Tue Feb 02 2010 Liang Suilong <liangsuilong@gmail.com> 0.2.20100201-1 +- FIX The program will not crash when DNS lookup timeout on searching or downloading lyrics + +* Sat Jan 09 2010 Liang Suilong <liangsuilong@gmail.com> 0.2.20100109-1 +- Add MOC support +- Fix dowloading fails when title or artist is not set + +* Wed Dec 30 2009 Liang Suilong <liangsuilong@gmail.com> 0.2.20091227-1 +- Add mpd support +- Add BR: libmpd-devel +- Enable Amarok 1.4 support + +* Tue Sep 22 2009 Liang Suilong <liangsuilong@gmail.com> 0.2.20090919-2 +- Add gettext-devel as BuildRequires + +* Sat Sep 19 2009 Liang Suilong <liangsuilong@gmail.com> 0.2.20090919-1 +- Inital package for Fedora |