2024-01-05 17:00:20 +01:00
|
|
|
Name: qdep
|
|
|
|
Version: 1.1.1
|
2024-01-05 17:00:21 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 17:00:20 +01:00
|
|
|
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
|
2024-01-05 17:00:21 +01:00
|
|
|
BuildRequires: python3
|
2024-01-05 17:00:20 +01:00
|
|
|
## 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
|
|
|
|
|
2024-01-05 17:00:21 +01:00
|
|
|
%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
|
|
|
|
:
|
2024-01-05 17:00:20 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:00:21 +01:00
|
|
|
* Sun Jan 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-2mamba
|
|
|
|
- run 'qdep prfgen' on install
|
|
|
|
|
2024-01-05 17:00:20 +01:00
|
|
|
* Wed Nov 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
|
|
|
|
- package created using the webbuild interface
|