Login | Register
My pages Projects Community openCollabNet

Discussions > dev > RPM .spec file tuning

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Hide all messages in topic

All messages in topic

Re: RPM .spec file tuning

Reply

Author hunterm
Full name Hunter Matthews
Date 2003-04-01 12:12:44 PST
Message Excellent. I'll apply this tomorrow when I can hack on current some,
EXCEPT for the part about the tabs.

I despise tabs in files.


On Tue, 2003-04-01 at 10:28, Krištof Petr wrote:
> Hi,
>
> there is my attempt to make rpm .spec file better.
>
> Changes:
>
> - added tabs to header - cosmetic
> - added require dependence for mod_python >= 3.0.1
> - added empty /var/log/httpd/current.log file
> - used rpm %macros - to be more portable for easy
> rebuild on another rpm-based distros
>
>
> Best regs
>
> Petr
>
> ____________________​____________________​____________________​__________
>
> --- current.spec 2003-02-20 21:54:00.000000000 +0100
> +++ current.spec-kri 2003-03-27 19:36:00.000000000 +0100
> @@ -7,28 +7,29 @@
> # I do all this junk at the top to get it out of the way, so the rest of
> # the file looks _sort_of_ sane.
> %if %{rhl8x}
> -%define release 1.8x
> +%define release 2.8x
> %define additional_requires httpd librpm404 rpm404-python
> %else
> -%define release 1.7x
> +%define release 2.7x
> %define additional_requires apache python-xmlrpc
> %endif
>
> -Summary: A server for Red Hat's up2date tools.
> -Name: current
> -Version: 1.4.3
> -Release: %{release}
> -License: GPL
> -Group: System Environment/Daemons
> -URL: http://www.biology.d​uke.edu/computer/uni​x/current
> -Source0: ftp://ftp.biology.du​ke.edu/pub/admin/cur​rent/%{name}-%{versi​on}.tar.gz
> -Requires: python rpm-python mod_python mod_ssl
> -Requires: rpm >= 4.0.2-8
> -Requires: %{additional_requires}
> -BuildRequires: docbook-style-xsl docbook-style-dsssl docbook-dtds
> -BuildRequires: docbook-utils docbook-utils-pdf
> -BuildArchitectures: noarch
> -BuildRoot: %{_tmppath}/%{name}-​%{version}-buildroot​
> +Summary: A server for Red Hat's up2date tools.
> +Name: current
> +Version: 1.4.3
> +Release: %{release}
> +License: GPL
> +Group: System Environment/Daemons
> +URL: http://www.biology.d​uke.edu/computer/uni​x/current
> +Source0: ftp://ftp.biology.du​ke.edu/pub/admin/cur​rent/%{name}-%{versi​on}.tar.gz
> +Requires: python rpm-python mod_python >= 3.0.1 mod_ssl
> +Requires: rpm >= 4.0.2-8
> +Requires: %{additional_requires}
> +BuildRequires: docbook-style-xsl docbook-style-dsssl docbook-dtds
> +BuildRequires: docbook-utils docbook-utils-pdf
> +BuildArch: noarch
> +BuildRoot: %{_tmppath}/%{name}-​%{version}-buildroot​
> +Prefix: /usr
>
> %description
> Current is a server implementation for Red Hat's up2date tools. It's
> @@ -46,7 +47,8 @@
>
> %install
> make install INSTALL_ROOT=$RPM_BUILD_ROOT
> -
> +mkdir -p $RPM_BUILD_ROOT%{_l​ocalstatedir}/log/ht​tpd/
> +touch $RPM_BUILD_ROOT%{_l​ocalstatedir}/log/ht​tpd/current.log
>
> %clean
> [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
> @@ -58,14 +60,16 @@
> %doc docs/client
> %doc docs/developer_docs
> #%doc docs/current-guide.ps docs/current-guide
> -%config(noreplace) /etc/current/current.conf
> -%dir /etc/current
> -%dir /usr/share/current
> -/usr/sbin/*
> -/usr/share/current/*
> -
> +%config(noreplace) %{_sysconfdir}/curre​nt/current.conf
> +%dir %{_sysconfdir}/current
> +%attr(0755,root,root) %{_sbindir}/*
> +%attr(0644,root,root) %{_datadir}/current/*
> +%attr(0644,apache,apache) %{_localstatedir}/lo​g/httpd/current.log
>
> %changelog
> +* Wed Mar 26 2003 Petr Kri¹tof <Petr at Kristof dot CZ>
> +- More RPM tuning
> +
> * Sat Feb 15 2003 Hunter Matthews <thm at duke dot edu> 1.4.3-1
> - Changes to dependancies to correct for Red Hat 8.0
>
>
> ____________________​____________________​____________________​__________
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@curr​ent.tigris.org
> For additional commands, e-mail: dev-help at current dot tigris dot org
--
Hunter Matthews Unix / Network Administrator
Office: BioScience 145/244 Duke Univ. Biology Department
Key: F0F88438 / FFB5 34C0 B350 99A4 BB02 9779 A5DB 8B09 F0F8 8438
Never take candy from strangers. Especially on the internet.


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe@curr​ent.tigris.org
For additional commands, e-mail: dev-help at current dot tigris dot org

RPM .spec file tuning

Reply

Author =?UTF-8?B?S3JpxaF0b2YgUGV0cg==?= <Kristof dot P at fce dot vutbr dot cz>
Full name =?UTF-8?B?S3JpxaF0b2YgUGV0cg==?= <Kristof dot P at fce dot vutbr dot cz>
Date 2003-04-01 07:28:39 PST
Message Hi,

there is my attempt to make rpm .spec file better.

Changes:

- added tabs to header - cosmetic
- added require dependence for mod_python >= 3.0.1
- added empty /var/log/httpd/current.log file
- used rpm %macros - to be more portable for easy
rebuild on another rpm-based distros


Best regs

        Petr
Messages per page: