%define SYSINFO_DISTRO vine

Name:           kio_sysinfo
Summary:        KIO slave which shows basic system information
Version:        20090930
Release:        4%{?_dist_release}

Group:          System Environment/Libraries
License:        GPLv2+
URL:            http://www.kde.org/

Source0:        http://ktown.kde.org/~lukas/kio_sysinfo/%{name}-%{version}.tar.bz2

BuildRoot:      %{_tmppath}/%{name}-%{version}-root
BuildRequires:  cmake
BuildRequires:  dbus-devel
BuildRequires:  gettext
BuildRequires:  giflib-devel
BuildRequires:  kdelibs4-devel
BuildRequires:  pcre-devel
BuildRequires:  soprano-devel

%description
This is a sysinfo:/ KIO slave, which shows basic system information often 
requested by users.


%prep
%setup -q

%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake \
    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
    -DSYSINFO_DISTRO:STRING=%{SYSINFO_DISTRO} ..
popd

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


%install
rm -rf %{buildroot}
mkdir %{buildroot}
make install DESTDIR=%{buildroot} -C %{_target_platform}

%find_lang kio_sysinfo

%clean
rm -rf %{buildroot}


%files -f kio_sysinfo.lang
%defattr(-,root,root,-)
%doc README COPYING
%{_libdir}/kde4/kio_sysinfo.so
%{_libdir}/kde4/libksysinfopart.so
%{_datadir}/applications/kde4/kfmclient_sysinfo.desktop
%{_datadir}/kde4/apps/sysinfo/about/
%{_datadir}/kde4/services/ksysinfopart.desktop
%{_datadir}/kde4/services/sysinfo.protocol
%{_datadir}/mime/packages/x-sysinfo.xml


%changelog
* Sun Jan 11 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 20090930-4
- rebuilt on current VineSeed
- fixed spec file not to load /etc/profile.d/qt4.sh

* Sat Jun  2 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 20090930-3
- rebuilt with rpm-4.8.1-3
- added BR: soprano-devel

* Sat Jul  3 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 20090930-2
- BR: kdelibs4-devel instead of kdelibs-devel

* Sat Feb 13 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 20090930-1
- new upstream release

* Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 20090620-3
- Initial build for Vine Linux

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090620-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Sat Jun 20 2009 Lukáš Tinkl <ltinkl@redhat.com> - 20090620-1
- new upstream version
- drop patches
- added battery status
- updated translations

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090216-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon Feb 16 2009 Jaroslav Reznik <jreznik@redhat.com> 20090216-2
- gettext requires
- conversion patch

* Mon Feb 16 2009 Jaroslav Reznik <jreznik@redhat.com> 20090216-1
- owns about directory
- new version

* Wed Nov 21 2008 Jaroslav Reznik <jreznik@redhat.com> 20081121-1
- initial package
- use SYSINFO_DISTRO
