]> git.pld-linux.org Git - packages/libglib-testing.git/blob - libglib-testing.spec
- new
[packages/libglib-testing.git] / libglib-testing.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        Test harnesses and mock classes for GLib
6 Summary(pl.UTF-8):      Osprzęt testowy i klasy atrap dla GLiba
7 Name:           libglib-testing
8 Version:        0.1.0
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 #Source0Download: https://gitlab.gnome.org/pwithnall/libglib-testing/-/tags
13 Source0:        https://gitlab.gnome.org/pwithnall/libglib-testing/-/archive/%{version}/%{name}-%{version}.tar.bz2
14 # Source0-md5:  90fd671fc676464c5e67d31a41d70b26
15 URL:            https://gitlab.gnome.org/pwithnall/libglib-testing
16 BuildRequires:  glib2-devel >= 1:2.44
17 BuildRequires:  gtk-doc
18 BuildRequires:  meson >= 0.45.0
19 BuildRequires:  ninja >= 1.5
20 BuildRequires:  pkgconfig
21 BuildRequires:  rpmbuild(macros) >= 1.736
22 Requires:       glib2 >= 1:2.44
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 libglib-testing is a test library providing test harnesses and mock
27 classes which complement the classes provided by GLib. It is intended
28 to be used by any project which uses GLib and which wants to write
29 internal unit tests.
30
31 %description -l pl.UTF-8
32 libglib-testing to biblioteka do testów dostarczająca osprzęt testowy
33 oraz klasy atrap, uzupełniające klasy dostarczane przez GLiba. Celem
34 jest używanie w dowolnych projektach wykorzystujących GLiba, w których
35 mają być napisane wewnętrzne testy jednostkowe.
36
37 %package devel
38 Summary:        Header files for glib-testing library
39 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki glib-testing
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       glib2-devel >= 1:2.44
43
44 %description devel
45 Header files for glib-testing library.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki glib-testing.
49
50 %package static
51 Summary:        Static glib-testing library
52 Summary(pl.UTF-8):      Statyczna biblioteka glib-testing
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static glib-testing library.
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka glib-testing.
61
62 %package apidocs
63 Summary:        API documentation for glib-testing library
64 Summary(pl.UTF-8):      Dokumentacja API biblioteki glib-testing
65 Group:          Documentation
66 %if "%{_rpmversion}" >= "4.6"
67 BuildArch:      noarch
68 %endif
69
70 %description apidocs
71 API documentation for glib-testing library.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki glib-testing.
75
76 %prep
77 %setup -q
78
79 %build
80 %meson build \
81         %{!?with_static_libs:--default-library=shared}
82
83 %ninja_build -C build
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %ninja_install -C build
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(644,root,root,755)
98 %doc NEWS README
99 %attr(755,root,root) %{_libdir}/libglib-testing-0.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libglib-testing-0.so.0
101
102 %files devel
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libglib-testing-0.so
105 %{_includedir}/glib-testing-0
106 %{_pkgconfigdir}/glib-testing-0.pc
107
108 %if %{with static_libs}
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/libglib-testing-0.a
112 %endif
113
114 %files apidocs
115 %defattr(644,root,root,755)
116 %{_gtkdocdir}/libglib-testing
This page took 0.065914 seconds and 3 git commands to generate.