Group :: Development/Other
RPM: monotone
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: monotone
Summary: A distributed version control tool
Version: 0.40
Release: alt1
License: GPL
Group: Development/Other
# http://venge.net/monotone/downloads/%name-%version.tar.gz
Source: %name-%version.tar.bz2
Source1: monotone.init
Source2: monotone.sysconfig
Source3: README.monotone-server
Source4: read-permissions.template
Source5: write-permissions.template
Url: http://www.venge.net/monotone
Packager: Evgeny Sinelnikov <sin at altlinux.ru>
# Automatically added by buildreq on Tue Aug 16 2005
BuildRequires: boost-datetime-devel boost-devel boost-filesystem-devel boost-regex-devel boost-test-devel boost-program-options boost-program-options-devel boost-serialization-devel gcc-c++ libstdc++-devel zlib-devel
%description
monotone is a free, distributed version control system. it provides
fully disconnected operation, manages complete tree versions, keeps
its state in a local transactional database, supports overlapping
branches and extensible metadata, exchanges work over plain network
protocols, performs history-sensitive merging, and delegates trust
functions to client-side RSA certificates.
%package server
Summary: Standalone server setup for monotone
Requires: monotone = %version-%release
Group: Development/Other
%description server
This package provides an easy-to-use standalone server setup for monotone.
%package -n bash-completion-%name
Summary: bash completion for monotone
Group: Shells
Requires: bash-completion
Requires: %name = %version-%release
%description -n bash-completion-%name
Bash completion for monotone.
%prep
%setup -q
%build
%configure BOOST_SUFFIX="none -gcc -gcc41 -gcc-mt -gcc41-mt -gcc-mt-s -gcc41-mt-s"
%make
%install
%make_install DESTDIR=%buildroot install
mkdir -p %buildroot%_sbindir
mkdir -p %buildroot%_initdir
mkdir -p %buildroot%_sysconfdir/sysconfig
mkdir -p %buildroot%_localstatedir
mkdir -p %buildroot%_var/run/monotone
ln -snf ../bin/mtn %buildroot%_sbindir/monotone-server
%{__install} -c -m 0555 %SOURCE1 %buildroot%_initdir/%name
%{__install} -c -m 0644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name
%{__install} -d -m 0755 %buildroot%_sysconfdir/%name
%{__install} -d -m 0750 %buildroot%_sysconfdir/%name/private-keys
%{__install} -d -m 0770 %buildroot%_localstatedir/monotone
# These do not actually wind up in the package, due to %%ghost.
%{__install} -c -m 0440 /dev/null %buildroot%_sysconfdir/%name/passphrase.lua
%{__install} -c -m 0640 /dev/null %buildroot%_sysconfdir/%name/read-permissions
%{__install} -c -m 0640 /dev/null %buildroot%_sysconfdir/%name/write-permissions
%{__install} -c -m 0644 /dev/null %buildroot%_sysconfdir/%name/monotonerc
touch %buildroot%_localstatedir/monotone/server.mtn
touch %buildroot%_var/run/monotone/monotone-server.pid
cp %SOURCE3 .
cp %SOURCE4 .
cp %SOURCE5 .
mkdir -p %buildroot%_sysconfdir/bash_completion.d
%{__install} -c -m 0644 contrib/monotone.bash_completion %buildroot%_sysconfdir/bash_completion.d/%name
%find_lang %name
%post
%_install_info %name.info
%preun
%_remove_install_info %name.info
%pre server
# Add the "monotone" user
/usr/sbin/useradd -c "Monotone Netsync Server" \
-s /sbin/nologin -r -d %_localstatedir/monotone monotone 2> /dev/null || :
%post server
%post_service %name
%preun server
%preun_service %name
%files -f %name.lang
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README README.changesets UPGRADE
%doc monotone.html
%defattr(-,root,root,-)
%_bindir/mtn
%_infodir/monotone*
%_docdir/monotone
%files server
%doc README.monotone-server read-permissions.template write-permissions.template
%defattr(-,root,root,-)
%_sbindir/monotone-server
%_initdir/%name
%config %_sysconfdir/sysconfig/%name
%dir %attr(0755,root,monotone) %_sysconfdir/%name
%dir %attr(0750,root,monotone) %_sysconfdir/%name/private-keys
%attr(0640,root,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_sysconfdir/%name/monotonerc
%attr(0440,root,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_sysconfdir/%name/passphrase.lua
%attr(0640,root,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_sysconfdir/%name/read-permissions
%attr(0640,root,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_sysconfdir/%name/write-permissions
%dir %attr(0770,monotone,monotone) %_localstatedir/monotone
%dir %attr(0770,monotone,monotone) %_var/run/monotone
%attr(0660,monotone,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/monotone/server.mtn
%verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_var/run/monotone/monotone-server.pid
%files -n bash-completion-%name
%_sysconfdir/bash_completion.d/%name
%changelog
…
Full changelog you can see here
Summary: A distributed version control tool
Version: 0.40
Release: alt1
License: GPL
Group: Development/Other
# http://venge.net/monotone/downloads/%name-%version.tar.gz
Source: %name-%version.tar.bz2
Source1: monotone.init
Source2: monotone.sysconfig
Source3: README.monotone-server
Source4: read-permissions.template
Source5: write-permissions.template
Url: http://www.venge.net/monotone
Packager: Evgeny Sinelnikov <sin at altlinux.ru>
# Automatically added by buildreq on Tue Aug 16 2005
BuildRequires: boost-datetime-devel boost-devel boost-filesystem-devel boost-regex-devel boost-test-devel boost-program-options boost-program-options-devel boost-serialization-devel gcc-c++ libstdc++-devel zlib-devel
%description
monotone is a free, distributed version control system. it provides
fully disconnected operation, manages complete tree versions, keeps
its state in a local transactional database, supports overlapping
branches and extensible metadata, exchanges work over plain network
protocols, performs history-sensitive merging, and delegates trust
functions to client-side RSA certificates.
%package server
Summary: Standalone server setup for monotone
Requires: monotone = %version-%release
Group: Development/Other
%description server
This package provides an easy-to-use standalone server setup for monotone.
%package -n bash-completion-%name
Summary: bash completion for monotone
Group: Shells
Requires: bash-completion
Requires: %name = %version-%release
%description -n bash-completion-%name
Bash completion for monotone.
%prep
%setup -q
%build
%configure BOOST_SUFFIX="none -gcc -gcc41 -gcc-mt -gcc41-mt -gcc-mt-s -gcc41-mt-s"
%make
%install
%make_install DESTDIR=%buildroot install
mkdir -p %buildroot%_sbindir
mkdir -p %buildroot%_initdir
mkdir -p %buildroot%_sysconfdir/sysconfig
mkdir -p %buildroot%_localstatedir
mkdir -p %buildroot%_var/run/monotone
ln -snf ../bin/mtn %buildroot%_sbindir/monotone-server
%{__install} -c -m 0555 %SOURCE1 %buildroot%_initdir/%name
%{__install} -c -m 0644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name
%{__install} -d -m 0755 %buildroot%_sysconfdir/%name
%{__install} -d -m 0750 %buildroot%_sysconfdir/%name/private-keys
%{__install} -d -m 0770 %buildroot%_localstatedir/monotone
# These do not actually wind up in the package, due to %%ghost.
%{__install} -c -m 0440 /dev/null %buildroot%_sysconfdir/%name/passphrase.lua
%{__install} -c -m 0640 /dev/null %buildroot%_sysconfdir/%name/read-permissions
%{__install} -c -m 0640 /dev/null %buildroot%_sysconfdir/%name/write-permissions
%{__install} -c -m 0644 /dev/null %buildroot%_sysconfdir/%name/monotonerc
touch %buildroot%_localstatedir/monotone/server.mtn
touch %buildroot%_var/run/monotone/monotone-server.pid
cp %SOURCE3 .
cp %SOURCE4 .
cp %SOURCE5 .
mkdir -p %buildroot%_sysconfdir/bash_completion.d
%{__install} -c -m 0644 contrib/monotone.bash_completion %buildroot%_sysconfdir/bash_completion.d/%name
%find_lang %name
%post
%_install_info %name.info
%preun
%_remove_install_info %name.info
%pre server
# Add the "monotone" user
/usr/sbin/useradd -c "Monotone Netsync Server" \
-s /sbin/nologin -r -d %_localstatedir/monotone monotone 2> /dev/null || :
%post server
%post_service %name
%preun server
%preun_service %name
%files -f %name.lang
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README README.changesets UPGRADE
%doc monotone.html
%defattr(-,root,root,-)
%_bindir/mtn
%_infodir/monotone*
%_docdir/monotone
%files server
%doc README.monotone-server read-permissions.template write-permissions.template
%defattr(-,root,root,-)
%_sbindir/monotone-server
%_initdir/%name
%config %_sysconfdir/sysconfig/%name
%dir %attr(0755,root,monotone) %_sysconfdir/%name
%dir %attr(0750,root,monotone) %_sysconfdir/%name/private-keys
%attr(0640,root,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_sysconfdir/%name/monotonerc
%attr(0440,root,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_sysconfdir/%name/passphrase.lua
%attr(0640,root,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_sysconfdir/%name/read-permissions
%attr(0640,root,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_sysconfdir/%name/write-permissions
%dir %attr(0770,monotone,monotone) %_localstatedir/monotone
%dir %attr(0770,monotone,monotone) %_var/run/monotone
%attr(0660,monotone,monotone) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_localstatedir/monotone/server.mtn
%verify(not md5 size mtime) %ghost %config(missingok,noreplace) %_var/run/monotone/monotone-server.pid
%files -n bash-completion-%name
%_sysconfdir/bash_completion.d/%name
%changelog
…
Full changelog you can see here