File broken.spec of Package broken-old

# These macros are not present on the target distribution and are provided explicitly here
%define cmake(d:) \
  export CFLAGS=$RPM_OPT_FLAGS \
  export CXXFLAGS=$RPM_OPT_FLAGS \
  export LDFLAGS="-Wl,-Bsymbolic-functions $LDFLAGS" \
  _cmake_libsuffix=$(echo %_lib | cut -b4-) \
  bdir=. \
  %{-d:dir=%{-d*} \
  mkdir $dir \
  cd $dir \
  bdir=.. } \
  cmake -DCMAKE_SKIP_RPATH=ON \\\
      -DCMAKE_INSTALL_PREFIX=%{_prefix} \\\
      -DLIB_SUFFIX="$_cmake_libsuffix" \\\
       $bdir %* \
%{nil}
%define make_jobs %{__make} %{?_smp_mflags} VERBOSE=1

# Generated by kde-obs-generator version 0.3.2
#
# Copyright (c) 2010 Lubos Lunak <llunak@novell.com>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# norootforbuild


Name:           broken
BuildRequires:  cmake gcc-c++
License:        GPL
Url:            none
Group:          Development/Libraries/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Testing broken library
Version:        1.0
Release:        1
Source:         broken-%{version}.tar.gz
Source5:        %{name}-rpmlintrc

%description
Test for ABI checks

Author(s):
  Lubos Lunak <l.lunak@suse.cz> 


%prep
%setup -n broken-%{version} -q

%build
  %cmake -d build
  %make_jobs

%install
  %makeinstall -C build

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/libbroken.so.*

%package devel
License:        GPL
Group:          Development/Libraries/Other
Summary:        Testing broken library
Requires:       %{name} = %{version} gcc-c++

%description devel
This package contains the development files for package broken.

Author(s):
  Lubos Lunak <l.lunak@suse.cz> 

%files devel
%defattr(-,root,root)
%{_libdir}/libbroken.so
%{_includedir}/broken.h

%changelog
openSUSE Build Service is sponsored by