2024-01-06 05:02:53 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
|
|
|
|
Name: libmediawiki
|
2024-01-06 05:02:53 +01:00
|
|
|
Version: 5.0.0.20161002git
|
|
|
|
Release: 2mamba
|
2024-01-06 05:02:53 +01:00
|
|
|
Summary: KDE Frameworks 5 framework that provides accecss to the API of MediaWiki sites
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.kde.org
|
|
|
|
## GITSOURCE git://anongit.kde.org/libmediawiki.git master
|
|
|
|
Source: git://anongit.kde.org/libmediawiki.git/master/libmediawiki-%{version}.tar.bz2
|
|
|
|
# Source: http://download.kde.org/stable/frameworks/%{majver}/...-%{version}.tar.xz
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libkcoreaddons-devel
|
|
|
|
BuildRequires: libqt5-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: rpm-macros-kde5
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
This framework provides accecss to the API of MediaWiki sites.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kde5 -d build
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_kde5_libdir}/libKF5MediaWiki.so.*
|
|
|
|
%doc AUTHORS COPYING COPYING.LIB
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_kde5_includedir}/MediaWiki
|
|
|
|
%{_kde5_includedir}/MediaWiki/*
|
|
|
|
%{_kde5_includedir}/mediawiki_version.h
|
|
|
|
%dir %{_kde5_libdir}/cmake/KF5MediaWiki
|
|
|
|
%{_kde5_libdir}/cmake/KF5MediaWiki/KF5MediaWiki*.cmake
|
|
|
|
%{_kde5_libdir}/libKF5MediaWiki.so
|
|
|
|
%{_libdir}/qt5/mkspecs/modules/qt_MediaWiki.pri
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Tue Oct 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0.20161002git-2mamba
|
|
|
|
- fix requirement in devel package
|
|
|
|
|
|
|
|
* Sun Oct 02 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0.20161002git-1mamba
|
|
|
|
- package created using the webbuild interface
|