90 lines
2.5 KiB
RPMSpec
90 lines
2.5 KiB
RPMSpec
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
Name: libmediawiki
|
|
Version: 5.0.0git20170401
|
|
Release: 1mamba
|
|
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
|
|
* Mon Aug 21 2017 Automatic Build System <autodist@mambasoft.it> 5.0.0git20170401-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Oct 06 2016 Automatic Build System <autodist@mambasoft.it> 5.0.0git20160605-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|