Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 0b592d17c60eb61e4262cb91d7acfe48 > files > 4

sobby-0.4.7-2mdv2010.1.src.rpm

Name:		sobby
Version:	0.4.7
Release:	%mkrel 2
Summary:    Standalone collaborative editing server, to use with gobby 
URL:		http://gobby.0x539.de/trac/
Group:		System/Servers
License:	GPLv2+
Requires(pre):	rpm-helper
Requires(post):	rpm-helper
Requires(preun):	rpm-helper
Requires(postun):	rpm-helper
Source0:	http://releases.0x539.de/sobby/%name-%version.tar.gz
Source1:	%name.conf
Source2:	%name.init
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:  pkgconfig(net6-1.3)
BuildRequires:  pkgconfig(obby-0.4) 
BuildRequires:  pkgconfig(glibmm-2.4)
BuildRequires:  pkgconfig(libxml++-2.6)
BuildRequires:  pkgconfig(avahi-glib)
%description
Sobby is a standalone collaborative editor, to be used with gobby. It allows 
to save the edited document automatically, and to trigger actions after various
editing events.

%prep
%setup -q 
 
%build
%configure 
%make

%install
rm -rf ${RPM_BUILD_ROOT}

%makeinstall_std

mkdir -p %{buildroot}/%{_initrddir}
cp %{SOURCE1} %{buildroot}/%{_sysconfdir}
cp %{SOURCE2} %{buildroot}/%{_initrddir}/%name
mkdir -p %{buildroot}/var/lib/%name/{command,tmp}
touch  %{buildroot}/var/lib/%name/autosave.obby

%clean
rm -rf ${RPM_BUILD_ROOT}

%pre
%_pre_useradd %{name} /var/lib/%name /sbin/nologin

%post
%_post_service %name
if [ ! -f /var/lib/%name/autosave.obby ] ; then 
cat <<EOF > /var/lib/%name/autosave.obby
!obby
session version="0.4.7"
 user_table
 chat
EOF

fi

%preun
%_preun_service %name

%postun
%_postun_userdel %{name}

%files
%defattr(-,root,root)
%dir %attr(700,sobby,sobby) /var/lib/%name
%dir %attr(700,sobby,sobby) /var/lib/%name/command
%dir %attr(700,sobby,sobby) /var/lib/%name/tmp
%_bindir/%name
%_mandir/man1/*
%config(noreplace) %{_sysconfdir}/%name.conf
%attr(0755,root,root)%{_initrddir}/%name
%ghost %attr(0600,sobby,sobby) /var/lib/%name/autosave.obby


%changelog
* Tue Jun 01 2010 Michael Scherer <misc@mandriva.org> 0.4.7-2mdv2010.1
+ Revision: 546838
- release
- correctly create the ghosted file
- fix some english mistake
- fix wrong shell redirection

* Thu Feb 11 2010 Michael Scherer <misc@mandriva.org> 0.4.7-1mdv2010.1
+ Revision: 504042
- update to 0.4.7
- fix rpmlint error in the initscript ( add Default-Stop, add a reload entry )

* Fri Oct 02 2009 Lonyai Gergely <aleph@mandriva.org> 0.4.5-2mdv2010.0
+ Revision: 452478
- release
- add a initsrcipt and a framework

* Thu Aug 06 2009 Michael Scherer <misc@mandriva.org> 0.4.5-1mdv2010.0
+ Revision: 410824
- add buildrequires
- do not try to package it as a daemon, this seems too complex for the moment
- fix summary and description
- fix url
- add License and Group tag
- import sobby