qtkeychain/qtkeychain.spec

83 lines
2.3 KiB
RPMSpec

Name: qtkeychain
Version: 0.8.0
Release: 1mamba
Summary: Platform-independent Qt API for storing passwords securely
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/frankosterfeld/qtkeychain
## GITSOURCE https://github.com/frankosterfeld/qtkeychain.git v0.8.0
Source: https://github.com/frankosterfeld/qtkeychain.git/v%{version}/qtkeychain-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Platform-independent Qt API for storing passwords securely.
%package -n lib%{name}
Group: System/Libraries
Summary: Platform-independent Qt API for storing passwords securely.
%description -n lib%{name}
Platform-independent Qt API for storing passwords securely.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%cmake -d build \
-DECM_MKSPECS_INSTALL_DIR:PATH=%{_libdir}/qt5/mkspecs/modules
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libqt5keychain.so.*
%{_datadir}/qt5/translations/qtkeychain_*.qm
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/qt5keychain
%{_includedir}/qt5keychain/*.h
%dir %{_libdir}/cmake/Qt5Keychain
%{_libdir}/cmake/Qt5Keychain/Qt5Keychain*.cmake
%{_libdir}/libqt5keychain.so
%{_libdir}/qt5/mkspecs/modules/qt_Qt5Keychain.pri
%doc ChangeLog
%changelog
* Tue Apr 10 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0-1mamba
- package created using the webbuild interface