SPECS: mpdscribble.spec - made it usable - release 1
arvenil
arvenil at pld-linux.org
Thu Sep 4 00:05:53 CEST 2008
Author: arvenil Date: Wed Sep 3 22:05:53 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- made it usable
- release 1
---- Files affected:
SPECS:
mpdscribble.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/mpdscribble.spec
diff -u SPECS/mpdscribble.spec:1.3 SPECS/mpdscribble.spec:1.4
--- SPECS/mpdscribble.spec:1.3 Wed Oct 17 16:27:18 2007
+++ SPECS/mpdscribble.spec Thu Sep 4 00:05:48 2008
@@ -7,7 +7,7 @@
Summary(pl.UTF-8): Scrobbler dla mpd
Name: mpdscribble
Version: 0.2.12
-Release: 0.1
+Release: 1
License: GPL v2
Group: Daemons
Source0: http://www.frob.nl/projects/scribble/%{name}-%{version}.tar.gz
@@ -15,6 +15,11 @@
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.conf
+Patch0: %{name}-libsoup.patch
+Patch1: %{name}-warnings_and_operator.patch
+Patch2: %{name}-default_verbose_level.patch
+Patch3: %{name}-memory_corruption.patch
+Patch4: %{name}-path.patch
URL: http://www.frob.nl/scribble.html
BuildRequires: glib2-devel >= 2.0
BuildRequires: libsoup-devel >= 2.2
@@ -31,17 +36,26 @@
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
%build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
%configure
%{__make}
%install
-rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
install -d \
$RPM_BUILD_ROOT%{_sysconfdir}/mpdscribble \
$RPM_BUILD_ROOT/etc/sysconfig \
- $RPM_BUILD_ROOT/etc/rc.d/init.d
+ $RPM_BUILD_ROOT/etc/rc.d/init.d \
+ $RPM_BUILD_ROOT/var/{log,cache/%{name}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -50,18 +64,34 @@
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mpdscribble
install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/mpdscribble
+touch $RPM_BUILD_ROOT/var/log/%{name}.log
+touch $RPM_BUILD_ROOT/var/cache/%{name}/%{name}.cache
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service %{name} stop
+ /sbin/chkconfig --del %{name}
+fi
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/%{name}
%{_mandir}/man1/mpdscribble.1*
%dir %{_sysconfdir}/mpdscribble
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpdscribble/mpdscribble.conf
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(640,root,root) %ghost /var/log/%{name}.log
+%dir %attr(750,root,root) /var/cache/%{name}
+/var/cache/%{name}/%{name}.cache
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -69,6 +99,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2008/09/03 22:05:48 arvenil
+- made it usable
+- release 1
+
Revision 1.3 2007/10/17 14:27:18 jajcus
- mpdscribble doesn't require mpd! not, locally
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/mpdscribble.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list