Debian Codegraph @

rpm/dde-qt-dbus-factory.spec

raw
1 %global soname dframeworkdbus
2 %global repo dde-qt-dbus-factory
3
4 %if 0%{?fedora}
5 Name: deepin-qt-dbus-factory
6 %else
7 Name: dde-qt-dbus-factory
8 %endif
9 Version: 5.3.0.20
10 Release: 1%{?fedora:%dist}
11 Summary: A repository stores auto-generated Qt5 dbus code
12 # The entire source code is GPLv3+ except
13 # libdframeworkdbus/qtdbusextended/ which is LGPLv2+
14 License: GPLv3+ and LGPLv2+
15 %if 0%{?fedora}
16 URL: https://github.com/linuxdeepin/dde-qt-dbus-factory
17 Source0: %{url}/archive/%{version}/%{repo}-%{version}.tar.gz
18 %else
19 URL: http://shuttle.corp.deepin.com/cache/repos/eagle/release-candidate/56qX566h6IGU6LCD5rWL6K-V6aqM6K-BMDUyMTQ5Mg/pool/main/d/dde-qt-dbus-factory/
20 Source0: %{name}_%{version}.orig.tar.xz
21 %endif
22
23 BuildRequires: python3
24 BuildRequires: pkgconfig(gl)
25 BuildRequires: pkgconfig(Qt5Core)
26 BuildRequires: pkgconfig(Qt5DBus)
27 BuildRequires: pkgconfig(Qt5Gui)
28 %if 0%{?fedora}
29 BuildRequires: qt5-qtbase-private-devel
30 %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
31 %endif
32
33 %description
34 A repository stores auto-generated Qt5 dbus code.
35
36 %package devel
37 Summary: Development package for %{name}
38 Requires: %{name}%{?_isa} = %{version}-%{release}
39 Requires: cmake-filesystem
40
41 %description devel
42 Header files and libraries for %{name}.
43
44 %prep
45 %autosetup -p1 -n %{repo}-%{version}
46 sed -i "s/env python$/env python3/g" libdframeworkdbus/generate_code.py
47 sed -i "s/python/python3/g" libdframeworkdbus/libdframeworkdbus.pro
48
49 %build
50 %qmake_qt5 LIB_INSTALL_DIR=%{_libdir}
51 %make_build
52
53 %install
54 %make_install INSTALL_ROOT=%{buildroot}
55
56 %files
57 %doc README.md CHANGELOG.md technology-overview.md
58 %license LICENSE
59 %{_libdir}/lib%{soname}.so.2*
60
61 %files devel
62 %{_includedir}/lib%{soname}-2.0/
63 %{_libdir}/pkgconfig/%{soname}.pc
64 %{_libdir}/lib%{soname}.so
65 %{_libdir}/cmake/DFrameworkdbus/
66
67 %changelog
68 * Thu Jun 09 2020 uoser <[email protected]> - 5.2.0.2-1
69 - Update to 5.2.0.2