Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 56c40629c33565ca430e86e42f61bc56 > files > 5

gnomoradio-0.15.1-8mdv2010.1.src.rpm

%define name	gnomoradio
%define version	0.15.1
%define release %mkrel 8

%define major	0
%define libname %mklibname %{name} %{major}

Name: 	 	%{name}
Summary: 	Finder and player of free (Creative Commons) music
Version: 	%{version}
Release: 	%{release}
Source:		%{name}-%{version}.tar.bz2
# patches from Gentoo
Patch0:		gnomoradio-0.15.1-gcc42.patch
Patch1:		gnomoradio-0.15.1-gcc43.patch
# -------------------
Patch2:		gnomoradio-0.15.1-fix-underlinking.patch
URL:		http://gnomoradio.org/
License:	GPLv2+
Group:		Sound
BuildRoot:	%{_tmppath}/%{name}-buildroot

BuildRequires:	pkgconfig
BuildRequires:	imagemagick
BuildRequires:	libsigc++2.0-devel
BuildRequires:	gtkmm2.4-devel
BuildRequires:	gconfmm2.6-devel
BuildRequires:	libxml++-devel
BuildRequires:	libao-devel
BuildRequires:	libvorbis-devel
BuildRequires:	libogg-devel
BuildRequires:  desktop-file-utils

%description
Gnomoradio is a program that can find, fetch, share, and play music that is
freely available for sharing.  The Gnomoradio project is creating an
online network where artists can promote and share their music freely and
willingly. By eliminating many of the exclusionary tactics of the mainstream
music industry, musicians now have a chance to interact directly with their
listeners and receive valuable exposure.

%package -n 	%{libname}
Summary:        Dynamic libraries from %{name}
Group:          System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%package -n 	%{libname}-devel
Summary: 	Header files and static libraries from %{name}
Group: 		Development/C
Requires: 	%{libname} >= %{version}
Provides: 	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release} 
Obsoletes: 	%{name}-devel

%description -n %{libname}-devel
Libraries and includes files for developing programs based on %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%configure2_5x
%make
										
%install
rm -rf %{buildroot}
%makeinstall

#menu

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="GTK" \
  --add-category="GNOME" \
  --add-category="X-MandrivaLinux-Multimedia-Sound" \
  --add-category="AudioVideo" \
  --add-category="Audio" \
  --add-category="Player" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

#icons
mkdir -p %{buildroot}/%{_liconsdir}
convert -size 48x48 %{name}/%{name}.png %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
convert -size 32x32 %{name}/%{name}.png %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert -size 16x16 %{name}/%{name}.png %{buildroot}/%{_miconsdir}/%{name}.png

%find_lang %{name}

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%update_menus
%endif
		
%if %mdkversion < 200900
%postun
%clean_menus
%endif

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS README NEWS TODO
%{_bindir}/%{name}
%{_bindir}/rainbow-get
%{_sbindir}/rainbow-hub
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.*

%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/rainbow
%{_includedir}/roboradio
%{_libdir}/*.so
#%{_libdir}/*.a
%{_libdir}/*.la



%changelog
* Sun Mar 28 2010 Funda Wang <fwang@mandriva.org> 0.15.1-8mdv2010.1
+ Revision: 528468
- rebuild

* Sun May 17 2009 Jérôme Brenier <incubusss@mandriva.org> 0.15.1-7mdv2010.0
+ Revision: 376513
- add 2 patches from Gentoo to fix build with gcc 4.x
- add a patch to fix underlinking
- fix license (GPLv2+)
- remove ChangeLog file from doc (zero-length)
- cosmetic changes for specfile policy

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild
    - drop old menu
    - kill re-definition of %%buildroot on Pixel's request
    - import gnomoradio

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot


* Wed Sep 13 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.15.1-4mdv2007.0
- XDG

* Fri Jun 9 2006 Austin Acton <austin@mandriva.org> 0.15.1-3mdv2007.0
- rebuild for libxml++
- mkrel

* Sun Feb 6 2005 Austin Acton <austin@mandrake.org> 0.15.1-2mdk
- rebuild for libxml++

* Sun Nov 7 2004 Austin Acton <austin@mandrake.org> 0.15.1-1mdk
- initial package