[opensuse-packaging] Files section in the spec: How to correctly specify files in a directory?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everybody, I tried to compile lxc with the original spec, that is being delivered from upstream. Some changes in the BuildRequires (package names etc.), but then it compiles. That is, up to the point where some files/directories are not owned by any package. The original spec's file section contains:
%{_datadir}/doc/* %{_datadir}/lxc/*
As soon as I change this to the following, it compiles alright.
%{_datadir}/doc/ %{_datadir}/doc/* %{_datadir}/lxc/ %{_datadir}/lxc/*
Can someone point me to the documentation, where the correct syntax is explained? Is this just a SUSE/openSUSE/OBS specific thing? The spec from upstream seems to compile alright for fedora, at least that is how I understood it. Thanks in advance. Regards, Johannes - -- `You should write a book,´ Ron told Hermione as he cut up his potatoes, `translating mad things girls do so boys can understand them.´ (Harry Potter and the Order of the Phoenix) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlN4nOUACgkQzi3gQ/xETbIjzACgne7z7aZPktqHEC3W1jg1z7/o nDMAn2hVIyovl6LCVJ7xsQRLwPRHg/Vr =ng8l -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Johannes Kastl <mail@ojkastl.de> Sun, 18 May 2014 14:43:33 +0300:
Hi everybody,
Hello!
I tried to compile lxc with the original spec, that is being delivered from upstream. Some changes in the BuildRequires (package names etc.), but then it compiles.
That is, up to the point where some files/directories are not owned by any package. The original spec's file section contains:
%{_datadir}/doc/* %{_datadir}/lxc/*
doc and lxc directories content is owned but not directories.
As soon as I change this to the following, it compiles alright.
%{_datadir}/doc/ %{_datadir}/lxc/
doc and lxc directories content is owned and directories too. It is a good idea for lxc but package should not own anything from filesystem package and %{_datadir}/doc is there. So the correct should be %{_datadir}/lxc %{_datadir}/doc/lxcsubdir1 %{_datadir}/doc/lxcsubdir2 etc.
Can someone point me to the documentation, where the correct syntax is explained? Is this just a SUSE/openSUSE/OBS specific thing? The spec from upstream seems to compile alright for fedora, at least that is how I understood it.
Thanks in advance.
Regards, Johannes
-- Best regards, Dmitriy DA(P).DarkneSS Perlow @ Linux x64 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
* Dmitriy Perlow <dap@open.by> [2014-05-18 14:03]:
Johannes Kastl <mail@ojkastl.de> Sun, 18 May 2014 14:43:33 +0300:
Hi everybody,
Hello!
I tried to compile lxc with the original spec, that is being delivered from upstream. Some changes in the BuildRequires (package names etc.), but then it compiles.
That is, up to the point where some files/directories are not owned by any package. The original spec's file section contains:
%{_datadir}/doc/* %{_datadir}/lxc/*
doc and lxc directories content is owned but not directories.
As soon as I change this to the following, it compiles alright.
%{_datadir}/doc/ %{_datadir}/lxc/
doc and lxc directories content is owned and directories too.
It is a good idea for lxc but package should not own anything from filesystem package and %{_datadir}/doc is there. So the correct should be %{_datadir}/lxc %{_datadir}/doc/lxcsubdir1 %{_datadir}/doc/lxcsubdir2 etc.
Moreover, documentation belongs into %_defaultdocdir/<packagename> on openSUSE which expands to /usr/share/doc/packages/<packagename> and not /usr/share/doc/<packagename>. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 18.05.2014 14:21 Guido Berhoerster wrote:
Moreover, documentation belongs into %_defaultdocdir/<packagename> on openSUSE which expands to /usr/share/doc/packages/<packagename> and not /usr/share/doc/<packagename>.
Nice catch, will change that. Regards, Johannes - -- ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). (Matt Welsh) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlN4pj4ACgkQzi3gQ/xETbI3CACeP9xHEzWNj4mL3BLB15K6fAvp QjMAn3uU+0Z6fAfQfo87FOeh6OyF0Est =sPYS -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sunday 2014-05-18 14:21, Guido Berhoerster wrote:
Moreover, documentation belongs into %_defaultdocdir/<packagename> on openSUSE
%_docdir/packagename suffices. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dnia niedziela, 18 maja 2014 14:21:12 Guido Berhoerster pisze:
Moreover, documentation belongs into %_defaultdocdir/<packagename> on openSUSE which expands to /usr/share/doc/packages/<packagename> and not /usr/share/doc/<packagename>. --
Documentation extracted by the packager himself lands at %{_datadir}/doc/packages/%{name}. Documentation installed by upstream may land at whatever path upstream specified, including %{_datadir}/doc/%{name}. HTH, Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 18.05.2014 14:05 Dmitriy Perlow wrote:
%{_datadir}/doc/ %{_datadir}/lxc/
doc and lxc directories content is owned and directories too.
So basically the asterisk is not needed? Is this openSUSE-specific or just a flaw from upstream?
It is a good idea for lxc but package should not own anything from filesystem package and %{_datadir}/doc is there. So the correct should be %{_datadir}/lxc %{_datadir}/doc/lxcsubdir1 %{_datadir}/doc/lxcsubdir2 etc.
Basically it is just more than one file in these directories, so the * was introduced, I guess. Regards, Johannes - -- I think a nerd is a person who uses the telephone to talk to other people about telephones. And a computer nerd therefore is somebody who uses a computer in order to use a computer. (Douglas Adams in "Triumph of the Nerds") -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlN4pd0ACgkQzi3gQ/xETbJxwgCfd3ibNrQrKnKKUzlEcnO05WIA 82gAn1mvFAGxH99u/V4LvwTb8Fp7q/lC =WUi1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Johannes Kastl <mail@ojkastl.de> Sun, 18 May 2014 15:21:49 +0300:
On 18.05.2014 14:05 Dmitriy Perlow wrote:
%{_datadir}/doc/ %{_datadir}/lxc/
doc and lxc directories content is owned and directories too.
So basically the asterisk is not needed? Is this openSUSE-specific or just a flaw from upstream?
It depends on fact if the directory is a system one or a package one. I don't really know if it is openSUSE-specific. I made some packages for RHEL & Fedora using the same approach.
It is a good idea for lxc but package should not own anything from filesystem package and %{_datadir}/doc is there. So the correct should be %{_datadir}/lxc %{_datadir}/doc/lxcsubdir1 %{_datadir}/doc/lxcsubdir2 etc.
Basically it is just more than one file in these directories, so the * was introduced, I guess.
Regards, Johannes
-- Best regards, Dmitriy DA(P).DarkneSS Perlow @ Linux x64 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Johannes Kastl <mail@ojkastl.de> writes:
Basically it is just more than one file in these directories, so the * was introduced, I guess.
A directory in the file list (without %dir) causes the entire contents to be packaged. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 19. Mai 2014 09:09:10 MESZ, Andreas Schwab <schwab@suse.de> wrote:
Johannes Kastl <mail@ojkastl.de> writes:
was introduced, I guess.
Basically it is just more than one file in these directories, so the
A directory in the file list (without %dir) causes the entire contents to be packaged.
Andreas.
Sorry to repeat the question: is this suse-specific? I guess the upstream spec has not been created on openSUSE, hence the question... And is there any documentation specifically handling the files section? I found none... Regards, Johannes -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Johannes Kastl <mail@ojkastl.de> writes:
On 19. Mai 2014 09:09:10 MESZ, Andreas Schwab <schwab@suse.de> wrote:
Johannes Kastl <mail@ojkastl.de> writes:
was introduced, I guess.
Basically it is just more than one file in these directories, so the
A directory in the file list (without %dir) causes the entire contents to be packaged.
Andreas.
Sorry to repeat the question: is this suse-specific?
No, of course not. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (6)
-
Andreas Schwab
-
Dmitriy Perlow
-
Guido Berhoerster
-
Jan Engelhardt
-
Johannes Kastl
-
Krzysztof Żelechowski