File plasmoid-publictransport.spec of Package plasmoid-publictransport

#
# spec file for package plasmoid-publictransport
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 tkche 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:             plasmoid-publictransport
Version:          0.11.beta
Release:          1
%define sonum     11
License:          GPL-2.0+
Summary:          Public transport plasmoid
Url:              http://www.kde-look.org/content/show.php/PublicTransport?content=106175
Group:            System/GUI/KDE
Source0:          %{name}-%{version}.tar.gz
Source10:         plasmoid-publictransport-0.10-rpmlintrc
BuildRoot:        %{_tmppath}/%{name}-%{version}-build
BuildRequires:    kdebase4-workspace-devel >= 4.6
BuildRequires:    kwebkitpart
BuildRequires:    marble-devel
BuildRequires:    protobuf-devel
Recommends:	  plasmoid-graphicaltimetableline

%kde4_runtime_requires

%description
The main public transport Plasma applet showing
departures/arrivals for given stops or journeys to/from another stop.
It gets it's information by parsing an HTML file from the web.
It can also be put into a panel and show the information in
a popup (Plasma::PopupApplet).

%package -n libpublictransporthelper%{sonum}
Summary:          Libraries needed by public transport plasmoids
Provides:         libpublictransporthelper = %{version}
Obsoletes:        libpublictransporthelper < %{version}
Requires:         kdebase4-workspace
Provides:         timetablemate = %{version}
Obsoletes:        timetablemate < %{version}
%kde4_runtime_requires

%description -n libpublictransporthelper%{sonum}
This package provides libraries, data engines, and icons needed by all
public transport plasma applets.

%package -n libpublictransporthelper-devel
Summary:          Development files for %{name}
Group:            Development/Libraries/KDE
Requires:         libpublictransporthelper%{sonum} = %{version}

%description -n libpublictransporthelper-devel
This package provides development libraries and headers needed to build
software using %{name}

%package -n plasmoid-flights
Summary:          Flight times plasmoid
%kde4_runtime_requires

%description -n plasmoid-flights
A simple Plasma applet showing flight departures from a given airport.

%package -n plasmoid-graphicaltimetableline
Summary:          Graphical public transport time table plasmoid
%kde4_runtime_requires

%description -n plasmoid-graphicaltimetableline
A plasma applet showing a timetable for public transport at a given
stop with a street on which vehicles are moving.

%package -n publictransport-runner
Summary:          Public transport runner
%kde4_runtime_requires

%description -n publictransport-runner
A runner that shows publictransport departures/arrivals/journeys.

%prep
%setup -q -c %{name}-%{version}

%build
%cmake_kde4 -d build -- -DINSTALL_ALL=ON
%make_jobs

%install
  cd build
  %make_install
  %create_subdir_filelist -d libpublictransporthelper -v devel
  %create_subdir_filelist -d engine-openstreetmap -f libpublictransporthelper -v devel
  %create_subdir_filelist -d engine -f libpublictransporthelper -v devel
  %create_subdir_filelist -d icons -f libpublictransporthelper
  %create_subdir_filelist -d applet
  %create_subdir_filelist -d applet-flights
  %create_subdir_filelist -d applet-graphicaltimetableline
  %create_subdir_filelist -d runner
  %kde_post_install

%post   -n libpublictransporthelper%{sonum} -p /sbin/ldconfig
%postun -n libpublictransporthelper%{sonum} -p /sbin/ldconfig

%files -n libpublictransporthelper%{sonum} -f filelists/libpublictransporthelper
%defattr(-,root,root,-)
%config %{_kde4_configdir}/publictransport.knsrc
%dir %{_kde4_appsdir}/plasma_engine_publictransport/
%dir %{_kde4_appsdir}/plasma_engine_publictransport/serviceProviders/

%files -n libpublictransporthelper-devel -f filelists/devel
%defattr(-,root,root,-)
%dir %{_kde4_includedir}/publictransporthelper/

%files -f filelists/applet
%defattr(-,root,root,-)
%dir %{_kde4_appsdir}/plasma_applet_publictransport/

%files -n plasmoid-flights -f filelists/applet-flights
%defattr(-,root,root,-)

%files -n plasmoid-graphicaltimetableline -f filelists/applet-graphicaltimetableline
%defattr(-,root,root,-)
%dir %{_kde4_appsdir}/plasma_applet_graphicaltimetableline/

%files -n publictransport-runner -f filelists/runner
%defattr(-,root,root,-)

%changelog
openSUSE Build Service is sponsored by