/[packages]/cauldron/libqtxdg/current/SPECS/libqtxdg.spec
ViewVC logotype

Contents of /cauldron/libqtxdg/current/SPECS/libqtxdg.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2004517 - (show annotations) (download)
Sun Nov 5 15:36:29 2023 UTC (3 months, 4 weeks ago) by papoteur
File size: 2777 byte(s)
- add lxqt-menu-data as BR (SILENT)
1 %define major 3
2 %define libname %mklibname qt5xdg %{major}
3 %define libloadername %mklibname qt5xdgiconloader %{major}
4 %define devname %mklibname qt5xdg -d
5
6 %define rel 1
7
8 Name: libqtxdg
9 Version: 3.12.0
10 Release: %mkrel %rel
11 Summary: Library providing freedesktop.org specs implementations for Qt
12 License: LGPLv2+
13 Group: System/Libraries
14 URL: https://lxqt-project.org/
15 Source0: https://github.com/lxqt/libqtxdg/releases/download/%{version}/%{name}-%{version}.tar.xz
16
17 BuildRequires: cmake
18 BuildRequires: cmake(lxqt-build-tools)
19 BuildRequires: cmake(lxqt-menu-data)
20 BuildRequires: ninja
21 BuildRequires: magic-devel
22
23 BuildRequires: pkgconfig(Qt5Core)
24 BuildRequires: pkgconfig(Qt5Gui)
25 BuildRequires: pkgconfig(Qt5Widgets)
26 BuildRequires: pkgconfig(Qt5Xml)
27 BuildRequires: pkgconfig(Qt5Help)
28 BuildRequires: pkgconfig(Qt5Test)
29 BuildRequires: pkgconfig(Qt5DBus)
30 BuildRequires: pkgconfig(Qt5Svg)
31
32 BuildRequires: qttools5
33
34 %description
35 Library providing freedesktop.org specs implementations for Qt.
36
37 %files
38 %{_qt5_plugindir}/iconengines/libQt5XdgIconPlugin.so
39 %{_sysconfdir}/xdg/*.conf
40
41 #--------------------------------------------------------------------
42
43 %package -n %{libname}
44 Summary: Library providing freedesktop.org specs implementations for Qt
45 Group: System/Libraries
46
47 Requires: %name = %version-%release
48
49 %description -n %{libname}
50 Library providing freedesktop.org specs implementations for Qt.
51
52 %files -n %{libname}
53 %{_libdir}/libQt5Xdg.so.%{major}{,.*}
54
55 #--------------------------------------------------------------------
56
57 %package -n %{libloadername}
58 Summary: Library providing freedesktop.org specs implementations for Qt
59 Group: System/Libraries
60
61 %description -n %{libloadername}
62 Library providing freedesktop.org specs implementations for Qt.
63
64 %files -n %{libloadername}
65 %{_libdir}/libQt5XdgIconLoader.so.%{major}{,.*}
66
67 #--------------------------------------------------------------------
68
69 %package -n %{devname}
70 Summary: Development files for %{name}
71 Group: Development/C
72 Requires: %libname = %version
73 Requires: %libloadername = %version
74 Provides: %name-devel = %version-%release
75 Provides: lib%name-devel = %version-%release
76
77 %description -n %{devname}
78 Development files (Headers etc.) for %{name}, a library providing
79 freedesktop.org specs implementations for Qt.
80
81 %files -n %{devname}
82 %{_includedir}/*
83 %{_libdir}/libQt5Xdg.so
84 %{_libdir}/libQt5XdgIconLoader.so
85 %{_libdir}/pkgconfig/*.pc
86 %{_datadir}/cmake/qt5xdg
87 %{_datadir}/cmake/qt5xdgiconloader
88
89 #--------------------------------------------------------------------
90
91 %prep
92 %setup -q
93 %autopatch -p1
94
95 %build
96 %cmake_qt5 -DBUILD_TESTS=on
97 %cmake_build
98
99 %install
100 %cmake_install
101

  ViewVC Help
Powered by ViewVC 1.1.30