]> git.pld-linux.org Git - SPECS.git/blob - gupnp-ui.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / gupnp-ui.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # do not build and package API docs
4 #
5 Summary:        GUPnP-UI - a collection of GTK+ widgets on top of GUPnP
6 Summary(pl.UTF-8):      GUPnP-UI - widgety GTK+ dla biblioteki GUPnP
7 Name:           gupnp-ui
8 Version:        0.1.1
9 Release:        2
10 License:        LGPL v2+
11 Group:          X11/Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gupnp-ui/0.1/%{name}-%{version}.tar.gz
13 # Source0-md5:  5ca6b3f6740d0295066b0b533289aa4c
14 Patch0:         %{name}-gupnp.patch
15 URL:            http://gupnp.org/
16 BuildRequires:  autoconf >= 2.53
17 BuildRequires:  automake
18 BuildRequires:  docbook-dtd412-xml
19 BuildRequires:  gtk-doc >= 1.0
20 BuildRequires:  gtk+2-devel >= 2.0
21 BuildRequires:  gupnp-devel >= 1.2
22 BuildRequires:  libtool
23 BuildRequires:  pkgconfig
24 Requires:       gupnp >= 1.2
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 GUPnP-UI provides a collection of simple GTK+ widgets on top of GUPnP.
29
30 %description -l pl.UTF-8
31 Biblioteka GUPnP-UI dostarcza zbiór prostych widgetów GTK+ dla
32 biblioteki GUPnP.
33
34 %package devel
35 Summary:        Header files for GUPnP-UI library
36 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GUPnP-UI
37 Group:          X11/Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       gtk+2-devel >= 2.0
40 Requires:       gupnp-devel >= 1.2
41
42 %description devel
43 Header files for GUPnP-UI library.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki GUPnP-UI.
47
48 %package static
49 Summary:        Static GUPnP-UI library
50 Summary(pl.UTF-8):      Statyczna biblioteka GUPnP-UI
51 Group:          X11/Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static GUPnP-UI library.
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka GUPnP-UI.
59
60 %package apidocs
61 Summary:        GUPnP-UI library API documentation
62 Summary(pl.UTF-8):      Dokumentacja API biblioteki GUPnP-UI
63 Group:          Documentation
64 Requires:       gtk-doc-common
65
66 %description apidocs
67 API and internal documentation for GUPnP-UI library.
68
69 %description apidocs -l pl.UTF-8
70 Dokumentacja API biblioteki GUPnP-UI.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75
76 %build
77 %{__gtkdocize}
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         %{?with_apidocs:--enable-gtk-doc} \
85         --with-html-dir=%{_gtkdocdir}
86
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 %{!?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}}
96 # obsoleted by pkg-config
97 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgupnp-ui-1.0.la
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog NEWS README
108 %attr(755,root,root) %{_libdir}/libgupnp-ui-1.0.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libgupnp-ui-1.0.so.0
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libgupnp-ui-1.0.so
114 %{_includedir}/gupnp-ui-1.0
115 %{_pkgconfigdir}/gupnp-ui-1.0.pc
116
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/libgupnp-ui-1.0.a
120
121 %if %{with apidocs}
122 %files apidocs
123 %defattr(644,root,root,755)
124 %{_gtkdocdir}/gupnp-ui
125 %endif
This page took 0.33995 seconds and 3 git commands to generate.