98 lines
2.8 KiB
RPMSpec
98 lines
2.8 KiB
RPMSpec
|
%define majver %(echo %version | cut -d. -f1-2)
|
||
|
|
||
|
Name: kitinerary
|
||
|
Version: 18.08.0
|
||
|
Release: 1mamba
|
||
|
Summary: KDE Frameworks 5 library containing itinerary data model and itinerary extraction code
|
||
|
Group: System/Libraries
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://www.kde.org
|
||
|
Source: https://download.kde.org/stable/applications/%{version}/src/kitinerary-%{version}.tar.xz
|
||
|
# Source: http://download.kde.org/stable/frameworks/%{majver}/...-%{version}.tar.xz
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libkcalcore-devel
|
||
|
BuildRequires: libkcontacts-devel
|
||
|
BuildRequires: libkcoreaddons-devel
|
||
|
BuildRequires: libki18n-devel
|
||
|
BuildRequires: libkmime-devel
|
||
|
BuildRequires: libkpkpass-devel
|
||
|
BuildRequires: libpoppler-devel
|
||
|
BuildRequires: libqt5-devel
|
||
|
BuildRequires: libstdc++6-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: cmake
|
||
|
BuildRequires: rpm-macros-kde5
|
||
|
BuildRequires: extra-cmake-modules
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
A library containing itinerary data model and itinerary extraction code.
|
||
|
|
||
|
%package -n lib%{name}
|
||
|
Group: System/Libraries
|
||
|
Summary: KDE Frameworks 5 library containing itinerary data model and itinerary extraction code
|
||
|
|
||
|
%description -n lib%{name}
|
||
|
A library containing itinerary data model and itinerary extraction code.
|
||
|
|
||
|
%package -n lib%{name}-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Development files for %{name}
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description -n lib%{name}-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
|
||
|
|
||
|
%find_lang %{name}5_qt --with-qt --with-man --all-name || touch %{name}5_qt.lang
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n lib%{name}
|
||
|
/sbin/ldconfig
|
||
|
exit 0
|
||
|
|
||
|
%postun -n lib%{name}
|
||
|
/sbin/ldconfig
|
||
|
exit 0
|
||
|
|
||
|
%files -n lib%{name} -f %{name}5_qt.lang
|
||
|
%defattr(-,root,root)
|
||
|
%{_sysconfdir}/xdg/org_kde_kitinerary.categories
|
||
|
%{_libdir}/libKPimItinerary.so.*
|
||
|
%doc COPYING.LIB
|
||
|
|
||
|
%files -n lib%{name}-devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_includedir}/KPim/KItinerary
|
||
|
%{_includedir}/KPim/KItinerary/*
|
||
|
%dir %{_includedir}/KPim/kitinerary
|
||
|
%{_includedir}/KPim/kitinerary/*
|
||
|
%dir %{_libdir}/cmake/KPimItinerary
|
||
|
%{_libdir}/cmake/KPimItinerary/KPimItinerary*.cmake
|
||
|
%{_libdir}/libKPimItinerary.so
|
||
|
|
||
|
%changelog
|
||
|
* Sun Aug 26 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 18.08.0-1mamba
|
||
|
- package created using the webbuild interface
|