[opensuse-packaging] whitespace in directory name in specfile?
Hi, here's the background: I wrote a shell script to make a package like steam in games. It'll use update-messages and update-scripts mechanisms to download commercial data on the user's own system to avoid unclear copyright. Then I have to %ghost all the files to keep track of them. But there're filenames and directory names with whitespaces in them. And it's hardcoded in the data config so I can't change. So how to write such names with whitespaces in RPM specfile? Anyone can share some experience? Greetings Margueirte -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wed, May 8, 2013 at 9:59 AM, Marguerite Su wrote:
Hi,
here's the background:
I wrote a shell script to make a package like steam in games.
It'll use update-messages and update-scripts mechanisms to download commercial data on the user's own system to avoid unclear copyright.
Then I have to %ghost all the files to keep track of them.
But there're filenames and directory names with whitespaces in them.
And it's hardcoded in the data config so I can't change.
So how to write such names with whitespaces in RPM specfile?
Anyone can share some experience?
Greetings
Margueirte
If you %define filename "asdf asdf asdf" Doesn't "%{filename}" then expand as desired? When faced with whitespace, I've renamed the files, but I'm pretty sure the above would do it. Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wed, May 8, 2013 at 10:20 PM, Greg Freemyer
%define filename "asdf asdf asdf"
Doesn't "%{filename}" then expand as desired?
Thanks, Greg, I'll try that. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Marguerite Su writes:
So how to write such names with whitespaces in RPM specfile?
You can match the whitespace with a glob. 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 Wed, May 8, 2013 at 10:29 PM, Andreas Schwab
You can match the whitespace with a glob.
Hi, Andreas, I tried that before: %ghost %{_datadir}/kingsoft/wps-office/templates/2052/wps/daily* and I did a `rpm -qf daily` + tab: file /usr/share/kingsoft/wps-office/templates/2052/wps/daily life is not owned by any package -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Greg Freemyer
-
Marguerite Su