libhandy/libhandy.spec

89 lines
2.6 KiB
RPMSpec
Raw Normal View History

2022-04-13 12:04:21 +08:00
%global majmin %(echo %{version} | cut -d . -f -2)
2023-02-01 17:24:34 +08:00
2020-11-05 19:25:41 +08:00
Name: libhandy
2023-02-01 17:24:34 +08:00
Version: 1.8.0
2020-11-05 19:25:41 +08:00
Release: 1
Summary: Library with GTK+ widgets for mobile phones
License: LGPLv2+
URL: https://gitlab.gnome.org/GNOME/libhandy
2022-04-13 12:04:21 +08:00
Source0: https://download.gnome.org/sources/libhandy/%{majmin}/libhandy-%{version}.tar.xz
2023-02-01 17:24:34 +08:00
BuildRequires: gcc meson vala gi-docgen
2022-04-13 12:04:21 +08:00
BuildRequires: pkgconfig(gio-2.0) pkgconfig(gladeui-2.0) pkgconfig(glib-2.0) >= 2.44
BuildRequires: pkgconfig(gmodule-2.0) pkgconfig(gobject-introspection-1.0) pkgconfig(gtk+-3.0) >= 3.24.1
BuildRequires: xorg-x11-server-Xvfb
2023-02-01 17:24:34 +08:00
Obsoletes: libhandy1 < 1.1.90-2
2022-04-13 12:04:21 +08:00
Conflicts: libhandy1 < 1.1.90-2
Provides: libhandy1 = %{version}-%{release}
Provides: libhandy1%{?_isa} = %{version}-%{release}
2020-11-05 19:25:41 +08:00
%description
libhandy provides GTK+ widgets and GObjects to ease developing
applications for mobile phones.
2022-04-13 12:04:21 +08:00
%package devel
2020-11-05 19:25:41 +08:00
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2023-02-01 17:24:34 +08:00
Obsoletes: libhandy1-devel < 1.1.90-2
2022-04-13 12:04:21 +08:00
Conflicts: libhandy1-devel < 1.1.90-2
Provides: libhandy1-devel = %{version}-%{release}
Provides: libhandy1-devel%{?_isa} = %{version}-%{release}
%description devel
2020-11-05 19:25:41 +08:00
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n libhandy-%{version}
2020-11-05 19:25:41 +08:00
%build
2022-04-13 12:04:21 +08:00
%meson -Dgtk_doc=true -Dexamples=false \
-Dtests=true
2020-11-05 19:25:41 +08:00
%meson_build
%install
%meson_install
2022-04-13 12:04:21 +08:00
%find_lang libhandy
2022-04-13 12:04:21 +08:00
%check
# No parallel test runs to try to avoid overwhellming Xvfb on some platforms
%define _smp_build_ncpus 1
%{shrink:xvfb-run -w 10 -d %meson_test}
%files -f libhandy.lang
2020-11-05 19:25:41 +08:00
%license COPYING
2023-02-01 17:24:34 +08:00
%doc AUTHORS HACKING.md NEWS README.md
2020-11-05 19:25:41 +08:00
%{_libdir}/girepository-1.0/
%{_libdir}/libhandy-1.so.0
2020-11-05 19:25:41 +08:00
%files devel
%{_includedir}/libhandy-1/
2020-11-05 19:25:41 +08:00
%{_libdir}/glade/
%{_libdir}/libhandy-1.so
%{_libdir}/pkgconfig/libhandy-1.pc
2020-11-05 19:25:41 +08:00
%{_datadir}/gir-1.0/
%{_datadir}/glade/
2022-04-13 12:04:21 +08:00
%doc %{_datadir}/doc/libhandy-1/
2020-11-05 19:25:41 +08:00
%{_datadir}/vala/
2022-04-13 12:04:21 +08:00
2020-11-05 19:25:41 +08:00
%changelog
2023-02-01 17:24:34 +08:00
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 1.8.0-1
- Update to 1.8.0
2022-06-08 18:42:14 +08:00
* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 1.6.2-1
- Update to 1.6.2
2022-04-13 12:04:21 +08:00
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 1.6.1-1
- Update to 1.6.1
* Fri May 28 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 1.2.0-1
- Upgrade to 1.2.0
- Update Version, URL, Source0. delete Patch0. update stage 'prep'
- Add 'find_lang', update stage 'files'
2020-11-05 19:25:41 +08:00
* Thu Nov 5 2020 Liu wei bo <liuweibo10@huawei.com> - 0.0.13-1
- package init