Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Having a hard time packaging a Qt application

$
0
0
I've been trying to compile a program I wrote. I've been able to fix each error message except for this one.
Code:

error: Bad file: /home/abuild/rpmbuild/SOURCES/bir.desktopopensuse build service: No such file or directory
I don't know why its looking for a file with .desktopopensuse as the extension. I am calling %suse_update_desktop_file I'm not sure if the .desktop file should be on the root or TARed up with the rest of the sources. Please, if you could take a look at how I'm structuring things and tell me if I'm doing it wrong I would appreciate it.

My tar.gz file contains a single folder with the name of the app and the version number. I did this based on the errors it was giving me. Here is my spec file:

Code:

Name:        bir
BuildRequires:    libqt4-devel update-desktop-files gcc-c++
Requires:      libqt4
Version:        1.1
Release:        0
Summary:        Batch image resizer and manipulator.
License:        GPL-3.0+
Group:          Graphics/RasterGraphics
Url:            https://github.com/agronick/BIR
Source0:    %{name}-%{version}.tar.gz
Distribution:  %{distr}
Packager:    Kdde Aasddick agrasdsck@gmail.com 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source1:        %name.desktopopensuse build service

%define qmake /usr/bin/qmake

%description
Batch image resizer and manipulator. Written in Qt. Able to resize, crop, and rotate directories of images and preserve file structure.
 

%prep
%setup -q

%build
qmake
make
%install
make install INSTALL_ROOT="%buildroot";
%suse_update_desktop_file -i %name
%clean
rm -rf $RPM_BUILD_ROOT

%files
/usr/share/applications/%name.desktop
%defattr(-,root,root)
%doc README.md
%{_bindir}/%{name}
%changelog

If anyone can help me I'd really appreciate it.

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>