Blob Blame History Raw

%define snap    20121228git

Name:           libkscreen
Version:        0.9.0
Release:        1.%{snap}%{?dist}
Summary:        Display configuration library

License:        GPLv2+
URL:            https://projects.kde.org/projects/playground/libs/libkscreen

# This is a git snapshot, use following commands to generate the tarball:
#  git clone git://anongit.kde.org/libkscreen
#  git archive --prefix=libkscreen-%{version}/ master | gzip > ../libkscreen-%{version}-%{snap}.tar.gz
Source0:        libkscreen-%{version}-%{snap}.tar.gz

BuildRequires:  cmake
BuildRequires:  qt4-devel
BuildRequires:  kdelibs4-devel
BuildRequires:  libXrandr-devel
BuildRequires:  qjson-devel

%description
LibKScreen is a library that provides access to current configuration
of connected displays and ways to change the configuration.

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{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_kde4} .. 
popd

make %{?_smp_mflags} -C %{_target_platform}


%install
%make_install -C %{_target_platform}
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%doc COPYING
%{_kde4_bindir}/kscreen-console
%{_kde4_libdir}/*.so.*
%{_kde4_libdir}/kde4/plugins/kscreen/*.so

%files devel
%{_includedir}/*
%{_kde4_libdir}/*.so
%{_kde4_libdir}/cmake/LibKScreen/*.cmake
%{_kde4_libdir}/pkgconfig/kscreen.pc


%changelog
* Fri Dec 28 2012 Dan Vrátil <dvratil@redhat.com> 0.9.0-1.20121228git
 - Fixed versioning
 - Added instructions how to retrieve sources
 - Fixed URL
 - Removed 'rm -rf $RPM_BUILD_ROOT'

* Wed Dec 26 2012 Dan Vrátil <dvratil@redhat.com> 20121226gitecc8d1a-1
 - Initial SPEC