Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > 1afbecf554ddb56da377654ace1ca875 > files > 2

xnoise-0.1.31-1.fc16.src.rpm

# global hgrev

Name:           xnoise
Version:        0.1.31
Release:        1%{?dist}
Summary:        Tracklist-centric Media Player

Group:          Applications/Multimedia
License:        GPLv2+ with exceptions
URL:            http://www.xnoise-media-player.com/
Source0:        https://github.com/downloads/shuerhaaken/xnoise-media-player/xnoise-%{version}.tar.bz2

# for snapshots
# BuildRequires:  gnome-common autoconf automake libtool
# pulled in by gnome-common for snapshots
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(taglib_c)
BuildRequires:  libnotify-devel
BuildRequires:  libsoup-devel
BuildRequires:  unique-devel
# not needed unless source .vala files are modified
# BuildRequires:  vala-devel >= 0.15.0
BuildRequires:  desktop-file-utils gettext intltool
Requires:       hicolor-icon-theme
# xnoise >= 0.1.14 bundles the plug-ins
Provides:       xnoise-plugins-core = %{version}-%{release}
Obsoletes:      xnoise-plugins-core < %{version}-%{release}

%description
Xnoise is a Gtk+ media player with a tracklist-centric design. The
tracklist is a list of video or music tracks that are played one by
one without being removed (right side of window). This gives you the
possibility to enqueue any track in any order, regardless if they are
on the same album or not. The tracks can be reordered at any time by
using drag and drop.


%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%prep
%setup -q


%build
# for snapshot builds
#NOCONFIGURE=1 ./autogen.sh
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/xnoise.desktop
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
# remove invalid locale file
rm -rf $RPM_BUILD_ROOT%{_share}/locale/default

%find_lang %{name}


%check
make check


%post
/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
update-desktop-database &> /dev/null || :

%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
update-desktop-database &> /dev/null || :

%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_bindir}/xnoise
# libxnoise.so *needs* to be in main package
# otherwise plugins currently don't work
%exclude %{_libdir}/xnoise/libxnoisetest.so
%{_libdir}/xnoise
%{_mandir}/man1/xnoise.1*
%{_datadir}/xnoise
%{_datadir}/applications/xnoise.desktop
%{_datadir}/icons/hicolor/*/apps/xnoise*
%{_datadir}/icons/hicolor/*/status/xn-*.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/xnoise
%{_libdir}/xnoise/libxnoisetest.so
%{_libdir}/pkgconfig/xnoise-1.0.pc
# make package own the vala API dir:
# xnoise plugins don't have to be written in vala
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/xnoise-1.0.*


%changelog
* Mon Jan 30 2012 Michel Salim <salimma@fedoraproject.org> - 0.1.31-1
- Update to 0.1.31

* Wed Oct  5 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.29-1
- Update to 0.1.29

* Wed Sep 21 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.28-1
- Update to 0.1.28

* Sat Sep 10 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.27-1
- Update to 0.1.27

* Thu Jul 28 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.26-1
- Update to 0.1.26
- Enable tests

* Mon Apr  4 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.18-1
- Update to 0.1.18

* Sun Mar 13 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.16-1
- Update to 0.1.16
- Now bundles the plugins, obsoleting xnoise-plugins-core

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sat Nov  6 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.12-3
- Own %%{_libdir}/xnoise for plugins

* Sat Nov  6 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.12-2
- invoke ldconfig on (un)install
- remove %%clean section; only targeting F-14+
- re-enable deletion of invalid locale dir

* Sat Nov  6 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.12-1
- Update to 0.1.12
- Specify the correct location for Vala API files in *.pc

* Fri Jun 25 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.6-2
- Make xnoise-devel co-own Vala's VAPI dir
- Remove invalid locale file

* Wed Jun 23 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.6-1
- Update to final 0.1.6 release

* Sat Apr  3 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.2-0.1.331hg
- Initial package