File mingw64-qtkeychain.spec of Package mingw64-qtkeychain

%define __strip %{_mingw64_strip}
%define __objdump %{_mingw64_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw64_findrequires}
%define __find_provides %{_mingw64_findprovides}
%define __os_install_post %{_mingw64_debug_install_post} %{_mingw64_install_post}

BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc-c++, mingw64-cross-pkg-config

BuildRequires:  cmake
BuildRequires:  mingw64-libqt4-filesystem
BuildRequires:  mingw64-libqt4-devel

%define _basename qtkeychain

Name:           mingw64-%{_basename}
License:        BSD
Version:        0.20131102
Release:        0
Source0:        %{_basename}-%{version}.tar.bz2
Patch0:         no_create_translations.diff 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://github.com/frankosterfeld/qtkeychain

BuildArch:      noarch
#!BuildIgnore: post-build-checks

Group:          Development/Libraries/C and C++
Summary:        This is qtkeychain
%description
This is qtkeychain.

%package devel
Group:          Development/Libraries/C and C++
Summary:        This qtkeychain
%description devel
This is qtkeychain.

%{_mingw64_debug_package}

%prep
%setup -q -n %{_basename}-%{version}
%patch0 -p1

%build
rm -rf CMakeCache.txt
mkdir -p build
pushd build/
%{_mingw64_cmake_qt4} \
-DCMAKE_INSTALL_BINDIR:PATH=%{_mingw64_bindir} \
..

%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

popd
%install
pushd build
make DESTDIR=%{buildroot} install
popd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_mingw64_bindir}/libqtkeychain.dll
%{_mingw64_bindir}/../share/qt4/translations/qtkeychain_de.qm

%files devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/libqtkeychain.dll.a
%{_mingw64_libdir}/cmake/QtKeychain
%{_mingw64_includedir}/qtkeychain/

%changelog
openSUSE Build Service is sponsored by