]> git.pld-linux.org Git - packages/gupnp.git/blame - gupnp.spec
- unconditional noarch subpackages
[packages/gupnp.git] / gupnp.spec
CommitLineData
fa8d29b7
JB
1#
2# Conditional build:
3%bcond_without vala # Vala API
ce2eaf00 4
ec0eb07c
JB
5Summary: UPnP library based on GObject and libsoup
6Summary(pl.UTF-8): Biblioteka UPnP oparta na bibliotekach GObject i libsoup
aad1ecd9 7Name: gupnp
15b1a2f7 8# note: 1.2.x is stable, 1.3.x unstable
2915b4a6 9Version: 1.2.4
67768090 10Release: 1
3c551657 11License: LGPL v2+
aad1ecd9 12Group: Libraries
15b1a2f7 13Source0: http://ftp.gnome.org/pub/GNOME/sources/gupnp/1.2/%{name}-%{version}.tar.xz
2915b4a6 14# Source0-md5: 7c9c7cd80e36d9fb1e5b0267571fc17d
3bbf163e 15URL: https://wiki.gnome.org/Projects/GUPnP
63e87f6a 16BuildRequires: docbook-dtd412-xml
17BuildRequires: docbook-dtd44-xml
15b1a2f7 18BuildRequires: glib2-devel >= 1:2.58
ff38dd76 19BuildRequires: gobject-introspection-devel >= 1.36.0
3bbf163e 20BuildRequires: gssdp-devel >= 1.2.3
2c1151c3 21BuildRequires: gtk-doc >= 1.14
7ce3b8b9 22BuildRequires: libsoup-devel >= 2.48.0
3c551657 23BuildRequires: libuuid-devel >= 1.36
6705dc39 24BuildRequires: libxml2-devel >= 1:2.6.30
43309f65 25BuildRequires: meson >= 0.48.0
15b1a2f7 26BuildRequires: ninja >= 1.5
3c551657 27BuildRequires: pkgconfig
63e87f6a 28BuildRequires: rpm-pythonprov
15b1a2f7 29BuildRequires: rpmbuild(macros) >= 1.736
204e4a43 30BuildRequires: sed >= 4.0
446a531e 31BuildRequires: tar >= 1:1.22
ff38dd76 32%{?with_vala:BuildRequires: vala >= 2:0.20}
3bbf163e 33%{?with_vala:BuildRequires: vala-gssdp >= 1.2.3}
446a531e 34BuildRequires: xz
15b1a2f7 35Requires: glib2 >= 1:2.58
3bbf163e 36Requires: gssdp >= 1.2.3
7ce3b8b9 37Requires: libsoup >= 2.48.0
8d14f33e 38Requires: libuuid >= 1.36
aad1ecd9 39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42GUPnP is an object-oriented open source framework for creating UPnP
43devices and control points, written in C using GObject and libsoup.
44The GUPnP API is intended to be easy to use, efficient and flexible.
45
3c551657
JB
46%description -l pl.UTF-8
47GUPnp to zorientowany obiektowo, mający otwarte źródła szkielet do
48tworzenia urządzeń i punktów sterujących UPnP, napisany w C z użyciem
49bibliotek GObject i libsoup. API GUPnp ma być łatwe w użyciu, wydajne
50i elastyczne.
51
aad1ecd9 52%package devel
53Summary: Header files for gupnp
54Summary(pl.UTF-8): Pliki nagłówkowe gupnp
55Group: Development/Libraries
56Requires: %{name} = %{version}-%{release}
15b1a2f7 57Requires: glib2-devel >= 1:2.58
3bbf163e 58Requires: gssdp-devel >= 1.2.3
7ce3b8b9 59Requires: libsoup-devel >= 2.48.0
3c551657 60Requires: libuuid-devel >= 1.36
6705dc39 61Requires: libxml2-devel >= 1:2.6.30
aad1ecd9 62
63%description devel
64This package contains header files for the Linux SDK for UPnP Devices
65(gupnp).
66
67%description devel -l pl.UTF-8
68Ten pakiet zawiera pliki nagłówkowe dla linuksowego pakietu
69programistycznego do urządzeń UPnP (gupnp).
70
71%package static
3c551657
JB
72Summary: Static gupnp libraries
73Summary(pl.UTF-8): Statyczne biblioteki gupnp
aad1ecd9 74Group: Development/Libraries
75Requires: %{name}-devel = %{version}-%{release}
76
77%description static
3c551657 78Static gupnp libraries.
aad1ecd9 79
80%description static -l pl.UTF-8
3c551657 81Statyczne biblioteki gupnp.
aad1ecd9 82
83%package apidocs
84Summary: gupnp API documentation
85Summary(pl.UTF-8): Dokumentacja API gupnp
86Group: Documentation
87Requires: gtk-doc-common
ce2eaf00 88BuildArch: noarch
aad1ecd9 89
90%description apidocs
91gupnp API documentation.
92
93%description apidocs -l pl.UTF-8
94Dokumentacja API gupnp.
95
fa8d29b7
JB
96%package -n vala-gupnp
97Summary: Vala API for gupnp library
98Summary(pl.UTF-8): API języka Vala dla biblioteki gupnp
99Group: Development/Libraries
100Requires: %{name}-devel = %{version}-%{release}
ff38dd76 101Requires: vala >= 2:0.20
3bbf163e 102Requires: vala-gssdp >= 1.2.3
ef09a656 103BuildArch: noarch
fa8d29b7
JB
104
105%description -n vala-gupnp
106Vala API for gupnp library.
107
108%description -n vala-gupnp -l pl.UTF-8
109API języka Vala dla biblioteki gupnp.
110
aad1ecd9 111%prep
112%setup -q
113
15b1a2f7 114%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' tools/gupnp-binding-tool-1.2
204e4a43 115
aad1ecd9 116%build
15b1a2f7
JB
117%meson build \
118 -Dcontext_manager=network-manager \
119 -Dgtk_doc=true
120
121%ninja_build -C build
aad1ecd9 122
123%install
124rm -rf $RPM_BUILD_ROOT
125
15b1a2f7 126%ninja_install -C build
266c66c7 127
aad1ecd9 128%clean
129rm -rf $RPM_BUILD_ROOT
130
131%post -p /sbin/ldconfig
132%postun -p /sbin/ldconfig
133
134%files
135%defattr(644,root,root,755)
15b1a2f7
JB
136%doc AUTHORS NEWS README
137%attr(755,root,root) %{_bindir}/gupnp-binding-tool-1.2
138%attr(755,root,root) %{_libdir}/libgupnp-1.2.so.*.*.*
139%attr(755,root,root) %ghost %{_libdir}/libgupnp-1.2.so.0
140%{_libdir}/girepository-1.0/GUPnP-1.2.typelib
43309f65 141%{_mandir}/man1/gupnp-binding-tool-1.2.1*
aad1ecd9 142
143%files devel
144%defattr(644,root,root,755)
15b1a2f7
JB
145%attr(755,root,root) %{_libdir}/libgupnp-1.2.so
146%{_datadir}/gir-1.0/GUPnP-1.2.gir
147%{_includedir}/gupnp-1.2
148%{_pkgconfigdir}/gupnp-1.2.pc
aad1ecd9 149
150%files static
151%defattr(644,root,root,755)
15b1a2f7 152%{_libdir}/libgupnp-1.2.a
aad1ecd9 153
154%files apidocs
155%defattr(644,root,root,755)
156%{_gtkdocdir}/gupnp
fa8d29b7
JB
157
158%if %{with vala}
159%files -n vala-gupnp
160%defattr(644,root,root,755)
15b1a2f7
JB
161%{_datadir}/vala/vapi/gupnp-1.2.deps
162%{_datadir}/vala/vapi/gupnp-1.2.vapi
fa8d29b7 163%endif
This page took 0.100055 seconds and 4 git commands to generate.