qdep/qdep.spec

64 lines
1.6 KiB
RPMSpec
Raw Normal View History

Name: qdep
Version: 1.1.1
Release: 2mamba
Summary: A very basic yet simple to use dependency management tool for qmake based projects
Group: Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/Skycoder42/qdep
Source: https://github.com/Skycoder42/qdep.git/%{version}/qdep-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: python3
## AUTOBUILDREQ-END
BuildRequires: python-lockfile-py3
Requires: python-lockfile-py3
Requires: python-argcomplete-py3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A very basic yet simple to use dependency management tool for qmake based projects.
%prep
%setup -q
%build
CFLAGS="%{optflags}" %{__python3} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python3} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python3_inc} \
--install-lib=%{python3_sitearch} \
--record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
%post
if [ $1 -ge 1 ]; then
qdep prfgen
fi
:
%postun
if [ $1 -eq 0 ]; then
rm -f "$(qmake -query QT_HOST_DATA)/mkspecs/features/qdep.prf"
fi
:
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.filelist
%defattr(-,root,root)
%doc LICENSE
%changelog
* Sun Jan 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-2mamba
- run 'qdep prfgen' on install
* Wed Nov 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- package created using the webbuild interface