]> git.pld-linux.org Git - packages/libhandy.git/blob - libhandy.spec
d1ce0cb5583e2760303c23759dd7bda7b8e3e779
[packages/libhandy.git] / libhandy.spec
1 # Conditional build:
2 %bcond_without  apidocs         # do not build and package API docs
3 %bcond_without  vala            # do not build Vala API
4
5 Summary:        Library with GTK+ widgets for mobile phones
6 Summary(pl.UTF-8):      Biblioteka z kontrolkami GTK+ dla telefonów komórkowych
7 Name:           libhandy
8 Version:        0.0.7
9 Release:        1
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        https://source.puri.sm/Librem5/libhandy/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
13 # Source0-md5:  3319a80b6979d2f2bf8118f7c3677955
14 URL:            https://source.puri.sm/Librem5/libhandy/
15 BuildRequires:  gcc
16 BuildRequires:  glib2-devel
17 BuildRequires:  gobject-introspection-devel
18 BuildRequires:  gtk+3-devel
19 BuildRequires:  gtk-doc
20 BuildRequires:  meson
21 BuildRequires:  ninja
22 %{?with_vala:BuildRequires:     vala >= 2:0.27.0}
23
24 %description
25 libhandy provides GTK+ widgets and GObjects to ease developing
26 applications for mobile phones.
27
28 %description -l pl.UTF-8
29 libhandy dostarcza kontroliki GTK+ i GObjects upraszczając tworzenie
30 aplikacji dla telefonów komórkowych
31
32 %package devel
33 Summary:        Header files for libhandy library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libhandy
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 Header files for libhandy library
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki libhandy
43
44 %package apidocs
45 Summary:        API documentation for libhandy library
46 Summary(pl.UTF-8):      Dokumentacja API biblioteki libhandy
47 Group:          Documentation
48 %if "%{_rpmversion}" >= "5"
49 BuildArch:      noarch
50 %endif
51
52 %description apidocs
53 API documentation for libhandy library.
54
55 %description apidocs -l pl.UTF-8
56 Dokumentacja API biblioteki libhandy
57
58 %package -n vala-libhandy
59 Summary:        Vala API for libhandy libraries
60 Summary(pl.UTF-8):      API języka Vala do bibliotek libhandy
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63 Requires:       vala >= 2:0.16.0
64 %if "%{_rpmversion}" >= "5"
65 BuildArch:      noarch
66 %endif
67
68 %description -n vala-libhandy
69 Vala API for libhandy library.
70
71 %description -n vala-libhandy  -l pl.UTF-8
72 API języka VALA do biblioteki libhandy.
73
74 %prep
75 %setup -q -n %{name}-v%{version}
76
77 %build
78 %meson  %{?with_apidocs:-Dgtk_doc=true} \
79         %{!?with_vala:-Dvapi=false} \
80         -Dexamples=false build
81
82 %ninja_build -C build
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 %ninja_install -C build
87
88 %files
89 %defattr(644,root,root,755)
90 %doc COPYING
91 %doc README.md
92 %{_libdir}/girepository-1.0/
93 %{_libdir}/libhandy-0.0.so.0*
94
95 %files devel
96 %defattr(644,root,root,755)
97 %{_includedir}/libhandy-0.0/
98 %{_libdir}/libhandy-0.0.so
99 %{_pkgconfigdir}/libhandy-0.0.pc
100 %{_datadir}/gir-1.0/
101
102 %if %{with apidocs}
103 %files apidocs
104 %defattr(644,root,root,755)
105 %{_gtkdocdir}/libhandy
106 %endif
107
108 %if %{with vala}
109 %files -n vala-libhandy
110 %defattr(644,root,root,755)
111 %{_datadir}/vala/vapi/libhandy-0.0.deps
112 %{_datadir}/vala/vapi/libhandy-0.0.vapi
113 %endif
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
This page took 0.048743 seconds and 2 git commands to generate.