Dan Vrátil 005d8dc
Name:           libkscreen
Dan Vrátil 94e3864
Epoch:          1
Dan Vrátil f3bd82a
Version:        1.0.2
Dan Vrátil ab810a1
Release:        3%{?dist}
Dan Vrátil 005d8dc
Summary:        Display configuration library
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
License:        GPLv2+
Dan Vrátil 005d8dc
URL:            https://projects.kde.org/projects/playground/libs/libkscreen
Dan Vrátil 005d8dc
Dan Vrátil f3bd82a
Source0:        http://download.kde.org/stable/libkscreen/%{version}/src/libkscreen-%{version}.tar.xz
Dan Vrátil 005d8dc
Rex Dieter d1abe70
## upstream patches
Rex Dieter d1abe70
Patch0001: 0001-fix-pkgconfig-Version.patch
Dan Vrátil ab810a1
Patch0002: 0002-keep-xrandroutput-cache-up-to-date.patch
Rex Dieter d1abe70
Dan Vrátil 005d8dc
BuildRequires:  kdelibs4-devel
Dan Vrátil 005d8dc
BuildRequires:  libXrandr-devel
Rex Dieter 067bf54
BuildRequires:  qjson-devel >= 0.8.1
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%description
Dan Vrátil 005d8dc
LibKScreen is a library that provides access to current configuration
Dan Vrátil 005d8dc
of connected displays and ways to change the configuration.
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%package        devel
Dan Vrátil 005d8dc
Summary:        Development files for %{name}
Dan Vrátil d548ca6
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%description    devel
Dan Vrátil 005d8dc
The %{name}-devel package contains libraries and header files for
Dan Vrátil 005d8dc
developing applications that use %{name}.
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%prep
Dan Vrátil 005d8dc
%setup -q
Dan Vrátil 005d8dc
Rex Dieter d1abe70
%patch0001 -p1 -b .0001
Dan Vrátil ab810a1
%patch0002 -p1 -b .0002
Rex Dieter d1abe70
Dan Vrátil 005d8dc
%build
Dan Vrátil 005d8dc
mkdir -p %{_target_platform}
Dan Vrátil 005d8dc
pushd %{_target_platform}
Dan Vrátil 005d8dc
%{cmake_kde4} .. 
Dan Vrátil 005d8dc
popd
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
make %{?_smp_mflags} -C %{_target_platform}
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%install
Rex Dieter 067bf54
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
Dan Vrátil 005d8dc
Rex Dieter d1abe70
%check
Rex Dieter d1abe70
# verify pkgconfig version
Rex Dieter d1abe70
export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
Rex Dieter d1abe70
test "$(pkg-config --modversion kscreen)" = "%{version}"
Rex Dieter d1abe70
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%post -p /sbin/ldconfig
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%postun -p /sbin/ldconfig
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%files
Dan Vrátil 005d8dc
%doc COPYING
Rex Dieter d1abe70
%{_kde4_libdir}/libkscreen.so.1*
Rex Dieter 067bf54
%{_kde4_libdir}/kde4/plugins/kscreen/
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%files devel
Rex Dieter 067bf54
%{_includedir}/kscreen/
Rex Dieter 067bf54
%{_kde4_libdir}/libkscreen.so
Rex Dieter 067bf54
%{_kde4_libdir}/cmake/LibKScreen/
Dan Vrátil 005d8dc
%{_kde4_libdir}/pkgconfig/kscreen.pc
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
%changelog
Dan Vrátil ab810a1
* Tue Apr 22 2014 Daniel Vrátil <dvratil@redhat.com> - 1:1.0.2-3
Dan Vrátil ab810a1
- backport upstream crash fix
Dan Vrátil ab810a1
- Resolves: rhbz#998395 rhbz#1004558 rhbz#1016769 rhbz#1023816
Dan Vrátil ab810a1
Rex Dieter d1abe70
* Mon Nov 25 2013 Rex Dieter <rdieter@fedoraproject.org> - 1:1.0.2-2
Rex Dieter d1abe70
- backport pkgconfig fix (verify in %%check)
Rex Dieter d1abe70
- track soname
Rex Dieter d1abe70
- fix changelog date
Rex Dieter d1abe70
Dan Vrátil f3bd82a
* Wed Nov 20 2013 Dan Vrátil <dvratil@redhat.com> - 1:1.0.2-1
Dan Vrátil f3bd82a
 - libkscreen 1.0.2
Dan Vrátil f3bd82a
Dan Vrátil d2b55b6
* Thu Aug 01 2013 Dan Vrátil <dvratil@redhat.com> - 1:1.0.1-1
Dan Vrátil d2b55b6
 - libkscreen 1.0.1
Dan Vrátil d2b55b6
Dan Vrátil dcc63f5
* Mon Jun 17 2013 Dan Vrátil <dvratil@redhat.com> - 1:1.0-1
Dan Vrátil dcc63f5
 - libkscreen 1.0
Dan Vrátil dcc63f5
Dan Vrátil 9e26d1b
* Thu May 02 2013 Dan Vrátil <dvratil@redhat.com> - 1:0.0.92-1
Dan Vrátil 9e26d1b
 - libkscreen 0.0.92
Dan Vrátil 9e26d1b
Rex Dieter d1abe70
* Tue Apr 23 2013 Dan Vrátil <dvratil@redhat.com> - 1:0.0.82.git20130423-1
Dan Vrátil 9e26d1b
 - dev git build
Dan Vrátil 9e26d1b
Dan Vrátil da04cc1
* Wed Mar 27 2013 Dan Vrátil <dvratil@redhat.com> - 1:0.0.81-1
Dan Vrátil da04cc1
 - libkscreen 0.0.81
Dan Vrátil da04cc1
275cb2f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.0.71-3
275cb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
275cb2f
Dan Vrátil c92c690
* Sun Jan 20 2013 Dan Vrátil <dvratil@redhat.com> 1:0.0.71-2
Dan Vrátil d548ca6
 - fix dependency of libkscreen-devel
Dan Vrátil d548ca6
 
Dan Vrátil 94e3864
* Sun Jan 20 2013 Dan Vrátil <dvratil@redhat.com> 1:0.0.71-1
Dan Vrátil 94e3864
 - update to 0.0.71 - first official release
Dan Vrátil 94e3864
 - remove kscreen-console, it's now shipped in kscreen package
Dan Vrátil 94e3864
 
Rex Dieter 067bf54
* Wed Jan 09 2013 Rex Dieter <rdieter@fedoraproject.org> 0.9.0-2.20121228git
Rex Dieter 067bf54
- remove redundant BR's
Rex Dieter 067bf54
- BR: qjson-devel >= 0.8.1
Rex Dieter 067bf54
- fix dir ownership
Rex Dieter 067bf54
Dan Vrátil 005d8dc
* Fri Dec 28 2012 Dan Vrátil <dvratil@redhat.com> 0.9.0-1.20121228git
Dan Vrátil 005d8dc
 - Fixed versioning
Dan Vrátil 005d8dc
 - Added instructions how to retrieve sources
Dan Vrátil 005d8dc
 - Fixed URL
Dan Vrátil 005d8dc
 - Removed 'rm -rf $RPM_BUILD_ROOT'
Dan Vrátil 005d8dc
Dan Vrátil 005d8dc
* Wed Dec 26 2012 Dan Vrátil <dvratil@redhat.com> 20121226gitecc8d1a-1
Dan Vrátil 005d8dc
 - Initial SPEC