Name: attica
Version: 0.1.0
Release: 2%{?dist}
Summary: Implementation of the Open Collaboration Services API
Group: Development/Libraries
License: LGPLv2+
URL: http://www.kde.org
#Source0:CMD svn export svn://anonsvn.kde.org/home/kde/tags/attica/%{version} attica-%{version}
#Source0:CMD tar cjf %{_sourcedir}/attica-%{version}.tar.bz2 attica-%{version}
#Source0:CMD rm -rf attica-%{version}
Source0: attica-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake
BuildRequires: qt-devel
BuildRequires: openssl-devel
%description
Attica is a Qt library that implements the Open Collaboration Services
API version 1.4.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
%install
rm -rf %{buildroot}
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING README
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libattica.pc
%changelog
* Mon Dec 7 2009 Lorenzo Villani <lvillani@binaryhelix.net> - 0.1.0-2
- Out of sourcetree build
- Use make install/fast
* Sat Dec 5 2009 lvillani <lvillani@enterprise.binaryhelix.net> 0.1.0-1
- Initial release