Init package
This commit is contained in:
parent
11e1b55062
commit
0c65b42a78
79
kf5-prison.spec
Normal file
79
kf5-prison.spec
Normal file
@ -0,0 +1,79 @@
|
||||
%undefine __cmake_in_source_build
|
||||
%global framework prison
|
||||
|
||||
Name: kf5-%{framework}
|
||||
Summary: KDE Frameworks 5 Tier 1 barcode library
|
||||
Version: 5.97.0
|
||||
Release: 1
|
||||
|
||||
License: BSD
|
||||
URL: https://invent.kde.org/frameworks/%{framework}
|
||||
|
||||
%global majmin %(echo %{version} | cut -d. -f1-2)
|
||||
%global revision %(echo %{version} | cut -d. -f3)
|
||||
%if %{revision} >= 50
|
||||
%global stable unstable
|
||||
%else
|
||||
%global stable stable
|
||||
%endif
|
||||
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: extra-cmake-modules >= %{majmin}
|
||||
BuildRequires: kf5-rpm-macros >= %{majmin}
|
||||
|
||||
BuildRequires: pkgconfig(Qt5Gui)
|
||||
BuildRequires: pkgconfig(Qt5Quick)
|
||||
|
||||
BuildRequires: pkgconfig(libdmtx)
|
||||
BuildRequires: pkgconfig(libqrencode)
|
||||
|
||||
Requires: kf5-filesystem >= %{majmin}
|
||||
|
||||
%description
|
||||
Prison is a Qt-based barcode abstraction layer/library that provides
|
||||
an uniform access to generation of barcodes with data.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{framework}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%{cmake_kf5} ..
|
||||
popd
|
||||
%make_build -C %{_target_platform}
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc README*
|
||||
%license LICENSES/*.txt
|
||||
%{_kf5_datadir}/qlogging-categories5/%{framework}.*
|
||||
%{_kf5_libdir}/libKF5Prison.so.5*
|
||||
%{_kf5_qmldir}/org/kde/prison/
|
||||
|
||||
%files devel
|
||||
%{_kf5_includedir}/Prison/
|
||||
%{_kf5_libdir}/libKF5Prison.so
|
||||
%{_kf5_libdir}/cmake/KF5Prison/
|
||||
%{_kf5_archdatadir}/mkspecs/modules/qt_Prison.pri
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 5.97.0-1
|
||||
- Init package (Thanks to fedora team)
|
||||
4
kf5-prison.yaml
Normal file
4
kf5-prison.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/prison
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
BIN
prison-5.97.0.tar.xz
Normal file
BIN
prison-5.97.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user