Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
:
testing
>
rpmrebuild
> rpmrebuild.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File rpmrebuild.spec of Package rpmrebuild
Version: 2.16 Release: 1 %define __brp_mangle_shebangs echo "no shebang change" Name: rpmrebuild Summary: A tool to build rpm file from rpm database License: GPLv2 Group: Development/Tools Source: %{name}-%{version}.tar.gz Patch0: sfos_arch_detection.patch Url: http://rpmrebuild.sourceforge.net BuildArch: noarch Requires: bash Requires: cpio Requires: sed Requires: gawk Requires: rpm-build Requires: coreutils Requires: util-linux %description rpmrebuild allows to build an rpm file from an installed rpm, or from another rpm file, with or without changes (batch or interactive). It can be extended by a plugin system. A typical use is to easily repackage a software after some configuration changes. %if "%{?vendor}" == "chum" PackageName: RPM rebuild Type: console-application PackagerName: nephros Categories: - Development - Utility - PackageManager Custom: Repo: https://sourceforge.net/p/rpmrebuild/git/ci/master/tree/ Url: Homepage: http://rpmrebuild.sourceforge.net %endif %prep %setup -n %{name}-%{version} -c %{name} # sfos_arch_detection.patch %patch0 -p1 %build make %{?_smp_mflags} %install [ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}" make install DESTDIR="%{buildroot}" # remove for Sailfish OS rm -rf "%{buildroot}"/%{_libdir}/%{name}/locale/fr* rm -rf "%{buildroot}"/%{_mandir} rm -rf "%{buildroot}"/%{_docdir} %files %{_bindir}/* # for 64bit: we actually use /usr/lib: #%%{_libdir}/%%{name} %{_exec_prefix}/lib/%{name}