• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Gelöst RPM build errors: Installed (but unpackaged) file(s) found

Christina

Advanced Hacker
Hi,
ich möchte mir die neue Version 0.15 von wavbreaker A· GUI tool to split WAV and MP3 files selbst kompilieren und ein RPM erstellen;
zunächst für Leap 15.3 und wenn alles klappt, dann für Leap 15.4.
Die spec-Datei habe ich schon angepasst. Das SRPM-Original stammt von hier: wavbreaker from home: darkhado: openSUSE project
cat wavbreaker.spec
Code:
Name:           wavbreaker
Version:    0.15
Release:    lp153.1.0
License:    GPL-2.0+
Summary:    Gtk+ wave file splitter
Url:        http://wavbreaker.sourceforge.net/
Group:        Productivity/Multimedia/Sound/Editors and Convertors
Source:        %name-%version.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:    meson
BuildRequires:    ninja
BuildRequires:    gtk3-devel
BuildRequires:    libao-devel
BuildRequires:    mpg123-devel
BuildRequires:    update-desktop-files

%description
This application's purpose in life is to take a wave file and
break it up into multiple wave files. It makes a clean break
at the correct position to burn the files to an audio cd without
any dead air between the tracks. It will only read wave files,
so use an appropriate tool to convert ogg, mp3, etc. files and
then break them up.

%prep
%setup -q

%build
meson --prefix=%{_prefix} linux_build
ninja -C linux_build

%install
DESTDIR=%{buildroot} ninja -C linux_build install
%suse_update_desktop_file -r net.sourceforge.%name AudioVideo AudioVideoEditing
%find_lang %name

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS CONTRIBUTORS COPYING README.md
%_bindir/%name
%_bindir/wavinfo
%_bindir/wavmerge
%_bindir/wavgen
%_datadir/applications/net.sourceforge.%name.desktop
%_datadir/icons/hicolor/scalable/apps/net.sourceforge.%name.svg
%_mandir/man1/%name.1.gz
%_mandir/man1/wavinfo.1.gz
%_mandir/man1/wavmerge.1.gz

%changelog
* Thu Jul 14 2022 Christina <xxx@xxx> 0.15
- 0.15 release

* Mon Dec 30 2019 Simone Sclavi <darkhado@xxx> 0.13
- 0.13 release

* Sat Sep 17 2016 Simone Sclavi <darkhado@xxx> 0.11
- Initial build
Anschließend bricht rpmbuild aber mit einer Fehlermeldung ab:
rpmbuild -ba /usr/src/packages/SPECS/wavbreaker.spec
Code:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ztMfgE
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf wavbreaker-0.15
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/wavbreaker-0.15.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd wavbreaker-0.15
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.bU7wmE
+ umask 022
+ cd /usr/src/packages/BUILD
+ /usr/bin/rm -rf /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64
++ dirname /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64
+ /usr/bin/mkdir -p /usr/src/packages/BUILDROOT
+ /usr/bin/mkdir /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64
+ cd wavbreaker-0.15
+ meson --prefix=/usr linux_build
The Meson build system
Version: 0.54.2
Source dir: /usr/src/packages/BUILD/wavbreaker-0.15
Build dir: /usr/src/packages/BUILD/wavbreaker-0.15/linux_build
Build type: native build
Using 'PKG_CONFIG_PATH' from environment with value: ':/usr/lib64/pkgconfig:/usr/share/pkgconfig'
Using 'PKG_CONFIG_PATH' from environment with value: ':/usr/lib64/pkgconfig:/usr/share/pkgconfig'
Project name: wavbreaker
Project version: 0.15
C compiler for the host machine: cc (gcc 7.5.0 "cc (SUSE Linux) 7.5.0")
C linker for the host machine: cc ld.bfd 2.37.20211103-150100
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Using 'PKG_CONFIG_PATH' from environment with value: ':/usr/lib64/pkgconfig:/usr/share/pkgconfig'
Run-time dependency glib-2.0 found: YES 2.62.6
Using 'PKG_CONFIG_PATH' from environment with value: ':/usr/lib64/pkgconfig:/usr/share/pkgconfig'
Run-time dependency gtk+-3.0 found: YES 3.24.20
Using 'PKG_CONFIG_PATH' from environment with value: ':/usr/lib64/pkgconfig:/usr/share/pkgconfig'
Run-time dependency ao found: YES 1.2.0
Library m found: YES
Using 'PKG_CONFIG_PATH' from environment with value: ':/usr/lib64/pkgconfig:/usr/share/pkgconfig'
Run-time dependency libmpg123 found: YES 1.26.4
Configuring config.h using configuration
Configuring Info.plist using configuration
Build targets in project: 7

Found ninja-1.10.0 at /usr/bin/ninja
+ ninja -C linux_build
ninja: Entering directory `linux_build'
[27/27] Linking target wavbreaker
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6ocisE
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd wavbreaker-0.15
+ DESTDIR=/usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64
+ ninja -C linux_build install
ninja: Entering directory `linux_build'
[0/1] Installing files.
Installing wavbreaker to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/bin
Installing wavmerge to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/bin
Installing wavgen to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/bin
Installing wavinfo to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/bin
Installing /usr/src/packages/BUILD/wavbreaker-0.15/man/wavbreaker.1 to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/man/man1
Installing /usr/src/packages/BUILD/wavbreaker-0.15/man/wavinfo.1 to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/man/man1
Installing /usr/src/packages/BUILD/wavbreaker-0.15/man/wavmerge.1 to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/man/man1
Installing /usr/src/packages/BUILD/wavbreaker-0.15/data/net.sourceforge.wavbreaker.desktop to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/applications
Installing /usr/src/packages/BUILD/wavbreaker-0.15/data/net.sourceforge.wavbreaker.appdata.xml to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/metainfo
Installing /usr/src/packages/BUILD/wavbreaker-0.15/data/net.sourceforge.wavbreaker.svg to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/icons/hicolor/scalable/apps
Running custom install script '/usr/bin/meson --internal gettext install --subdir=po --localedir=share/locale --pkgname=wavbreaker'
Installing /usr/src/packages/BUILD/wavbreaker-0.15/linux_build/po/de.gmo to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/locale/de/LC_MESSAGES/wavbreaker.mo
Installing /usr/src/packages/BUILD/wavbreaker-0.15/linux_build/po/pt.gmo to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/locale/pt/LC_MESSAGES/wavbreaker.mo
Installing /usr/src/packages/BUILD/wavbreaker-0.15/linux_build/po/fr.gmo to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/locale/fr/LC_MESSAGES/wavbreaker.mo
Installing /usr/src/packages/BUILD/wavbreaker-0.15/linux_build/po/es.gmo to /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/locale/es/LC_MESSAGES/wavbreaker.mo
+ /usr/lib/rpm/suse_update_desktop_file.sh -r net.sourceforge.wavbreaker AudioVideo AudioVideoEditing
+ /usr/lib/rpm/find-lang.sh /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64 wavbreaker
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-suse
Processing files: wavbreaker-0.15-lp153.1.0.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.mQeatE
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd wavbreaker-0.15
+ DOCDIR=/usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/doc/packages/wavbreaker
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/doc/packages/wavbreaker
+ cp -pr AUTHORS /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/doc/packages/wavbreaker
+ cp -pr CONTRIBUTORS /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/doc/packages/wavbreaker
+ cp -pr COPYING /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/doc/packages/wavbreaker
+ cp -pr README.md /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64/usr/share/doc/packages/wavbreaker
+ exit 0
Provides: application() application(net.sourceforge.wavbreaker.desktop) mimehandler(audio/mpeg) mimehandler(audio/x-wav) wavbreaker = 0.15-lp153.1.0 wavbreaker(x86-64) = 0.15-lp153.1.0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libao.so.4()(64bit) libao.so.4(LIBAO4_1.1.0)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.7)(64bit) libcairo.so.2()(64bit) libgdk-3.so.0()(64bit) libgio-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgtk-3.so.0()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libmpg123.so.0()(64bit)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /usr/src/packages/BUILDROOT/wavbreaker-0.15-lp153.1.0.x86_64
error: Installed (but unpackaged) file(s) found:
   /usr/share/metainfo/net.sourceforge.wavbreaker.appdata.xml


RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/share/metainfo/net.sourceforge.wavbreaker.appdata.xml
An der Stelle weiß ich nicht weiter. Kann mir da jemand bitte helfen?
lg Christina
 

Sauerland

Ultimate Guru
Im spec fehlt die %files section......

Alle im rpm vorkommenden Dateien sollten hier mit Pfad aufgelistet werden.


z.B.:
openSUSE Build Service

PS:
bau dir deine build Umgebung in dein /home:
Anschließend legen wir im Home-Verzeichnis unseres RPM-Maintainers die nötigen Unterverzeichnisse an.

$ mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

Zum Schluß setzen wir noch in der Konfigurationsdatei .rpmmacros im Homeverzeichnis des Nutzers das gearade angelegt Arbeitsverzeichnis.

$ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
RPM Build-Umgebung aufsetzen und RPM selbst bauen [Linux - Wissensdatenbank]
 
Zuletzt bearbeitet:

Sauerland

Ultimate Guru
Oops:
scrollen vergessen.........

Dann erzeugt das neue wavbreak halt mehr/andere Dateien in anderen Verzeichnissen:
%{_datadir}/metainfo/*.xml

Trotzdem:
baue es in deinem /home.......
 
OP
Christina

Christina

Advanced Hacker
Der Buildprozess ist jetzt in wenigen Sekunden fehlerfrei durchgelaufen. Ich probiere das morgen noch für Leap 15.4 auf meinem Desktop-PC.
Edit: Der Build lief unter Leap 15.4 (und in /home/christina) auch sofort durch.
Danke dir!
LG Christina
 
Zuletzt bearbeitet:
Oben