Ship svn2cl (#496456).
This commit is contained in:
parent
346fdd7d8c
commit
915a2c68db
@ -12,10 +12,12 @@
|
|||||||
|
|
||||||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
|
%global svn2cl_version 0.11
|
||||||
|
|
||||||
Summary: A Modern Concurrent Version Control System
|
Summary: A Modern Concurrent Version Control System
|
||||||
Name: subversion
|
Name: subversion
|
||||||
Version: 1.6.5
|
Version: 1.6.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: ASL 1.1
|
License: ASL 1.1
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://subversion.tigris.org/
|
URL: http://subversion.tigris.org/
|
||||||
@ -123,6 +125,23 @@ Requires: ruby(abi) = 1.8
|
|||||||
%description ruby
|
%description ruby
|
||||||
This package includes the Ruby bindings to the Subversion libraries.
|
This package includes the Ruby bindings to the Subversion libraries.
|
||||||
|
|
||||||
|
%package svn2cl
|
||||||
|
Group: Development/Tools
|
||||||
|
Summary: Create a ChangeLog from a Subversion log
|
||||||
|
License: BSD
|
||||||
|
# -5: fake release for the Obsoletes to work
|
||||||
|
Provides: svn2cl = %{svn2cl_version}-5
|
||||||
|
Obsoletes: svn2cl < 0.11-4
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: libxslt
|
||||||
|
Requires: subversion = %{version}
|
||||||
|
|
||||||
|
%description svn2cl
|
||||||
|
svn2cl is a simple XSL transformation and shell script wrapper for
|
||||||
|
generating a classic GNU-style ChangeLog from a subversion repository
|
||||||
|
log. It is made from several changelog-like scripts using common XSLT
|
||||||
|
constructs found in different places.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch2 -p1 -b .deplibs
|
%patch2 -p1 -b .deplibs
|
||||||
@ -136,6 +155,16 @@ sed -i -e 's|-fpie|-fPIE|g' Makefile.in
|
|||||||
%endif
|
%endif
|
||||||
%patch8 -p1 -b .kwallet
|
%patch8 -p1 -b .kwallet
|
||||||
|
|
||||||
|
sed -i -e 's|^XSL="$dir/|XSL="%{_datadir}/svn2cl/|' \
|
||||||
|
contrib/client-side/svn2cl/svn2cl.sh
|
||||||
|
# Sanity check svn2cl_version
|
||||||
|
v=$(contrib/client-side/svn2cl/svn2cl.sh -V | head -n 1 | awk '{ print $2 }')
|
||||||
|
if [ "$v" != "%{svn2cl_version}" ]; then
|
||||||
|
echo -n "ERROR: svn2cl_version not up to date in specfile: "
|
||||||
|
echo "'$v' <> '%{svn2cl_version}'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Regenerate the buildsystem, so that:
|
# Regenerate the buildsystem, so that:
|
||||||
# 1) patches applied to configure.in take effect
|
# 1) patches applied to configure.in take effect
|
||||||
@ -231,6 +260,14 @@ sed -i "/^dependency_libs/{
|
|||||||
s,%{_libdir}/lib[^sa][^vp][^nr].*.la, ,g;
|
s,%{_libdir}/lib[^sa][^vp][^nr].*.la, ,g;
|
||||||
}" $RPM_BUILD_ROOT%{_libdir}/*.la
|
}" $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
|
||||||
|
# Install svn2cl
|
||||||
|
pushd contrib/client-side/svn2cl
|
||||||
|
install -Dpm 755 svn2cl.sh $RPM_BUILD_ROOT%{_bindir}/svn2cl
|
||||||
|
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/svn2cl
|
||||||
|
install -pm 644 *.xsl $RPM_BUILD_ROOT%{_datadir}/svn2cl
|
||||||
|
install -Dpm 644 svn2cl.1 $RPM_BUILD_ROOT%{_mandir}/man1/svn2cl.1
|
||||||
|
popd
|
||||||
|
|
||||||
# Install bash completion
|
# Install bash completion
|
||||||
install -Dpm 644 tools/client-side/bash_completion \
|
install -Dpm 644 tools/client-side/bash_completion \
|
||||||
$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name}
|
$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name}
|
||||||
@ -333,9 +370,18 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_javadir}/svn-javahl.jar
|
%{_javadir}/svn-javahl.jar
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%files svn2cl
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc contrib/client-side/svn2cl/NEWS contrib/client-side/svn2cl/README
|
||||||
|
%doc contrib/client-side/svn2cl/TODO contrib/client-side/svn2cl/authors.xml
|
||||||
|
%doc contrib/client-side/svn2cl/svn2html.css
|
||||||
|
%{_bindir}/svn2cl
|
||||||
|
%{_datadir}/svn2cl/
|
||||||
|
%{_mandir}/man1/svn2cl.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Sep 19 2009 Ville Skyttä <ville.skytta@iki.fi>
|
* Sat Sep 19 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.6.5-2
|
||||||
- Ship bash completion (#496456).
|
- Ship svn2cl and bash completion (#496456).
|
||||||
- Add %%defattr to -gnome and -kde.
|
- Add %%defattr to -gnome and -kde.
|
||||||
|
|
||||||
* Sun Aug 23 2009 Joe Orton <jorton@redhat.com> 1.6.5-1
|
* Sun Aug 23 2009 Joe Orton <jorton@redhat.com> 1.6.5-1
|
||||||
|
Loading…
Reference in New Issue
Block a user