Standard directory owned by a package

I’ve read .

This is my spec:

Name:       libread-config
Version:    0.0.2
Release:    0.0.1
Summary:    This package providces simple configuration library
License:      GPL-3.0-or-later
BuildRequires: make gcc filesystem
Requires: filesystem

libreadconfig aims to be simple and powerful, extensible configuration library.

%setup -q



install -D -m 0755 %{buildroot}/%{_libdir}/




* Thu Apr 22 2021 Sławomir Lach <>
First rpm package

It complains /usr/lib64 is not owned by a package. When adding it to files list, it complains standard directory is owned by a package. I try with %dir macro as prefix and the same. As you can see, i added filesystem package as an dependence (rpm -q --whatprovides /usr/lib64 was helpful). It do not solve problem. Any suggestions?


%dir %{_libdir}/

If you build on OBS, post link to your project.

No, that should not be needed. Standard directory /usr/lib64 belongs to filesystem which is installed automatically in every build environment when using OBS. Build logs are needed.

Unless user attempts to build locally, but we do not really know it - no information was provided at all.


was uploaded to OBS.

It does not build due to some internal OBS problem. Trigger rebuild and make sure build was actually attempted.

P.S. Is it that difficult to provide link to your package (as requested)?

What build targets, just tried here with Tumbleweed and all good no errors?

There are OBS build issues at present…

I cannot provide rpm package, because it does not build on my machine too. I use osc build command.

What do you mean “too”? Your package is built just fine on OBS.

Sounds like your local setup is not correct?

I accepted someone’s changes.

Where did I mistake?
Mistake was I do not create directory, where I place files?

I think your just using rpm build and not osc tools?

How do you expect us to answer this when you never even described what​ you did?

As I wrote, some ones provided changes to me. Changes were send to OBS service. I apply these changes and package build.

Changes were applied to spec file. I will try check what was wrong by self (removing and applying different changes suggested by person, who provided patches). I think problem was, I do not create standard directories by mkdir, but install.


I made osc up and osc build. Problem still occur on my PC.

After performing:
sudo rm -rf /var/tmp/build-root/openSUSE_Tumbleweed-x86_64/

And osc build packages were build.

Use the commands;

osc build --clean

Then can use (once packages installed in build-root)

osc build -o

For subsequent builds of the package