Chris, sorry, you've exhausted the limits of my knowledge about
packaging stuff up. I can make it works when it works right, but when
it doesn't...
And -- if Dag reads this, apologies for misspelling Wieers...!
-Karl
On 4/27/07, Christopher Taylor <[EMAIL PROTECTED]> wrote:
>
> Karl,
>
> Yes, I edited the spec file and the patches were applied correctly.
> The default spec file that comes with the .src.rpm that I was using
> has all the proper dependencies listed (please see at the bottom of
> this post for the complete spec file):
>
> BuildRequires: sed >= 3.95
> BuildRequires: python-devel
> Requires: python-clearsilver >= 0.9.3
> Requires: subversion >= 1.1
> Requires: httpd
> Requires: python-sqlite
>
>
> I executed the following command and everything seemed normal
> [EMAIL PROTECTED] SPECS] $ rpmbuild -bp trac.spec
>
> When I build the rpm it appears to be taking the requires into consideration:
> [EMAIL PROTECTED] trac-0.10.3.1] $ python setup.py bdist_rpm
>
> Processing files: trac-0.10.3.1-1
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> Requires: /usr/bin/python clearsilver >= 0.9.3 httpd pysqlite >= 0.4.3
> python >= 2.3 python(abi) = 2.4 subversion >= 1.0.0
> Checking for unpackaged file(s): /usr/lib/rpm/check-files
> /var/tmp/trac-0.10.3.1-1-buildroot
> Wrote:
> /home/vrcngtrx/workspace/rpmbuild/BUILD/trac-0.10.3.1/build/bdist.linux-i686/rpm/SRPMS/trac-0.10.3.1-1.src.rpm
> Wrote:
> /home/vrcngtrx/workspace/rpmbuild/BUILD/trac-0.10.3.1/build/bdist.linux-i686/rpm/RPMS/noarch/trac-0.10.3.1-1.noarch.rpm
> Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.11822
> + umask 022
> + cd
> /home/vrcngtrx/workspace/rpmbuild/BUILD/trac-0.10.3.1/build/bdist.linux-i686/rpm/BUILD
> + cd trac-0.10.3.1
> + rm -rf /var/tmp/trac-0.10.3.1-1-buildroot
> + exit 0
> Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.11822
> + umask 022
> + cd
> /home/vrcngtrx/workspace/rpmbuild/BUILD/trac-0.10.3.1/build/bdist.linux-i686/rpm/BUILD
> + rm -rf trac-0.10.3.1
> + exit 0
> moving build/bdist.linux-i686/rpm/SRPMS/trac-0.10.3.1-1.src.rpm -> dist
> moving build/bdist.linux-i686/rpm/RPMS/noarch/trac-0.10.3.1-1.noarch.rpm ->
> dist
>
> then the confusing part:
> [EMAIL PROTECTED] trac-0.10.3.1] $ cd dist
> [EMAIL PROTECTED] dist] $ rpm -qR -p trac-0.10.3.1-1fc.noarch.rpm
> /usr/bin/python
> python(abi) = 2.4
> rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>
> I'm expecting to see:
> /usr/bin/python
> config(trac) = 0.10.3.1-2.fc5
> httpd
> python(abi) = 2.4
> python-clearsilver >= 0.9.3
> python-sqlite
> rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> subversion >= 1.1
>
>
> I'm not sure if my problem is in building the rpm or in applying the spec file
>
> Thank you for any assistance you can provide,
> Christopher Taylor
>
> trac.spec:
> %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
> distutils.sysconfig import get_python_lib; print get_python_lib()")}
>
> Name: trac
> Version: 0.10.3.1
> Release: 2%{?dist}
> Summary: Enhanced wiki and issue tracking system
> Group: Applications/Internet
> License: BSD
> URL: http://trac.edgewall.com/
> Source0: http://ftp.edgewall.com/pub/trac/%{name}-%{version}.tar.gz
> Source1: trac.conf
> #CMT 27APR07 added time tracking patch
> Patch01: trac-time-tracking-0.10.diff
> BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
> BuildArch: noarch
> BuildRequires: sed >= 3.95
> BuildRequires: python-devel
> Requires: python-clearsilver >= 0.9.3
> Requires: subversion >= 1.1
> Requires: httpd
> Requires: python-sqlite
>
> %description
> Trac is an integrated system for managing software projects, an
> enhanced wiki, a flexible web-based issue tracker, and an interface to
> the Subversion revision control system. At the core of Trac lies an
> integrated wiki and issue/bug database. Using wiki markup, all objects
> managed by Trac can directly link to other issues/bug reports, code
> changesets, documentation and files. Around the core lies other
> modules, providing additional features and tools to make software
> development more streamlined and effective.
>
> %prep
> %setup -q
> chmod -x contrib/*
> sed -i -e 's|/var/svn/test|/srv/svn|' trac/scripts/admin.py
> chmod -x htdocs/js/wikitoolbar.js
> sed -i -e 's/tracd 1/tracd 8/' scripts/tracd.1
> rm trac/test.py
> #CMT 17APR07 apply the patch
> %patch01 -p0
>
> %build
> %{__python} setup.py build
>
> %install
> rm -rf $RPM_BUILD_ROOT
>
> # --skip-build causes bad stuff in siteconfig.py as of 0.8.4
> %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT
>
> install -dm 755 $RPM_BUILD_ROOT%{_var}/www/cgi-bin
> mv $RPM_BUILD_ROOT%{_datadir}/trac/cgi-bin/trac.*cgi \
> $RPM_BUILD_ROOT%{_var}/www/cgi-bin
> rm -r $RPM_BUILD_ROOT%{_datadir}/trac/cgi-bin
>
> install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/conf.d/trac.conf
> install -dm 755 $RPM_BUILD_ROOT%{_sbindir}
> mv $RPM_BUILD_ROOT{%{_bindir}/tracd,%{_sbindir}/tracd}
> install -dm 755 $RPM_BUILD_ROOT%{_mandir}/man8
> mv $RPM_BUILD_ROOT%{_mandir}/{man1/tracd.1,man8/tracd.8}
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr(-,root,root,-)
> %doc AUTHORS ChangeLog COPYING INSTALL README* RELEASE THANKS UPGRADE contrib/
> %{_bindir}/trac-admin
> %{_sbindir}/tracd
> %dir %{python_sitelib}/trac/
> %{python_sitelib}/trac/*.py
> %{python_sitelib}/trac/*.pyc
> %{python_sitelib}/trac/*.pyo
> %dir %{python_sitelib}/trac/mimeview/
> %{python_sitelib}/trac/mimeview/*.py
> %{python_sitelib}/trac/mimeview/*.pyc
> %{python_sitelib}/trac/mimeview/*.pyo
> %dir %{python_sitelib}/trac/scripts/
> %{python_sitelib}/trac/scripts/*.py
> %{python_sitelib}/trac/scripts/*.pyc
> %{python_sitelib}/trac/scripts/*.pyo
> %dir %{python_sitelib}/trac/ticket/
> %{python_sitelib}/trac/ticket/*.py
> %{python_sitelib}/trac/ticket/*.pyc
> %{python_sitelib}/trac/ticket/*.pyo
> %dir %{python_sitelib}/trac/upgrades/
> %{python_sitelib}/trac/upgrades/*.py
> %{python_sitelib}/trac/upgrades/*.pyc
> %{python_sitelib}/trac/upgrades/*.pyo
> %dir %{python_sitelib}/trac/versioncontrol/
> %{python_sitelib}/trac/versioncontrol/*.py
> %{python_sitelib}/trac/versioncontrol/*.pyc
> %{python_sitelib}/trac/versioncontrol/*.pyo
> %dir %{python_sitelib}/trac/versioncontrol/web_ui/
> %{python_sitelib}/trac/versioncontrol/web_ui/*.py
> %{python_sitelib}/trac/versioncontrol/web_ui/*.pyc
> %{python_sitelib}/trac/versioncontrol/web_ui/*.pyo
> %dir %{python_sitelib}/trac/web/
> %{python_sitelib}/trac/web/*.py
> %{python_sitelib}/trac/web/*.pyc
> %{python_sitelib}/trac/web/*.pyo
> %dir %{python_sitelib}/trac/wiki/
> %{python_sitelib}/trac/wiki/*.py
> %{python_sitelib}/trac/wiki/*.pyc
> %{python_sitelib}/trac/wiki/*.pyo
> %dir %{python_sitelib}/trac/db
> %{python_sitelib}/trac/db/*.py
> %{python_sitelib}/trac/db/*.pyc
> %{python_sitelib}/trac/db/*.pyo
> %dir %{python_sitelib}/trac/util
> %{python_sitelib}/trac/util/*.py
> %{python_sitelib}/trac/util/*.pyc
> %{python_sitelib}/trac/util/*.pyo
>
> %config(noreplace) /etc/httpd/conf.d/trac.conf
> %{_datadir}/trac/
> %{_var}/www/cgi-bin/trac.cgi
> %{_var}/www/cgi-bin/trac.fcgi
> %{_mandir}/man1/trac-admin.1*
> %{_mandir}/man8/tracd.8*
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---