]>
Commit | Line | Data |
---|---|---|
fa8d29b7 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without vala # Vala API | |
ce2eaf00 | 4 | |
ec0eb07c JB |
5 | Summary: UPnP library based on GObject and libsoup |
6 | Summary(pl.UTF-8): Biblioteka UPnP oparta na bibliotekach GObject i libsoup | |
aad1ecd9 | 7 | Name: gupnp |
fa8d29b7 | 8 | # note: 0.20.x is stable, 0.21.x unstable |
e3680ae6 | 9 | Version: 0.20.18 |
67768090 | 10 | Release: 1 |
3c551657 | 11 | License: LGPL v2+ |
aad1ecd9 | 12 | Group: Libraries |
fa8d29b7 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gupnp/0.20/%{name}-%{version}.tar.xz |
e3680ae6 | 14 | # Source0-md5: 8cc1fa6a10d2dfdf30d0d7594fd2be4f |
aad1ecd9 | 15 | URL: http://gupnp.org/ |
446a531e MB |
16 | BuildRequires: autoconf >= 2.64 |
17 | BuildRequires: automake >= 1:1.11 | |
63e87f6a | 18 | BuildRequires: docbook-dtd412-xml |
19 | BuildRequires: docbook-dtd44-xml | |
31d6e87d | 20 | BuildRequires: glib2-devel >= 1:2.40.0 |
ff38dd76 | 21 | BuildRequires: gobject-introspection-devel >= 1.36.0 |
67768090 | 22 | BuildRequires: gssdp-devel >= 0.14.15 |
2c1151c3 | 23 | BuildRequires: gtk-doc >= 1.14 |
7ce3b8b9 | 24 | BuildRequires: libsoup-devel >= 2.48.0 |
446a531e | 25 | BuildRequires: libtool >= 2:2.2 |
3c551657 | 26 | BuildRequires: libuuid-devel >= 1.36 |
6705dc39 | 27 | BuildRequires: libxml2-devel >= 1:2.6.30 |
3c551657 | 28 | BuildRequires: pkgconfig |
63e87f6a | 29 | BuildRequires: rpm-pythonprov |
204e4a43 | 30 | BuildRequires: sed >= 4.0 |
446a531e | 31 | BuildRequires: tar >= 1:1.22 |
ff38dd76 | 32 | %{?with_vala:BuildRequires: vala >= 2:0.20} |
67768090 | 33 | %{?with_vala:BuildRequires: vala-gssdp >= 0.14.15} |
446a531e | 34 | BuildRequires: xz |
31d6e87d | 35 | Requires: glib2 >= 1:2.40.0 |
67768090 | 36 | Requires: gssdp >= 0.14.15 |
7ce3b8b9 | 37 | Requires: libsoup >= 2.48.0 |
8d14f33e | 38 | Requires: libuuid >= 1.36 |
aad1ecd9 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | GUPnP is an object-oriented open source framework for creating UPnP | |
43 | devices and control points, written in C using GObject and libsoup. | |
44 | The GUPnP API is intended to be easy to use, efficient and flexible. | |
45 | ||
3c551657 JB |
46 | %description -l pl.UTF-8 |
47 | GUPnp to zorientowany obiektowo, mający otwarte źródła szkielet do | |
48 | tworzenia urządzeń i punktów sterujących UPnP, napisany w C z użyciem | |
49 | bibliotek GObject i libsoup. API GUPnp ma być łatwe w użyciu, wydajne | |
50 | i elastyczne. | |
51 | ||
aad1ecd9 | 52 | %package devel |
53 | Summary: Header files for gupnp | |
54 | Summary(pl.UTF-8): Pliki nagłówkowe gupnp | |
55 | Group: Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
31d6e87d | 57 | Requires: glib2-devel >= 1:2.40.0 |
67768090 | 58 | Requires: gssdp-devel >= 0.14.15 |
7ce3b8b9 | 59 | Requires: libsoup-devel >= 2.48.0 |
3c551657 | 60 | Requires: libuuid-devel >= 1.36 |
6705dc39 | 61 | Requires: libxml2-devel >= 1:2.6.30 |
aad1ecd9 | 62 | |
63 | %description devel | |
64 | This package contains header files for the Linux SDK for UPnP Devices | |
65 | (gupnp). | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Ten pakiet zawiera pliki nagłówkowe dla linuksowego pakietu | |
69 | programistycznego do urządzeń UPnP (gupnp). | |
70 | ||
71 | %package static | |
3c551657 JB |
72 | Summary: Static gupnp libraries |
73 | Summary(pl.UTF-8): Statyczne biblioteki gupnp | |
aad1ecd9 | 74 | Group: Development/Libraries |
75 | Requires: %{name}-devel = %{version}-%{release} | |
76 | ||
77 | %description static | |
3c551657 | 78 | Static gupnp libraries. |
aad1ecd9 | 79 | |
80 | %description static -l pl.UTF-8 | |
3c551657 | 81 | Statyczne biblioteki gupnp. |
aad1ecd9 | 82 | |
83 | %package apidocs | |
84 | Summary: gupnp API documentation | |
85 | Summary(pl.UTF-8): Dokumentacja API gupnp | |
86 | Group: Documentation | |
87 | Requires: gtk-doc-common | |
ce2eaf00 ER |
88 | %if "%{_rpmversion}" >= "5" |
89 | BuildArch: noarch | |
90 | %endif | |
aad1ecd9 | 91 | |
92 | %description apidocs | |
93 | gupnp API documentation. | |
94 | ||
95 | %description apidocs -l pl.UTF-8 | |
96 | Dokumentacja API gupnp. | |
97 | ||
fa8d29b7 JB |
98 | %package -n vala-gupnp |
99 | Summary: Vala API for gupnp library | |
100 | Summary(pl.UTF-8): API języka Vala dla biblioteki gupnp | |
101 | Group: Development/Libraries | |
102 | Requires: %{name}-devel = %{version}-%{release} | |
ff38dd76 | 103 | Requires: vala >= 2:0.20 |
67768090 | 104 | Requires: vala-gssdp >= 0.14.15 |
ef09a656 ER |
105 | %if "%{_rpmversion}" >= "5" |
106 | BuildArch: noarch | |
107 | %endif | |
fa8d29b7 JB |
108 | |
109 | %description -n vala-gupnp | |
110 | Vala API for gupnp library. | |
111 | ||
112 | %description -n vala-gupnp -l pl.UTF-8 | |
113 | API języka Vala dla biblioteki gupnp. | |
114 | ||
aad1ecd9 | 115 | %prep |
116 | %setup -q | |
117 | ||
204e4a43 JB |
118 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' tools/gupnp-binding-tool |
119 | ||
aad1ecd9 | 120 | %build |
121 | %{__gtkdocize} | |
122 | %{__libtoolize} | |
446a531e | 123 | %{__aclocal} -I m4 |
aad1ecd9 | 124 | %{__autoconf} |
125 | %{__autoheader} | |
126 | %{__automake} | |
127 | %configure \ | |
ec0eb07c | 128 | --disable-silent-rules \ |
6705dc39 | 129 | --enable-gtk-doc \ |
145d5045 | 130 | --with-html-dir=%{_gtkdocdir} \ |
ec0eb07c | 131 | --with-context-manager=network-manager |
6705dc39 | 132 | |
aad1ecd9 | 133 | %{__make} |
134 | ||
135 | %install | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %{__make} install \ | |
139 | DESTDIR=$RPM_BUILD_ROOT | |
140 | ||
266c66c7 MB |
141 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
142 | ||
aad1ecd9 | 143 | %clean |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %post -p /sbin/ldconfig | |
147 | %postun -p /sbin/ldconfig | |
148 | ||
149 | %files | |
150 | %defattr(644,root,root,755) | |
ec0eb07c | 151 | %doc AUTHORS ChangeLog NEWS README |
ac753885 | 152 | %attr(755,root,root) %{_bindir}/gupnp-binding-tool |
3c551657 | 153 | %attr(755,root,root) %{_libdir}/libgupnp-1.0.so.*.*.* |
446a531e | 154 | %attr(755,root,root) %ghost %{_libdir}/libgupnp-1.0.so.4 |
9e96dbf1 | 155 | %{_libdir}/girepository-1.0/GUPnP-1.0.typelib |
aad1ecd9 | 156 | |
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
3c551657 | 159 | %attr(755,root,root) %{_libdir}/libgupnp-1.0.so |
9e96dbf1 | 160 | %{_datadir}/gir-1.0/GUPnP-1.0.gir |
3c551657 | 161 | %{_includedir}/gupnp-1.0 |
aad1ecd9 | 162 | %{_pkgconfigdir}/gupnp-1.0.pc |
163 | ||
164 | %files static | |
165 | %defattr(644,root,root,755) | |
166 | %{_libdir}/libgupnp-1.0.a | |
167 | ||
168 | %files apidocs | |
169 | %defattr(644,root,root,755) | |
170 | %{_gtkdocdir}/gupnp | |
fa8d29b7 JB |
171 | |
172 | %if %{with vala} | |
173 | %files -n vala-gupnp | |
174 | %defattr(644,root,root,755) | |
175 | %{_datadir}/vala/vapi/gupnp-1.0.deps | |
176 | %{_datadir}/vala/vapi/gupnp-1.0.vapi | |
177 | %endif |