Fix packaging problems

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
epel9
Igor Gnatenko 9 years ago
parent 3ed90e7ce8
commit 7ff3455de1

@ -2,67 +2,68 @@
Name: qtkeychain Name: qtkeychain
Version: 0.7.0 Version: 0.7.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: A password store library Summary: A password store library
License: BSD License: BSD
Url: https://github.com/frankosterfeld/qtkeychain Url: https://github.com/frankosterfeld/qtkeychain
Source0: https://github.com/frankosterfeld/qtkeychain/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: cmake BuildRequires: cmake
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtDBus) BuildRequires: pkgconfig(QtDBus)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: qt5-linguist
%description %description
The qtkeychain library allows you to store passwords easy and secure. The qtkeychain library allows you to store passwords easy and secure.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel %description devel
This package contains development files for qtkeychain. This package contains development files for qtkeychain.
%package qt5 %package qt5
Summary: A password store library Summary: %{summary}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description qt5 %description qt5
The qt5keychain library allows you to store passwords easy and secure. The qt5keychain library allows you to store passwords easy and secure.
%package qt5-devel %package qt5-devel
Summary: Development files for %{name}-qt5 Summary: Development files for %{name}-qt5
Requires: %{name}-qt5%{?_isa} = %{version}-%{release} BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5LinguistTools)
Requires: %{name}-qt5%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: qt5-qtbase-devel%{?_isa} Requires: qt5-qtbase-devel%{?_isa}
%description qt5-devel %description qt5-devel
This package contains development files for qt5keychain. This package contains development files for qt5keychain.
%prep %prep
%setup -q %autosetup
mkdir %{_target_platform}-qt4
mkdir %{_target_platform}-qt5
%build %build
mkdir build pushd %{_target_platform}-qt4
pushd build %cmake .. \
%cmake .. \
-DBUILD_WITH_QT4:BOOL=ON \ -DBUILD_WITH_QT4:BOOL=ON \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags}
popd popd
pushd %{_target_platform}-qt5
mkdir build-qt5 %cmake .. \
pushd build-qt5
%cmake .. \
-DBUILD_WITH_QT4:BOOL=OFF \ -DBUILD_WITH_QT4:BOOL=OFF \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags}
popd popd
%make_build -C %{_target_platform}-qt4
%make_build -C %{_target_platform}-qt5
%install %install
make install DESTDIR=%{buildroot} -C build-qt5 %make_install -C %{_target_platform}-qt4
make install DESTDIR=%{buildroot} -C build %make_install -C %{_target_platform}-qt5
%find_lang %{name} --with-qt %find_lang %{name} --with-qt
@ -76,12 +77,12 @@ grep %{_qt5_translationdir} %{name}.lang > %{name}-qt5.lang
%files -f %{name}-qt4.lang %files -f %{name}-qt4.lang
%doc ReadMe.txt %doc ReadMe.txt
%license COPYING %license COPYING
%{_libdir}/libqtkeychain.so.0* %{_libdir}/libqtkeychain.so.*
%files devel %files devel
%{_includedir}/qtkeychain/ %{_includedir}/qtkeychain/
%{_libdir}/cmake/QtKeychain/ %{_libdir}/cmake/QtKeychain/
%{_libdir}/libqtkeychain.so* %{_libdir}/libqtkeychain.so
%post qt5 -p /sbin/ldconfig %post qt5 -p /sbin/ldconfig
%postun qt5 -p /sbin/ldconfig %postun qt5 -p /sbin/ldconfig
@ -89,15 +90,17 @@ grep %{_qt5_translationdir} %{name}.lang > %{name}-qt5.lang
%files qt5 -f %{name}-qt5.lang %files qt5 -f %{name}-qt5.lang
%doc ReadMe.txt %doc ReadMe.txt
%license COPYING %license COPYING
%{_libdir}/libqt5keychain.so* %{_libdir}/libqt5keychain.so.*
%files qt5-devel %files qt5-devel
%{_includedir}/qt5keychain/ %{_includedir}/qt5keychain/
%{_libdir}/cmake/Qt5Keychain/ %{_libdir}/cmake/Qt5Keychain/
%{_libdir}/libqt5keychain.so %{_libdir}/libqt5keychain.so
%changelog %changelog
* Sat Jul 23 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.7.0-2
- Fix packaging problems
* Mon May 23 2016 nikos roussos <comzeradd@fedoraproject.org> 0.7.0-1 * Mon May 23 2016 nikos roussos <comzeradd@fedoraproject.org> 0.7.0-1
- update to 0.7.0 - update to 0.7.0

Loading…
Cancel
Save