diff --git a/signon.spec b/signon.spec index ffa3f8c..b64907c 100644 --- a/signon.spec +++ b/signon.spec @@ -1,6 +1,6 @@ Name: signon Version: 8.57 -Release: 1mamba +Release: 2mamba Summary: Accounts and SSO (Single Sign-On) framework Group: System/Management Vendor: openmamba @@ -11,12 +11,13 @@ Source: https://downloads.sourceforge.net/project/kaosx/sources/signon/si License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: libGL-devel BuildRequires: libgcc BuildRequires: libproxy-devel BuildRequires: libqt4-devel +BuildRequires: libqt5-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END -Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -25,6 +26,7 @@ The Accounts & SSO framework consists of a set of components and libraries which %package -n lib%{name} Group: System/Libraries Summary: Shared libraries for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name} This package contains shared libraries for %{name}. @@ -39,6 +41,41 @@ 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}. +%package -n lib%{name}-qt +Group: System/Libraries +Summary: Shared libraries for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-qt +This package contains Qt bindings to %{name}. + +%package -n lib%{name}-qt-devel +Group: Development/Libraries +Summary: Development files for lib%{name}-qt +Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description -n lib%{name}-qt-devel +This package contains libraries and header files for developing applications that use lib%{name}-qt. + +%package -n lib%{name}-qt5 +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name}-qt5 +This package contains Qt bindings to %{name}. + +%package -n lib%{name}-qt5-devel +Group: Development/Libraries +Summary: Development files for lib%{name}-qt5 +Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description -n lib%{name}-qt5-devel +This package contains libraries and header files for developing applications that use lib%{name}-qt5. + %package apidocs Group: Documentation Summary: %{name} API documentation @@ -62,9 +99,19 @@ This package includes the %{name} API documentation. %make +tar xf %{SOURCE0} +mv %{name}-%{version} build-qt5 +cd build-qt5 +%_qt5_qmake \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} + +%make + %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall INSTALL_ROOT=%{buildroot} +%makeinstall -C build-qt5 INSTALL_ROOT=%{buildroot} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -84,7 +131,6 @@ This package includes the %{name} API documentation. %{_libdir}/libsignon-extension.so.* %{_libdir}/libsignon-plugins.so.* %{_libdir}/libsignon-plugins-common.so.* -%{_libdir}/libsignon-qt.so.* %dir %{_libdir}/signon %{_libdir}/signon/libexampleplugin.so %{_libdir}/signon/libpasswordplugin.so @@ -105,25 +151,48 @@ This package includes the %{name} API documentation. %{_includedir}/signon-plugins/*.h %dir %{_includedir}/signon-plugins/SignOn %{_includedir}/signon-plugins/SignOn/* -%dir %{_includedir}/signon-qt -%dir %{_includedir}/signon-qt/SignOn -%{_includedir}/signon-qt/SignOn/* %dir %{_includedir}/signond %dir %{_includedir}/signond/* %{_libdir}/libsignon-extension.so %{_libdir}/libsignon-plugins-common.so %{_libdir}/libsignon-plugins.so +%{_libdir}/pkgconfig/SignOnExtension.pc +%{_libdir}/pkgconfig/signon-plugins-common.pc +%{_libdir}/pkgconfig/signon-plugins.pc +%{_libdir}/pkgconfig/signond.pc +%doc README TODO + +%files -n lib%{name}-qt +%defattr(-,root,root) +%{_libdir}/libsignon-qt.so.* + +%files -n lib%{name}-qt-devel +%defattr(-,root,root) +%dir %{_includedir}/signon-qt +%dir %{_includedir}/signon-qt/SignOn +%{_includedir}/signon-qt/SignOn/* %{_libdir}/libsignon-qt.a %{_libdir}/libsignon-qt.so %dir %{_libdir}/cmake/SignOnQt %{_libdir}/cmake/SignOnQt/SignOnQtConfig.cmake %{_libdir}/cmake/SignOnQt/SignOnQtConfigVersion.cmake -%{_libdir}/pkgconfig/SignOnExtension.pc %{_libdir}/pkgconfig/libsignon-qt.pc -%{_libdir}/pkgconfig/signon-plugins-common.pc -%{_libdir}/pkgconfig/signon-plugins.pc -%{_libdir}/pkgconfig/signond.pc -%doc README TODO + +%files -n lib%{name}-qt5 +%defattr(-,root,root) +%{_libdir}/libsignon-qt5.so.* + +%files -n lib%{name}-qt5-devel +%defattr(-,root,root) +%dir %{_includedir}/signon-qt5 +%dir %{_includedir}/signon-qt5/SignOn +%{_includedir}/signon-qt5/SignOn/* +%{_libdir}/libsignon-qt5.a +%{_libdir}/libsignon-qt5.so +%dir %{_libdir}/cmake/SignOnQt5 +%{_libdir}/cmake/SignOnQt5/SignOnQt5Config.cmake +%{_libdir}/cmake/SignOnQt5/SignOnQt5ConfigVersion.cmake +%{_libdir}/pkgconfig/libsignon-qt5.pc %files apidocs %defattr(-,root,root) @@ -137,6 +206,9 @@ This package includes the %{name} API documentation. %{_datadir}/doc/libsignon-qt/* %changelog +* Sun Aug 16 2015 Silvan Calarco 8.57-2mamba +- added libsignon-qt5 + * Thu Sep 18 2014 Silvan Calarco 8.57-1mamba - update to 8.57