diff --git a/libpcscxx.spec.in b/libpcscxx.spec.in index a248436..bfb263e 100644 --- a/libpcscxx.spec.in +++ b/libpcscxx.spec.in @@ -6,8 +6,13 @@ License: LGPL Group: Development/Libraries/C++ URL: https://dev.marc.waeckerlin.org/projects/@PACKAGENAME@ Source0: %{name}-%{version}.tar.gz -BuildRequires: subversion libcppunit-devel gcc-c++ doxygen graphviz texlive automake autoconf libtool make libopenssl-devel pcsc-lite-devel boost-devel +BuildRequires: subversion gcc-c++ doxygen graphviz texlive automake autoconf libtool make libopenssl-devel pcsc-lite-devel boost-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} +BuildRequires: cppunit-devel +%elseif 0%{?suse_version} || 0%{?sles_version} +BuildRequires: libcppunit-devel +%endif %description