Skip to content

Commit

Permalink
packaging: Cleanup spec file
Browse files Browse the repository at this point in the history
Remove obsolete and unused things.
Own all directories correctly (this will be an error in later RPM versions).

Signed-off-by: Björn Bidar <[email protected]>
  • Loading branch information
Thaodan committed Mar 31, 2024
1 parent afc73ab commit 757f429
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions rpm/scratchbox2.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
Summary: Scratchbox2 crosscompiling environment
Summary: Crosscompiling environment
License: LGPLv2
URL: https://git.sailfishos.org/mer-core/scratchbox2
Name: scratchbox2
Version: 2.3.90+git58
Release: 0
Source: %{name}-%{version}.tar.gz
Prefix: /usr
ExclusiveArch: %{ix86} %{x86_64}
BuildRequires: make
BuildRequires: autoconf
Expand All @@ -31,6 +30,7 @@ Scratchbox2 preload library.

%package docs
Summary: Scratchbox2 docs
BuildArch: noarch

%description docs
Scratchbox2 man pages.
Expand All @@ -48,16 +48,21 @@ Scratchbox2 man pages.

install -D -m 644 utils/sb2.bash %{buildroot}/etc/bash_completion.d/sb2.bash

%check
# Rpmlint suggest to add it even thou we don't
# have any checks so far

%files
%defattr(-,root,root)
%{_bindir}/sb2*
%dir %{_datadir}/scratchbox2
%{_datadir}/scratchbox2/*
%config %{_sysconfdir}/bash_completion.d/sb2.bash

%files docs
%doc %attr(0444,root,root) /usr/share/man/man1/*
%doc %attr(0444,root,root) /usr/share/man/man7/*
%doc /usr/share/man/man1/*
%doc /usr/share/man/man7/*

%files -n libsb2
%defattr(-,root,root)
%dir %{_libdir}/libsb2
%{_libdir}/libsb2/*

0 comments on commit 757f429

Please sign in to comment.